340 |
340 |
341 $climate = $row['brew_cooling_to']; |
341 $climate = $row['brew_cooling_to']; |
342 $this->Checkheader('Gist enten'); |
342 $this->Checkheader('Gist enten'); |
343 $dry = 0; |
343 $dry = 0; |
344 foreach ($yeasts as $item) { |
344 foreach ($yeasts as $item) { |
|
345 $name = iconv('UTF-8','windows-1252',$item['y_name']); |
|
346 $product_id = iconv('UTF-8','windows-1252',$item['y_product_id']); |
345 if ($item['y_use'] == 0) { // primary |
347 if ($item['y_use'] == 0) { // primary |
346 if ($item['y_form'] == 0) { // Liquid |
348 if ($item['y_form'] == 0) { // Liquid |
347 $this->Checkline(($item['y_amount']*$factor).' pak '.$item['y_product_id'].', '.$item['y_name'].' gist'); |
349 $this->Checkline(($item['y_amount']*$factor).' pak '.$product_id.', '.$name.' gist'); |
348 } else if ($item['y_form'] == 1 || $item['y_form'] == 6) { // Dry |
350 } else if ($item['y_form'] == 1 || $item['y_form'] == 6) { // Dry |
349 $s = sprintf("%.1f",$item['y_amount']*$factor*1000).' gram '.$item['y_product_id'].', '.$item['y_name']; |
351 $s = sprintf("%.1f",$item['y_amount']*$factor*1000).' gram '.$product_id.', '.$name; |
350 $s .= ' gist'; |
352 $s .= ' gist'; |
351 $dry += $item['y_amount']*$factor*10000; |
353 $dry += $item['y_amount']*$factor*10000; |
352 $this->Checkline($s); |
354 $this->Checkline($s); |
353 } else { // Slant/Culture/Frozen/Bottle |
355 } else { // Slant/Culture/Frozen/Bottle |
354 $s = sprintf("%.0f",$item['y_amount']*$factor*1000).' ml '.$item['y_product_id'].', '.$item['y_name'].' gist'; |
356 $s = sprintf("%.0f",$item['y_amount']*$factor*1000).' ml '.$product_id.', '.$name.' gist'; |
355 $this->Checkline($s); |
357 $this->Checkline($s); |
356 } |
358 } |
357 if ($item['y_type'] == 6 && floatval($item['y_pitch_temperature']) > 0) { |
359 if ($item['y_type'] == 6 && floatval($item['y_pitch_temperature']) > 0) { |
358 $s = 'Gist enten bij ' . sprintf("%.1f",floatval($item['y_pitch_temperature'])) . DEG . 'C'; |
360 $s = 'Gist enten bij ' . sprintf("%.1f",floatval($item['y_pitch_temperature'])) . DEG . 'C'; |
359 $this->Checkline($s); |
361 $this->Checkline($s); |
443 $this->Ln(5); |
445 $this->Ln(5); |
444 $this->Checkheader('Nagisting'); |
446 $this->Checkheader('Nagisting'); |
445 } |
447 } |
446 foreach ($yeasts as $item4) { |
448 foreach ($yeasts as $item4) { |
447 if ($item4['y_use'] == 1) { |
449 if ($item4['y_use'] == 1) { |
|
450 $name = iconv('UTF-8','windows-1252',$item4['y_name']); |
|
451 $product_id = iconv('UTF-8','windows-1252',$item4['y_product_id']); |
448 if ($item4['y_form'] == 0) { // Liquid |
452 if ($item4['y_form'] == 0) { // Liquid |
449 $this->Checkline(($item4['y_amount']*$factor).' pak '.$item4['y_product_id'].', '.$item4['y_name'].' gist (eventueel met starter)'); |
453 $this->Checkline(($item4['y_amount']*$factor).' pak '.$product_id.', '.$name.' gist (eventueel met starter)'); |
450 } else if ($item['y_form'] == 1) { // Dry |
454 } else if ($item['y_form'] == 1) { // Dry |
451 $s = sprintf("%.1f",$item4['y_amount']*$factor*1000).' gram '.$item4['y_product_id'].', '.$item4['y_name']; |
455 $s = sprintf("%.1f",$item4['y_amount']*$factor*1000).' gram '.$product_id.', '.$name; |
452 $s .= ' gist'; |
456 $s .= ' gist'; |
453 $this->Checkline($s); |
457 $this->Checkline($s); |
454 } else { // Slant/Culture/Frozen/Bottle |
458 } else { // Slant/Culture/Frozen/Bottle |
455 $s = sprintf("%.0f",$item4['y_amount']*$factor*1000).' ml '.$item4['y_product_id'].', '.$item4['y_name'].' gist (eventueel met starter)'; |
459 $s = sprintf("%.0f",$item4['y_amount']*$factor*1000).' ml '.$product_id.', '.$name.' gist (eventueel met starter)'; |
456 $this->Checkline($s); |
460 $this->Checkline($s); |
457 } |
461 } |
458 } |
462 } |
459 if ($item4['y_harvest_time'] > 0) { |
463 if ($item4['y_harvest_time'] > 0) { |
460 $s = 'Na ' . $item4['y_harvest_time'] . ' uur gist oogsten vanaf de '; |
464 $s = 'Na ' . $item4['y_harvest_time'] . ' uur gist oogsten vanaf de '; |
510 $this->Checkline($s); |
514 $this->Checkline($s); |
511 } |
515 } |
512 } |
516 } |
513 foreach ($yeasts as $item4) { |
517 foreach ($yeasts as $item4) { |
514 if ($item4['y_use'] == 2) { |
518 if ($item4['y_use'] == 2) { |
|
519 $name = iconv('UTF-8','windows-1252',$item4['y_name']); |
|
520 $product_id = iconv('UTF-8','windows-1252',$item4['y_product_id']); |
515 if ($item4['y_form'] == 0) { // Liquid |
521 if ($item4['y_form'] == 0) { // Liquid |
516 $s = ($item4['y_amount']*$factor).' pak '.$item4['y_product_id'].', '.$item4['y_name'].' gist (eventueel met starter)'; |
522 $s = ($item4['y_amount']*$factor).' pak '.$product_id.', '.$name.' gist (eventueel met starter)'; |
517 } else if ($item4['y_form'] == 1) { // Dry |
523 } else if ($item4['y_form'] == 1) { // Dry |
518 $s = sprintf("%.1f",$item4['y_amount']*$factor*1000).' gram '.$item4['y_product_id'].', '.$item4['y_name']; |
524 $s = sprintf("%.1f",$item4['y_amount']*$factor*1000).' gram '.$product_id.', '.$name; |
519 $s .= ' gist'; |
525 $s .= ' gist'; |
520 } else { // Slant/Culture/Frozen/Bottle |
526 } else { // Slant/Culture/Frozen/Bottle |
521 $s = sprintf("%.0f",$item4['y_amount']*$factor*1000).' ml '.$item4['y_product_id'].', '.$item4['y_name']; |
527 $s = sprintf("%.0f",$item4['y_amount']*$factor*1000).' ml '.$product_id.', '.$name; |
522 $s .= ' gist (eventueel met starter)'; |
528 $s .= ' gist (eventueel met starter)'; |
523 } |
529 } |
524 $this->Checkline($s); |
530 $this->Checkline($s); |
525 } |
531 } |
526 } |
532 } |
579 $this->Checkline($s); |
585 $this->Checkline($s); |
580 } |
586 } |
581 } |
587 } |
582 foreach ($yeasts as $item4) { |
588 foreach ($yeasts as $item4) { |
583 if ($item4['y_use'] == 3) { |
589 if ($item4['y_use'] == 3) { |
|
590 $name = iconv('UTF-8','windows-1252',$item4['y_name']); |
|
591 $product_id = iconv('UTF-8','windows-1252',$item4['y_product_id']); |
584 if ($item4['y_form'] == 0) { // Liquid |
592 if ($item4['y_form'] == 0) { // Liquid |
585 $s = '`'.$item4['y_product_id'].', '.$item4['y_name']; |
593 $s = '`'.$product_id.', '.$name; |
586 } else if ($item4['y_form'] == 1) { // Dry |
594 } else if ($item4['y_form'] == 1) { // Dry |
587 $s = sprintf("%.1f",$item4['y_amount']*$factor*1000).' gram `'.$item4['y_product_id'].', '.$item4['y_name']; |
595 $s = sprintf("%.1f",$item4['y_amount']*$factor*1000).' gram `'.$product_id.', '.$name; |
588 } else { // Slant/Culture/Frozen/Bottle |
596 } else { // Slant/Culture/Frozen/Bottle |
589 $s = sprintf("%.0f",$item4['y_amount']*$factor*1000).' ml `'.$item4['y_product_id'].', '.$item4['y_name']; |
597 $s = sprintf("%.0f",$item4['y_amount']*$factor*1000).' ml `'.$product_id.', '.$name; |
590 } |
598 } |
591 $s .= '` als bottelgist'; |
599 $s .= '` als bottelgist'; |
592 $this->Checkline($s); |
600 $this->Checkline($s); |
593 } |
601 } |
594 } |
602 } |
620 $this->SetX(45); |
628 $this->SetX(45); |
621 $this->Cell(17,5,'Datum:',0,0,'L'); |
629 $this->Cell(17,5,'Datum:',0,0,'L'); |
622 $this->Cell(0,5,$prdate,0,1,'L'); |
630 $this->Cell(0,5,$prdate,0,1,'L'); |
623 $this->SetX(45); |
631 $this->SetX(45); |
624 $this->Cell(17,5,'Stijl:',0,0,'L'); |
632 $this->Cell(17,5,'Stijl:',0,0,'L'); |
625 $this->Cell(0,5,$row['st_name'],0,1,'L'); |
633 $st_name = iconv('UTF-8','windows-1252',$row['st_name']); |
|
634 $this->Cell(0,5,$st_name,0,1,'L'); |
626 $this->SetX(45); |
635 $this->SetX(45); |
627 $this->Cell(17,5,'Fase:',0,0,'L'); |
636 $this->Cell(17,5,'Fase:',0,0,'L'); |
628 $this->Cell(0,5,$stage[$row['stage']],0,1,'L'); |
637 $this->Cell(0,5,$stage[$row['stage']],0,1,'L'); |
629 $this->SetX(45); |
638 $this->SetX(45); |
630 $this->Cell(17,5,'Batch:',0,0,'L'); |
639 $this->Cell(17,5,'Batch:',0,0,'L'); |