# HG changeset patch # User Michiel Broek # Date 1551727139 -3600 # Node ID 60002c09f78aefa4abbbfc771262497097a1ce6f # Parent 882d4da1f236e2cb5e765ba89c8808adf5dcb957 Fix checklist where there is more than one mash infusion step. diff -r 882d4da1f236 -r 60002c09f78a www/prod_print.php --- a/www/prod_print.php Mon Mar 04 19:47:47 2019 +0100 +++ b/www/prod_print.php Mon Mar 04 20:18:59 2019 +0100 @@ -604,9 +604,13 @@ if ($item['step_type'] == 0) $mvol += $item['step_infuse_amount']; // We need this later. if ($loop == 0) { - $s = sprintf("%.1f",$mashwater).' liter water opwarmen tot '; + if ($item['step_type'] == 0) + $l = $item['step_infuse_amount']; + else + $l = $mashwater; + $s = sprintf("%.1f",$l).' liter water opwarmen tot '; $s .= sprintf("%.1f",$item['step_temp']).' '.DEG.'C ('; - $s .= sprintf("%.1f",kettle_cm($mashwater,$row['eq_tun_volume'],$row['eq_tun_height'])); + $s .= sprintf("%.1f",kettle_cm($l,$row['eq_tun_volume'],$row['eq_tun_height'])); $s .= ' cm onder de rand)'; $this->Checkline($s); if ($numsalts > 0)