src/database/db_product.cpp

changeset 384
d68826df8b63
parent 373
b02aca4e926c
child 423
8cb46020796a
equal deleted inserted replaced
383:bd20f8710f45 384:d68826df8b63
376 h.inventory = yquery.value("inventory").toDouble(); 376 h.inventory = yquery.value("inventory").toDouble();
377 if (h.utilisation == 0) 377 if (h.utilisation == 0)
378 h.utilisation = yquery.value("utilisation").toDouble(); 378 h.utilisation = yquery.value("utilisation").toDouble();
379 if (h.bu_factor == 0) 379 if (h.bu_factor == 0)
380 h.bu_factor = yquery.value("bu_factor").toDouble(); 380 h.bu_factor = yquery.value("bu_factor").toDouble();
381 } 381 } else {
382 h.utilisation = my_ut_pellet;
383 h.bu_factor = 1.0;
384 }
382 prod->hops.append(h); 385 prod->hops.append(h);
383 } 386 }
384 qDebug() << "hops" << prod->hops.size(); 387 qDebug() << "hops" << prod->hops.size();
385 } 388 }
386 } else { 389 } else {

mercurial