# HG changeset patch # User Michiel Broek # Date 1670081544 -3600 # Node ID 9e0da3824cf93817031e3cf980fff24a843126cf # Parent 9b5acb1f5776fa2f62f9a95873b51f855289f23e Make sure the package abv is final when the tertiary fermentation data is filled in. diff -r 9b5acb1f5776 -r 9e0da3824cf9 src/EditProductTab11.cpp --- a/src/EditProductTab11.cpp Sun Nov 27 15:14:21 2022 +0100 +++ b/src/EditProductTab11.cpp Sat Dec 03 16:32:24 2022 +0100 @@ -60,10 +60,11 @@ return; } - if (product->stage > PROD_STAGE_TERTIARY) { + if ((product->stage >= PROD_STAGE_TERTIARY) && (product->fg >= 0.990)) { + /* Make sure we have the final value. */ + product->package_abv = Utils::abvol(product->brew_fermenter_sg, product->fg); ui->pack_abvLabel->setText(tr("Package ABV %:")); ui->pack_finalabvLabel->setText(tr("Final ABV %:")); - ui->pack_finalcolorLabel->setText(tr("Final EBC:")); ui->pack_finalibuLabel->setText(tr("Final IBU:")); } else { product->package_abv = product->est_abv; diff -r 9b5acb1f5776 -r 9e0da3824cf9 src/EditProductTab3.cpp --- a/src/EditProductTab3.cpp Sun Nov 27 15:14:21 2022 +0100 +++ b/src/EditProductTab3.cpp Sat Dec 03 16:32:24 2022 +0100 @@ -464,6 +464,7 @@ ui->est_colorEdit->setValue(product->brew_fermenter_color); ui->est_colorEdit->setStyleSheet(Utils::ebc_to_style(product->brew_fermenter_color)); ui->est_colorShow->setValue(product->brew_fermenter_color); + ui->pack_finalcolorLabel->setText(tr("Final EBC:")); } else { ui->est_colorEdit->setValue(color); ui->est_colorEdit->setStyleSheet(Utils::ebc_to_style(color)); @@ -520,7 +521,7 @@ product->est_fg = Utils::estimate_fg(psugar, pcara, mashinfuse / product->mashs_kg, mashtime, mashtemp, svg, product->est_og); else product->est_fg = Utils::estimate_fg(psugar, pcara, 0, 0, 0, svg, product->est_og); -// qDebug() << " est FG" << ui->est_fgEdit->value() << product->est_fg; + qDebug() << " est FG" << ui->est_fgEdit->value() << product->est_fg; product->est_abv = Utils::abvol(product->est_og, product->est_fg); // qDebug() << " est ABV" << ui->est_abvEdit->value() << product->est_abv; diff -r 9b5acb1f5776 -r 9e0da3824cf9 translations/bmsapp_en.ts --- a/translations/bmsapp_en.ts Sun Nov 27 15:14:21 2022 +0100 +++ b/translations/bmsapp_en.ts Sat Dec 03 16:32:24 2022 +0100 @@ -2983,7 +2983,7 @@ - + Mash @@ -4202,27 +4202,27 @@ - + Final EBC: - + Final FG: - + Final ABV: - + Delete fermentable - + @@ -4232,46 +4232,46 @@ - + Current ingredient: - + Supplier: - + Amount in kg: - + Percentage in batch: - + Auto fill to 100%: - + Use at: - + Select ingredient: - + @@ -4279,23 +4279,23 @@ - + Max in batch: - - - Boil - - - - Fermentation + + Boil + Fermentation + + + + Lagering @@ -4375,7 +4375,7 @@ - + Final IBU: @@ -4866,12 +4866,12 @@ - + Confirm package - + Confirm that the beer is packaged and all data is correct diff -r 9b5acb1f5776 -r 9e0da3824cf9 translations/bmsapp_nl.ts --- a/translations/bmsapp_nl.ts Sun Nov 27 15:14:21 2022 +0100 +++ b/translations/bmsapp_nl.ts Sat Dec 03 16:32:24 2022 +0100 @@ -3080,7 +3080,7 @@ - + Mash Maischen @@ -4594,17 +4594,17 @@ - + Final EBC: Finale EBC: - + Final FG: Finale FG: - + Final ABV: Finale ABV: @@ -4621,12 +4621,12 @@ Finale FG: - + Delete fermentable Verwijder vergistbaar ingredient - + @@ -4636,46 +4636,46 @@ Verwijder %1 - + Current ingredient: Huidig ingredient: - + Supplier: Leverancier: - + Amount in kg: Gewicht in kg: - + Percentage in batch: Percentage in stort: - + Auto fill to 100%: Aanvullen tot 100%: - + Use at: Toevoegen bij: - + Select ingredient: Kies ingredient: - + @@ -4683,23 +4683,23 @@ In voorraad: - + Max in batch: Max. in stort: - + Boil Koken - + Fermentation Hoofdvergisting - + Lagering Nagisting/lagering @@ -4779,7 +4779,7 @@ - + Final IBU: Finale IBU: @@ -5548,12 +5548,24 @@ Batterij volt - + Final ABV %:x + Finale ABV %:x + + + Final EBC:x + Finale EBC:x + + + Final IBU:x + Finale IBU:x + + + Confirm package Bevestig verpakken - + Confirm that the beer is packaged and all data is correct Bevestig dat het bier verpakt is en de gegevens kloppen diff -r 9b5acb1f5776 -r 9e0da3824cf9 ui/EditProduct.ui --- a/ui/EditProduct.ui Sun Nov 27 15:14:21 2022 +0100 +++ b/ui/EditProduct.ui Sat Dec 03 16:32:24 2022 +0100 @@ -10606,9 +10606,9 @@ - 340 + 320 20 - 171 + 191 20