www/prod_checklist.php

changeset 554
c62ff53cfc3d
parent 535
1f0059cfb6fe
child 599
1460c92927b2
--- a/www/prod_checklist.php	Sun Dec 01 17:37:22 2019 +0100
+++ b/www/prod_checklist.php	Mon Dec 02 13:24:34 2019 +0100
@@ -338,6 +338,7 @@
 		else
 			$this->Ln(5);
 
+		$climate = $row['brew_cooling_to'];
 		$this->Checkheader('Gist enten');
 		$dry = 0;
 		foreach ($yeasts as $item) {
@@ -353,6 +354,11 @@
 					$s = sprintf("%.0f",$item['y_amount']*$factor*1000).' ml '.$item['y_product_id'].', '.$item['y_name'].' gist';
 					$this->Checkline($s);
 				}
+				if ($item['y_type'] == 6 && floatval($item['y_pitch_temperature']) > 0) {
+					$s = 'Gist enten bij ' . sprintf("%.1f",floatval($item['y_pitch_temperature'])) . DEG . 'C';
+					$this->Checkline($s);
+					$climate = $item['y_pitch_temperature'];
+				}
 			}
 		}
 		if ($dry > 0) {
@@ -381,7 +387,7 @@
 			$this->Ln(5);
 
 		$this->Checkheader('Vergisting starten');
-		$this->Checkline('klimaatkast instellen op '.sprintf("%.1f",$row['brew_cooling_to']).' '.DEG.'C');
+		$this->Checkline('klimaatkast instellen op '.sprintf("%.1f",$climate).' '.DEG.'C');
 
 		/*
 		 * During primary fermentation: fermentables, misc
@@ -427,6 +433,8 @@
                 foreach ($yeasts as $item4) {
                         if ($item4['y_use'] == 1)
 				$lines++;
+			if ($item4['y_harvest_time'] > 0)
+				$lines++;
 		}
 		if ($lines) {
 			if ($this->GetY() > (270 - (5 * $lines)))
@@ -448,6 +456,14 @@
                                         $this->Checkline($s);
                                 }
 			}
+			if ($item4['y_harvest_time'] > 0) {
+				$s = 'Na ' . $item4['y_harvest_time'] . ' uur gist oogsten vanaf de ';
+				if ($item4['y_harvest_top'] > 0)
+					$s .= 'bovenzijde';
+				else
+					$s .= 'bodem';
+				$this->Checkline($s);
+			}
                 }
 		if ($this->Checksplit(5, $row))
 			$factor = 1;

mercurial