Fix wrong amount for situation invoice in sellsjournal

This commit is contained in:
atm-ph 2018-04-11 16:40:59 +02:00
parent 9f67bb0aa3
commit 6f526eb780

View File

@ -164,7 +164,7 @@ if ($result) {
// Situation invoices handling
$line = new FactureLigne($db);
$line->fetch($obj->fdid);
$prev_progress = $line->get_prev_progress($obj->fdid);
$prev_progress = $line->get_prev_progress($obj->rowid);
if ($obj->type == Facture::TYPE_SITUATION) {
// Avoid divide by 0
if ($obj->situation_percent == 0) {