# HG changeset patch # User Michiel Broek # Date 1572292337 -3600 # Node ID c062eb0dd7ce73f2bd122160690af7558befa2ad # Parent dabe1c854a0fe20c802084e80edf08d0c7e722e2 Round total batch volume to 2 ddecimals. diff -r dabe1c854a0f -r c062eb0dd7ce www/prod_print.php --- a/www/prod_print.php Mon Oct 28 19:55:42 2019 +0100 +++ b/www/prod_print.php Mon Oct 28 20:52:17 2019 +0100 @@ -96,7 +96,7 @@ if ($divide_parts == 0) $this->Cell(45,5,$row['batch_size'].' liter',0,0,'L',true); else - $this->Cell(45,5,$row['batch_size'].' van '.($row['batch_size'] * (1 / $divide_factor)).' liter',0,0,'L',true); + $this->Cell(45,5,$row['batch_size'].' van '.sprintf("%.2f", ($row['batch_size'] * (1 / $divide_factor))).' liter',0,0,'L',true); $this->Ln(); $this->SetX($this->TableX);