src/database/db_product.h

Mon, 24 Oct 2022 19:59:08 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 24 Oct 2022 19:59:08 +0200
changeset 423
8cb46020796a
parent 248
1a7a5dffba58
permissions
-rw-r--r--

Adjusted chiller_loss default value to 0.4. Disabled product fields eq_calc_boil_volume, eq_hop_utilization, eq_lauter_volume and eq_lauter_height. Added eq_chiller_type, eq_chiller_to79, eq_chiller_volume, eq_chiller_lpm, eq_chiller_loss with default values for immersion chilling. Load these values from new selected equipment. Changed edit product tab 2 to show new the new fields and removed the obsolete fields.

#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

mercurial