222 $cost = ($amount * $costkg); |
222 $cost = ($amount * $costkg); |
223 $cost_hops += $cost; |
223 $cost_hops += $cost; |
224 $total_hops += $amount; |
224 $total_hops += $amount; |
225 |
225 |
226 $moment = $hopuse[$item['h_useat']]; |
226 $moment = $hopuse[$item['h_useat']]; |
227 if ($item['h_useat'] == 2) { // Boil |
227 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
228 $moment = "Koken ".$time." min"; |
228 $moment = $hopuse[$item['h_useat']].' '.$time." min"; |
229 } else if ($item['h_useat'] == 5) { // Dryhop |
229 } else if ($item['h_useat'] == 5) { // Dryhop |
230 $moment = 'Koudhop '.sprintf("%.0f", $time / 1440).' dagen'; |
230 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
231 } |
231 } |
232 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $mass, $time, $alpha, $row['ibu_method']); |
232 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $mass, $time, $alpha, $row['ibu_method']); |
233 $total_ibus += $ibu; |
233 $total_ibus += $ibu; |
234 |
234 |
235 if ($amount > 1) |
235 if ($amount > 1) |