# HG changeset patch # User Michiel Broek # Date 1618485021 -7200 # Node ID bb923d2cbc3521b4d480c784bbc9daba9009bc9e # Parent 11e6bd8d8107d83f30801ddc00855448edcd1b80 Added measurement input fields to the product checklist. diff -r 11e6bd8d8107 -r bb923d2cbc35 www/prod_checklist.php --- a/www/prod_checklist.php Thu Apr 15 10:57:01 2021 +0200 +++ b/www/prod_checklist.php Thu Apr 15 13:10:21 2021 +0200 @@ -39,6 +39,14 @@ $this->Ln(1); } + function CheckInput($text, $prompt) { + $this->Cell(2, 4,' ',0,0,'L',true); + $this->Cell(4, 4,' ',1,0,'L',true); + $this->Cell(130, 4,' '.$text,0,0,'L',true); + $this->Cell(0, 4, 'Gemeten: _________ '.$prompt,0,1,'L',true); + $this->Ln(1); + } + function Checksplit($moment, $row) { global $splitat; if ($row['divide_type'] && $row['divide_type'] == $moment) { @@ -184,7 +192,7 @@ } } $this->Checkline($item['step_time'].' min. bij '.$item['step_temp'].' '.DEG.'C'); - $this->Checkline('pH meten en bijstellen (doel pH beslag: '.sprintf("%.1f",$row['mash_ph']).' pH)'); + $this->CheckInput('pH meten en bijstellen (doel pH beslag: '.sprintf("%.1f",$row['mash_ph']).' pH)', 'pH'); } else { if ($item['step_type'] == 0) { // Infusion $s = 'toevoegen '.sprintf("%.1f",$item['step_infuse_amount'] * $factor).' liter water van '; @@ -196,7 +204,7 @@ $s .= ' liter deelbeslag'; } $this->Checkline($s); - $this->Checkline($item['step_time'].' min. bij '.$item['step_temp'].' '.DEG.'C'); + $this->CheckInput($item['step_time'].' min. bij '.$item['step_temp'].' '.DEG.'C', 'Brix'); } $loop++; } @@ -213,7 +221,7 @@ $v = $msugars / $sugardensity + $mvol; $plato = 1000 * $msugars / ($v * 10); // deg. Plato $mash_sg = plato_to_sg($plato); - $this->Checkline('doel SG eind maischen: '.density_str($mash_sg)); + $this->CheckInput('doel SG eind maischen: '.density_str($mash_sg), 'Brix'); } if ($this->GetY() > 200) $this->AddPage(); @@ -225,14 +233,14 @@ $this->Checkline($s); $s = 'spoelwater aanzuren tot pH <= '.sprintf("%.1f",$row['sparge_ph']).' met '; $s .= sprintf("%.2f",$row['sparge_acid_amount']*1000*$factor).' ml. '.$acidtype[$row['sparge_acid_type']]; - $this->Checkline($s); + $this->CheckInput($s, 'pH'); $spoelw = (($row['boil_size']*$factor) - $mashwater + $grainabsorbtion + $row['eq_lauter_deadspace']) * 1.03; // A small heat correction $this->Checkline('spoelen met ongeveer '.sprintf("%.1f",$spoelw).' liter spoelwater'); $s = 'doelvolume in kookketel: '.sprintf("%.1f",$row['boil_size'] * $factor * 1.04).' liter ('; $s .= sprintf("%.1f",kettle_cm($row['boil_size'] * $factor * 1.04,$row['eq_kettle_volume'],$row['eq_kettle_height'])).' cm onder de rand)'; - $this->Checkline($s); + $this->CheckInput($s, 'cm'); $pre_sg = estimate_sg($msugars * floatval($row['efficiency']) / 100,floatval($row['boil_size'] * $factor)); - $this->Checkline('doel SG in kookketel: '.density_str($pre_sg)); + $this->CheckInput('doel SG in kookketel: '.density_str($pre_sg), 'Brix'); foreach($hops as $item2) { if ($item2['h_useat'] == 1) { $s = sprintf("%.1f",$item2['h_amount']*1000*$factor).' gr `'; @@ -292,8 +300,8 @@ $s = 'doelvolume einde koken: '.sprintf("%.1f",$row['batch_size']*$factor*1.04).' liter ('; $s .= sprintf("%.1f",kettle_cm($row['batch_size']*$factor*1.04,$row['eq_kettle_volume'],$row['eq_kettle_height'])); $s .= ' cm onder de rand)'; - $this->Checkline($s); - $this->Checkline('doel SG einde koken: '.density_str($row['est_og3'])); + $this->CheckInput($s, 'cm'); + $this->CheckInput('doel SG einde koken: '.density_str($row['est_og3']), 'Brix'); if ($this->Checksplit(2, $row)) $factor = 1; } else {