Fix bad position of parameters when creating supplier credit note

This commit is contained in:
Laurent Destailleur 2019-02-28 19:06:51 +01:00
parent 429da47d68
commit dddf322264

View File

@ -775,7 +775,7 @@ if (empty($reshook))
$totaldeposits = $facture_source->getSumDepositsUsed();
$remain_to_pay = abs($facture_source->total_ttc - $totalpaye - $totalcreditnotes - $totaldeposits);
$object->addline($langs->trans('invoiceAvoirLineWithPaymentRestAmount'),$remain_to_pay,1,0,0,0,0,0,'','','TTC');
$object->addline($langs->trans('invoiceAvoirLineWithPaymentRestAmount'), $remain_to_pay, 0, 0, 0, 1, 0, 0, '', '', 'TTC');
}
}
}