484 $this->SetFont('Arial','',10); |
484 $this->SetFont('Arial','',10); |
485 $this->Ln(6); |
485 $this->Ln(6); |
486 } |
486 } |
487 |
487 |
488 function Checkline($text) { |
488 function Checkline($text) { |
489 $this->Rect(10,$this->GetY(),4,4); |
489 // $this->SetX(5); |
490 $this->SetX(15); |
490 $this->Cell(2, 4,' ',0,0,'L',true); |
491 $this->Cell(0, 4,$text,0,1,'L',true); |
491 $this->Cell(4, 4,' ',1,0,'L',true); |
|
492 // $this->Rect(10,$this->GetY(),4,4); |
|
493 // $this->SetX(15); |
|
494 $this->Cell(0, 4,' '.$text,0,1,'L',true); |
492 $this->Ln(1); |
495 $this->Ln(1); |
493 } |
496 } |
494 |
497 |
495 function Checklist($row) { |
498 function Checklist($row) { |
496 |
499 |
511 $mashwater += floatval($row['w2_amount']); |
514 $mashwater += floatval($row['w2_amount']); |
512 } |
515 } |
513 $arr = json_decode($row['json_miscs'], true); |
516 $arr = json_decode($row['json_miscs'], true); |
514 foreach($arr as $item) { |
517 foreach($arr as $item) { |
515 if ($item['m_type'] == 4) { // Only the water agents |
518 if ($item['m_type'] == 4) { // Only the water agents |
516 $this->Checkline(sprintf("%.1f",floatval($item['m_amount'] * 1000)).' gram '.$item['m_name']); |
519 $unit = ($item['m_amount_is_weight']) ? " gram ":" ml "; |
|
520 $this->Checkline(sprintf("%.1f",floatval($item['m_amount'] * 1000)).$unit.$item['m_name']); |
517 $numsalts++; |
521 $numsalts++; |
518 } |
522 } |
519 } |
523 } |
520 $this->Ln(5); |
524 $this->Ln(5); |
521 |
525 |
710 $this->AddPage(); |
714 $this->AddPage(); |
711 else |
715 else |
712 $this->Ln(5); |
716 $this->Ln(5); |
713 |
717 |
714 $this->Checkheader('Gist enten'); |
718 $this->Checkheader('Gist enten'); |
715 // 'wort beluchten' |
719 |
716 // 'evt. giststarter afgieten' |
720 $dry = 0; |
717 // 'gist hydrateren in ' ' ml gedesinfecteerd water van ' |
721 $yeasts = json_decode($row['json_yeasts'], true); |
718 // '15 minuten laten staan bij ' |
722 foreach ($yeasts as $item) { |
719 // 'gistmengsel voorzichtig roeren' |
723 if ($item['y_use'] == 0) { // primary |
720 // 'langzaam laten afkoelen tot ' 'temperatuur wort' |
724 if ($item['y_form'] == 0) { // Liquid |
721 // 'gist toevoegen' |
725 $this->Checkline($item['y_amount'].' pak '.$item['y_product_id'].', '.$item['y_name'].' gist'); |
722 // ' water toevoegen in gistvat' (topupwater) |
726 } else if ($item['y_form'] == 1) { // Dry |
|
727 $s = sprintf("%.1f",$item['y_amount']*1000).' gram '.$item['y_product_id'].', '.$item['y_name']; |
|
728 $s .= ' gist'; |
|
729 $dry += $item['y_amount']*10000; |
|
730 $this->Checkline($s); |
|
731 } else { // Slant/Culture/Frozen/Bottle |
|
732 $s = sprintf("%.0f",$item['y_amount']*1000).' ml '.$item['y_product_id'].', '.$item['y_name'].' gist'; |
|
733 $this->Checkline($s); |
|
734 } |
|
735 } |
|
736 } |
|
737 if ($dry > 0) { |
|
738 $this->Checkline(' gist hydrateren in '.$dry.' ml gedesinfecteerd water van 32 '.DEG.'C'); |
|
739 $this->Checkline(' 15 minuten laten staan bij 32 '.DEG.'C'); |
|
740 $this->Checkline(' gistmengsel voorzichtig roeren en laten afkoelen tot temperatuur wort'); |
|
741 $this->Checkline(' gist toevoegen'); |
|
742 $this->Checkline('Of'); |
|
743 $this->Checkline(' gist rechtstreeks over het wort strooien'); |
|
744 } else { |
|
745 $this->Checkline('eventueel giststarter afgieten'); |
|
746 $this->Checkline('gist toevoegen'); |
|
747 } |
|
748 if ($row['brew_fermenter_extrawater'] > 0) |
|
749 $this->Checkline(sprintf("%.1f", $row['brew_fermenter_extrawater']).' liter water toevoegen in gistvat'); |
|
750 if ($row['brew_aeration_type'] > 0) { |
|
751 $s = 'wort '.$row['brew_aeration_time'].' minuten beluchten met '; |
|
752 $s .= ($row['brew_aeration_type'] == 1) ? "lucht":"zuurstof"; |
|
753 $this->Checkline($s); |
|
754 } |
723 if ($this->GetY() > 200) |
755 if ($this->GetY() > 200) |
724 $this->AddPage(); |
756 $this->AddPage(); |
725 else |
757 else |
726 $this->Ln(5); |
758 $this->Ln(5); |
727 |
759 |