Thu, 18 Aug 2022 16:11:20 +0200
Edit Product, split CO2 package pressure in bottles and kegs. BU:RE code cleanup. calcPack() sets the CO2 values on the first tab. Show final EBC on tab 1 if the stage is after brew. Show final ABV and energy on tab 1 if fermentation is done. Removed wrong bottle priming calculation from calcFermentables() because calcPack() does this.
#ifndef _DB_PRODUCT_H #define _DB_PRODUCT_H #include <QDebug> #include <QMessageBox> #include <QUuid> #include <QJsonArray> #include <QJsonDocument> #include <QJsonObject> #include <QTranslator> #include <QSqlQuery> #include <QSqlError> #include <QSqlRecord> #include <QObject> #include <math.h> /** * @namespace db_product * * @brief Global database product functions.. */ namespace DB_product { bool load(Product *prod, QDialog *dialog, int recno); bool save(Product *prod, QDialog *dialog); bool dele(QDialog *dialog, int recno); } #endif