From 4d07e39067f5127ae2dd1cca0d6e106c3ce2a9a8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Jan 2021 15:10:12 +0100 Subject: [PATCH] NEW Show total of payment on payment confirm page --- htdocs/fourn/facture/paiement.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index f88e6dfd834..2ab27988333 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -409,6 +409,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie } function callForResult(imgId) { + console.log("callForResult Calculate total of payment"); var json = {}; var form = $("#payment_form"); @@ -445,6 +446,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie } }); } + callForResult(); $("#payment_form").find("input.amount").change(function() { callForResult(); }); @@ -690,10 +692,10 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie if (!empty($conf->use_javascript_ajax)) print img_picto("Auto fill", 'rightarrow', "class='AutoFillAmout' data-rowname='".$namef."' data-value='".($sign * $remaintopay)."'"); print ''; - print ''; + print ''; // class is requied to be used by javascript callForResult(); } else { print ''; - print ''; + print ''; // class is requied to be used by javascript callForResult(); } print "";