www/prod_checklist.php

changeset 516
28670364bd0c
parent 423
2230d3faeed9
child 535
1f0059cfb6fe
equal deleted inserted replaced
515:9d771385a8a0 516:28670364bd0c
321 $dry = 0; 321 $dry = 0;
322 foreach ($yeasts as $item) { 322 foreach ($yeasts as $item) {
323 if ($item['y_use'] == 0) { // primary 323 if ($item['y_use'] == 0) { // primary
324 if ($item['y_form'] == 0) { // Liquid 324 if ($item['y_form'] == 0) { // Liquid
325 $this->Checkline($item['y_amount'].' pak '.$item['y_product_id'].', '.$item['y_name'].' gist'); 325 $this->Checkline($item['y_amount'].' pak '.$item['y_product_id'].', '.$item['y_name'].' gist');
326 } else if ($item['y_form'] == 1) { // Dry 326 } else if ($item['y_form'] == 1 || $item['y_form'] == 6) { // Dry
327 $s = sprintf("%.1f",$item['y_amount']*1000).' gram '.$item['y_product_id'].', '.$item['y_name']; 327 $s = sprintf("%.1f",$item['y_amount']*1000).' gram '.$item['y_product_id'].', '.$item['y_name'];
328 $s .= ' gist'; 328 $s .= ' gist';
329 $dry += $item['y_amount']*10000; 329 $dry += $item['y_amount']*10000;
330 $this->Checkline($s); 330 $this->Checkline($s);
331 } else { // Slant/Culture/Frozen/Bottle 331 } else { // Slant/Culture/Frozen/Bottle

mercurial