Mon, 25 Feb 2019 17:29:35 +0100
Show yeast starter on printed page
www/prod_print.php | file | annotate | diff | comparison | revisions |
--- a/www/prod_print.php Mon Feb 25 13:27:41 2019 +0100 +++ b/www/prod_print.php Mon Feb 25 17:29:35 2019 +0100 @@ -307,6 +307,16 @@ $this->Cell(20,5,sprintf("%8.3f",$cost).EURO,0,0,'R',true); $this->Ln(); } + if ($row['starter_enable']) { + $v = floatval($row['prop1_volume']) + floatval($row['prop2_volume']) + floatval($row['prop3_volume']) + floatval($row['prop4_volume']); + if ($v) { + $this->Cell(45,5,'',0,0,'L',true); + $this->Cell($vul,5,"Giststarter ".sprintf("%.2f",$v)." liter",0,0,'L',true); + $this->Cell(20,5,"Tevoren",0,0,'L',true); + $this->Cell(75,5,'',0,0,'L',true); + $this->Ln(); + } + } $this->SetFillColor(210,245,255); $this->Cell($vul+120,5,'',0,0,'L',false);