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'])) {