848 double cost = product->hops.at(i).amount * product->hops.at(i).cost; |
848 double cost = product->hops.at(i).amount * product->hops.at(i).cost; |
849 cost_hops += cost; |
849 cost_hops += cost; |
850 double ibu = Utils::toIBU(product->hops.at(i).useat, product->hops.at(i).form, product->preboil_sg, product->est_og3, product->batch_size, |
850 double ibu = Utils::toIBU(product->hops.at(i).useat, product->hops.at(i).form, product->preboil_sg, product->est_og3, product->batch_size, |
851 product->hops.at(i).amount, product->hops.at(i).time, product->hops.at(i).alpha, |
851 product->hops.at(i).amount, product->hops.at(i).time, product->hops.at(i).alpha, |
852 product->ibu_method, product->brew_whirlpool9, product->brew_whirlpool7, product->brew_whirlpool6, |
852 product->ibu_method, product->brew_whirlpool9, product->brew_whirlpool7, product->brew_whirlpool6, |
853 product->boil_time, product->brew_cooling_method, 0, 0, product->hops.at(i).utilisation, product->hops.at(i).bu_factor); |
853 product->boil_time, product->brew_cooling_method, product->eq_chiller_to79, product->eq_chiller_lpm, |
|
854 product->hops.at(i).utilisation, product->hops.at(i).bu_factor); |
854 |
855 |
855 if (product->hops.at(i).useat == 2 || product->hops.at(i).useat == 4) // Boil or Whirlpool |
856 if (product->hops.at(i).useat == 2 || product->hops.at(i).useat == 4) // Boil or Whirlpool |
856 use = QCoreApplication::translate("HopUse", g_hop_useat[product->hops.at(i).useat]) + QString(" %1 min").arg(product->hops.at(i).time); |
857 use = QCoreApplication::translate("HopUse", g_hop_useat[product->hops.at(i).useat]) + QString(" %1 min").arg(product->hops.at(i).time); |
857 else if (product->hops.at(i).useat == 5) // Dryhop |
858 else if (product->hops.at(i).useat == 5) // Dryhop |
858 use = QCoreApplication::translate("HopUse", g_hop_useat[product->hops.at(i).useat]) + QString(" %1 days").arg(product->hops.at(i).time / 1440); |
859 use = QCoreApplication::translate("HopUse", g_hop_useat[product->hops.at(i).useat]) + QString(" %1 days").arg(product->hops.at(i).time / 1440); |