Skip to content
Snippets Groups Projects
Commit 7eedad2f authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Merge remote-tracking branch 'apharius/master'

parents da769a8f 33cfafaf
Branches
Tags
No related merge requests found
...@@ -779,7 +779,7 @@ void MainWindow::clear_stockDiffTemp() ...@@ -779,7 +779,7 @@ void MainWindow::clear_stockDiffTemp()
*/ */
QVariant MainWindow::get_acquistion_stock_value() QVariant MainWindow::get_acquistion_stock_value()
{ {
qlonglong total_price; qlonglong total_price = 0;
QSqlQuery tQuery("SELECT s.product_id as id, s.active as active, p.name " QSqlQuery tQuery("SELECT s.product_id as id, s.active as active, p.name "
"FROM stock s INNER JOIN products p " "FROM stock s INNER JOIN products p "
"ON s.product_id = p.id"); "ON s.product_id = p.id");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment