Thu, 07 May 2020 14:59:50 +0200
Don't print percentage for priming sugars.
www/prod_print.php | file | annotate | diff | comparison | revisions |
--- a/www/prod_print.php Thu May 07 11:33:54 2020 +0200 +++ b/www/prod_print.php Thu May 07 14:59:50 2020 +0200 @@ -212,7 +212,10 @@ else $amount = sprintf("%.0f",$amount * 1000).' gr'; $this->Cell($vul,5,$name.' ('.$supplier.') '.sprintf("%.0f",$color).' EBC',0,0,'L',true); - $this->Cell(15,5,sprintf("%.1f%%",$percent),0,0,'R',true); + if ($item['f_added'] < 4) + $this->Cell(15,5,sprintf("%.1f%%",$percent),0,0,'R',true); + else + $this->Cell(15,5,' ',0,0,'R',true); $this->Cell(15,5,sprintf("%.1f%%",$yield),0,0,'R',true); $this->Cell(25,5,$soort,0,0,'L',true); $this->Cell(30,5,$added[$item['f_added']],0,0,'L',true);