FIX creating acredit note from the remain to pay was always 0

This commit is contained in:
ldestailleur
2025-04-25 14:35:18 +02:00
parent ed66c5a453
commit f1ff22a516

View File

@@ -1367,7 +1367,7 @@ if (empty($reshook)) {
$tva_tx = 0;
}
$object->addline($langs->trans('invoiceAvoirLineWithPaymentRestAmount'), $remain_to_pay, 1, $tva_tx, 0, 0, 0, 0, '', '', 0, 0, 0, 'TTC');
$object->addline($langs->trans('invoiceAvoirLineWithPaymentRestAmount'), 0, 1, $tva_tx, 0, 0, 0, 0, '', '', 0, 0, 0, 'TTC', $remain_to_pay);
}
}