From e45b543ff80e62a9753bd249974f36bf07eeae84 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 12 Nov 2024 15:16:57 -0500 Subject: [PATCH] Format Payment for currenct in alerting --- post/user/invoice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post/user/invoice.php b/post/user/invoice.php index 6e325698..9a372387 100644 --- a/post/user/invoice.php +++ b/post/user/invoice.php @@ -875,7 +875,7 @@ if (isset($_POST['add_payment'])) { customAction('invoice_pay', $invoice_id); - $_SESSION['alert_message'] .= "Payment amount $payment_amount added"; + $_SESSION['alert_message'] .= "Payment amount " . numfmt_format_currency($currency_format, $amount, $invoice_currency_code) . " added"; header("Location: " . $_SERVER["HTTP_REFERER"]); } @@ -1005,7 +1005,7 @@ if (isset($_POST['add_bulk_payment'])) { } // End Email // Logging - logAction("Invoice", "Payment", "Bulk Payment amount of $bulk_payment_amount_static applied to multiple invoices", $client_id); + logAction("Invoice", "Payment", "Bulk Payment amount of " . numfmt_format_currency($currency_format, $bulk_payment_amount_static, $currency_code) . " applied to multiple invoices", $client_id); $_SESSION['alert_message'] .= "Bulk Payment added";