Fix: Accountancy - SQL error

This commit is contained in:
aspangaro 2015-06-19 06:01:42 +02:00
parent b2c1365eca
commit d959c552f2

View File

@ -141,7 +141,7 @@ if ($result) {
// Situation invoices handling
$line = new FactureLigne($db);
$line->fetch($obj->id);
$line->fetch($obj->rowid);
$prev_progress = $line->get_prev_progress();
if ($obj->situation_percent == 0) { // Avoid divide by 0
$situation_ratio = 0;