From 1511bf811c0438f36d7c088fc49abd52ab285057 Mon Sep 17 00:00:00 2001 From: Dorian Vabre Date: Fri, 23 Apr 2021 12:22:03 +0200 Subject: [PATCH] now getting the amount of the invoice in the newpayment page --- htdocs/public/payment/newpayment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 5007b325c11..d6613cb86de 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -132,6 +132,7 @@ if ($source == 'conferencesubscription') { if ($resultinvoice <= 0) { setEventMessages(null, $invoice->errors, "errors"); } else { + $amount = price2num($invoice->total_ttc); // Finding the associated thirdparty $thirdparty = new Societe($db); $resultthirdparty = $thirdparty->fetch($invoice->socid); @@ -1814,7 +1815,7 @@ if ($source == 'conferencesubscription') { // Amount print ''.$langs->trans("Amount"); print ''; - $valtoshow = $invoice->total_ttc; + $valtoshow = $amount; print ''.price($valtoshow).''; print ''; print '';