# HG changeset patch # User Michiel Broek # Date 1551112175 -3600 # Node ID db898ec732778b75d09c79c94b375d29a3d65d09 # Parent 90cd3798edc272f9a86f733751b2a23b48bbb541 Show yeast starter on printed page diff -r 90cd3798edc2 -r db898ec73277 www/prod_print.php --- 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);