mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
fix typo
compta/facture is a customer invoice, not a supplier invoice Since this hook has just recently been introduced by myself, I hope it's still ok to correct this typo to avoid future confusion.
This commit is contained in:
@@ -695,7 +695,7 @@ if ($object->id > 0) {
|
||||
|
||||
// Hook to change amount for other reasons, e.g. apply cash discount for payment before agreed date
|
||||
$parameters = array('remaintopay' => $resteapayer);
|
||||
$reshook = $hookmanager->executeHooks('finalizeAmountOfSupplierInvoice', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||
$reshook = $hookmanager->executeHooks('finalizeAmountOfCustomerInvoice', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||
if ($reshook > 0) {
|
||||
print $hookmanager->resPrint;
|
||||
if (!empty($remaintopay = $hookmanager->resArray['remaintopay'])) {
|
||||
|
||||
Reference in New Issue
Block a user