This commit is contained in:
Laurent Destailleur 2024-09-26 21:12:52 +02:00
parent f3a56f466a
commit 3979798bbd

View file

@ -4660,7 +4660,7 @@ if ($action == 'create') {
$object->totalpaid = $totalpaid; // To give a chance to dol_banner_tab to use already paid amount to show correct status
$object->totalcreditnotes = $totalcreditnotes;
$object->totaldeposits = $totaldeposits;
$object->remaintopay = price2num($object->invoice->total_ttc - $object->invoice->totalpaid - $object->invoice->totalcreditnotes - $object->invoice->totaldeposits, 'MT');
$object->remaintopay = price2num($object->total_ttc - $object->totalpaid - $object->totalcreditnotes - $object->totaldeposits, 'MT');
dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref, '', 0, '', '');