www/prod_checklist.php

changeset 622
39902353b159
parent 616
2cbf21bb9bdc
child 624
7509f9ed5686
--- a/www/prod_checklist.php	Tue Mar 03 20:38:37 2020 +0100
+++ b/www/prod_checklist.php	Wed Mar 04 10:48:21 2020 +0100
@@ -261,7 +261,7 @@
 			}
 			foreach($hops as $item2) {
 				if (($item2['h_useat'] == 2 || $item2['h_useat'] == 3) && ($item2['h_time'] == $i)) {
-					$s = sprintf("%.1f",$item2['h_amount']*1000*$factor).' gr `';
+					$s = sprintf("%.2f",$item2['h_amount']*1000*$factor).' gr `';
 					$s .= iconv('UTF-8','windows-1252',$item2['h_name']).'` bij ';
 					if ($i > 0)
 						$s .= $i.' minuten voor einde koken';
@@ -273,7 +273,7 @@
 			foreach($miscs as $item3) {
 				if ($item3['m_use_use'] == 2 && $item3['m_time'] == $i) {
 					$unit = ($item3['m_amount_is_weight']) ? " gr ":" ml ";
-					$s = sprintf("%.1f",$item3['m_amount']*1000*$factor).$unit.'`';
+					$s = sprintf("%.2f",$item3['m_amount']*1000*$factor).$unit.'`';
 					$s .= iconv('UTF-8','windows-1252',$item3['m_name']).'` bij ';
 					if ($i > 0)
 						$s .= $i.' minuten voor einde koken';

mercurial