src/database/db_product.cpp

changeset 519
1b9e887392aa
parent 487
04c67c9f903c
child 521
5fbe71d69fe5
--- a/src/database/db_product.cpp	Tue Feb 27 17:32:00 2024 +0100
+++ b/src/database/db_product.cpp	Mon Mar 04 19:48:59 2024 +0100
@@ -679,12 +679,8 @@
     query.bindValue(":eq_trub_loss", round(prod->eq_trub_loss * 10) / 10);
     query.bindValue(":eq_evap_rate", round(prod->eq_evap_rate * 100) / 100);
     query.bindValue(":eq_boil_time", round(prod->eq_boil_time));
-    //query.bindValue(":eq_calcboil", prod->eq_calc_boil_volume ? 1:0);
     query.bindValue(":eq_top_up_kettle", round(prod->eq_top_up_kettle * 10) / 10);
-    //query.bindValue(":eq_hopfactor", round(prod->eq_hop_utilization));
     query.bindValue(":eq_notes", prod->eq_notes);
-    //query.bindValue(":eq_lauter_volume", round(prod->eq_lauter_volume * 10) / 10);
-    //query.bindValue(":eq_lauter_height", round(prod->eq_lauter_height * 1000) / 1000);
     query.bindValue(":eq_lauter_deadspace", round(prod->eq_lauter_deadspace * 10) / 10);
     query.bindValue(":eq_kettle_volume", round(prod->eq_kettle_volume * 10) / 10);
     query.bindValue(":eq_kettle_height", round(prod->eq_kettle_height * 1000) / 1000);
@@ -992,7 +988,7 @@
 		obj.insert("y_gr_hl_hi", prod->yeasts.at(i).gr_hl_hi);
 		obj.insert("y_sg_hi", round(prod->yeasts.at(i).sg_hi * 1000) / 1000);
 		obj.insert("y_cost", round(prod->yeasts.at(i).cost * 1000) / 1000);
-		if (! product->yeasts.at(i).yp_uuid.isNull() && (product->yeasts.at(i).yp_uuid.length() == 36)) {
+		if (! prod->yeasts.at(i).yp_uuid.isNull() && (prod->yeasts.at(i).yp_uuid.length() == 36)) {
 //		    qDebug() << "yeasts_Json append package";
 		    QJsonObject package;
 		    package.insert("uuid", prod->yeasts.at(i).yp_uuid);

mercurial