src/EditProductTab11.cpp

changeset 448
9e0da3824cf9
parent 447
9b5acb1f5776
--- 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;

mercurial