src/EditProductTab3.cpp

changeset 224
d369948a3eb5
parent 219
fa7cad488e27
child 225
448e4187cada
equal deleted inserted replaced
223:37bac72eff61 224:d369948a3eb5
272 } 272 }
273 if (product->fermentables.at(i).f_added < FERMENTABLE_ADDED_BOTTLE) { 273 if (product->fermentables.at(i).f_added < FERMENTABLE_ADDED_BOTTLE) {
274 colort += product->fermentables.at(i).f_amount * Utils::ebc_to_srm(product->fermentables.at(i).f_color); 274 colort += product->fermentables.at(i).f_amount * Utils::ebc_to_srm(product->fermentables.at(i).f_color);
275 colorh += product->fermentables.at(i).f_amount * product->fermentables.at(i).f_color * Utils::get_kt(product->fermentables.at(i).f_color); 275 colorh += product->fermentables.at(i).f_amount * product->fermentables.at(i).f_color * Utils::get_kt(product->fermentables.at(i).f_color);
276 colorn += (product->fermentables.at(i).f_percentage / 100) * product->fermentables.at(i).f_color; // For 8.6 Pt wort. 276 colorn += (product->fermentables.at(i).f_percentage / 100) * product->fermentables.at(i).f_color; // For 8.6 Pt wort.
277 }
278 if (product->fermentables.at(i).f_added == FERMENTABLE_ADDED_BOTTLE) { // Bottle priming
279 ui->bottle_sug_weightShow->setValue(product->fermentables.at(i).f_amount * 1000);
280 // product->fermentables.at(i).f_name select in dropdown
281 }
282 if (product->fermentables.at(i).f_added == FERMENTABLE_ADDED_KEGS) { // Keg priming
283
284 } 277 }
285 /* Check supplies */ 278 /* Check supplies */
286 if ((((product->inventory_reduced <= PROD_STAGE_BREW) && (product->fermentables.at(i).f_added <= FERMENTABLE_ADDED_BOIL)) || 279 if ((((product->inventory_reduced <= PROD_STAGE_BREW) && (product->fermentables.at(i).f_added <= FERMENTABLE_ADDED_BOIL)) ||
287 ((product->inventory_reduced <= PROD_STAGE_PRIMARY) && (product->fermentables.at(i).f_added == FERMENTABLE_ADDED_FERMENTATION)) || 280 ((product->inventory_reduced <= PROD_STAGE_PRIMARY) && (product->fermentables.at(i).f_added == FERMENTABLE_ADDED_FERMENTATION)) ||
288 ((product->inventory_reduced <= PROD_STAGE_TERTIARY) && (product->fermentables.at(i).f_added == FERMENTABLE_ADDED_LAGERING)) || 281 ((product->inventory_reduced <= PROD_STAGE_TERTIARY) && (product->fermentables.at(i).f_added == FERMENTABLE_ADDED_LAGERING)) ||

mercurial