Mon, 04 Mar 2019 20:18:59 +0100
Fix checklist where there is more than one mash infusion step.
www/prod_print.php | file | annotate | diff | comparison | revisions |
--- 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)