From f91c0899ade3af1a7d7c4eae5ecd0773d580a212 Mon Sep 17 00:00:00 2001 From: ilyes bahfir Date: Sun, 24 Nov 2024 23:02:36 +0100 Subject: [PATCH] fix: hook for pay.php actions --- htdocs/takepos/pay.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/takepos/pay.php b/htdocs/takepos/pay.php index c878612868715..708c6de738831 100644 --- a/htdocs/takepos/pay.php +++ b/htdocs/takepos/pay.php @@ -267,6 +267,10 @@ function fetchConnectionToken() { } $alreadypayed = (is_object($invoice) ? ($invoice->total_ttc - $remaintopay) : 0); +$parameters = array(); +$reshook = $hookmanager->executeHooks('payActions', $parameters, $invoice, $action); + + if (!getDolGlobalInt("TAKEPOS_NUMPAD")) { print "var received='';"; } else {