From e4e84d6036ca574a972f3cce4cdf7e7a77e632f8 Mon Sep 17 00:00:00 2001 From: Joachim Kueter Date: Wed, 3 May 2023 22:14:07 +0200 Subject: [PATCH] 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. --- htdocs/compta/facture/prelevement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index 948bb42337a..241125b1d7e 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -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'])) {