www/prod_checklist.php

changeset 624
7509f9ed5686
parent 622
39902353b159
child 658
945d5eba869a
equal deleted inserted replaced
623:4aee10bcb94e 624:7509f9ed5686
345 $name = iconv('UTF-8','windows-1252',$item['y_name']); 345 $name = iconv('UTF-8','windows-1252',$item['y_name']);
346 $product_id = iconv('UTF-8','windows-1252',$item['y_product_id']); 346 $product_id = iconv('UTF-8','windows-1252',$item['y_product_id']);
347 if ($item['y_use'] == 0) { // primary 347 if ($item['y_use'] == 0) { // primary
348 if ($item['y_form'] == 0) { // Liquid 348 if ($item['y_form'] == 0) { // Liquid
349 $this->Checkline(($item['y_amount']*$factor).' pak '.$product_id.', '.$name.' gist'); 349 $this->Checkline(($item['y_amount']*$factor).' pak '.$product_id.', '.$name.' gist');
350 } else if ($item['y_form'] == 1 || $item['y_form'] == 6) { // Dry 350 } else if ($item['y_form'] == 1 || $item['y_form'] == 6) { // Dry or dried Kveik
351 $s = sprintf("%.1f",$item['y_amount']*$factor*1000).' gram '.$product_id.', '.$name; 351 $s = sprintf("%.1f",$item['y_amount']*$factor*1000).' gram '.$product_id.', '.$name;
352 $s .= ' gist'; 352 $s .= ' gist';
353 $dry += $item['y_amount']*$factor*10000; 353 if ($item['y_form'] == 1)
354 $dry += $item['y_amount']*$factor*10000;
354 $this->Checkline($s); 355 $this->Checkline($s);
355 } else { // Slant/Culture/Frozen/Bottle 356 } else { // Slant/Culture/Frozen/Bottle
356 $s = sprintf("%.0f",$item['y_amount']*$factor*1000).' ml '.$product_id.', '.$name.' gist'; 357 $s = sprintf("%.0f",$item['y_amount']*$factor*1000).' ml '.$product_id.', '.$name.' gist';
357 $this->Checkline($s); 358 $this->Checkline($s);
358 } 359 }

mercurial