Merge pull request #8564 from atm-ph/fix_6.0_sellsjournal_situation_invoice

Fix wrong amount for situation invoice in sellsjournal
This commit is contained in:
Laurent Destailleur 2018-04-11 17:51:00 +02:00 committed by GitHub
commit 0f3d2cc8df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {