# HG changeset patch # User Michiel Broek # Date 1588856390 -7200 # Node ID 638e7dd1d56077e769c0738da941658d4839e8aa # Parent 1a1cf5430f4386d97b00130afb602d54a28bb937 Don't print percentage for priming sugars. diff -r 1a1cf5430f43 -r 638e7dd1d560 www/prod_print.php --- 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);