From 0e401df3c06a0a18078a0cceef7ef35e33e3d59d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 1 Oct 2025 15:23:00 -0400 Subject: [PATCH] Setting 0 for the Payment Provider threshold disables the invoice amount check --- CHANGELOG.md | 3 +-- .../payment_provider/payment_provider_add.php | 4 ++-- client/unpaid_invoices.php | 13 ++++++++++--- guest/guest_view_invoice.php | 10 +++++++++- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b85b18f7..5797ed84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,6 @@ This file documents all notable changes made to ITFlow. ### Breaking Changes - Renamed `/user/` directory to `/agent/`. -- Stripe users: Payment Provider Threshold is now enforced. Be sure to configure your desired threshold amount. (It is set to 0 by default) meaning nonone can pay via stripe. If the invoice amount is greater than than the Threshold amount, clients will not be able to pay that invoice via Stripe Pay. - Deprecation Notice: `/scripts/cron_mail_queue.php` and `/scripts/cron_ticket_email_parser.php` are being phased out. Please transition to `/cron/mail_queue.php` and `/cron/ticket_email_parser.php`. These older scripts will be removed in the November release—update accordingly. New Installs via the script will have this already configured. - Custom is working now. Custom code should be placed in /admin/custom/ , /agent/custom/ , /client/custom/ /guest/custom/ We will provide example code with directory structure for each custom directory a week after this release. @@ -22,7 +21,7 @@ We will provide example code with directory structure for each custom directory - Resolved MFA enforcement bugs. - Fixed KeepAlive functionality to maintain user sessions longer. - Fixed multiple broken links caused by the `/user/` to `/agent/` path migration. -- Fixed Cusom +- Fixed Custom code directories. ### Added / Changed - Removed "ACH" as a payment method; added "Bank Transfer" instead. diff --git a/admin/modals/payment_provider/payment_provider_add.php b/admin/modals/payment_provider/payment_provider_add.php index f464e97c..54b52182 100644 --- a/admin/modals/payment_provider/payment_provider_add.php +++ b/admin/modals/payment_provider/payment_provider_add.php @@ -56,9 +56,9 @@
- + - Will not show as an option at Checkout if above this number + Will not show as an option at Checkout if invoice amount is above this number, 0 disables the threshold check.
diff --git a/client/unpaid_invoices.php b/client/unpaid_invoices.php index 9bca00aa..9f6f6271 100644 --- a/client/unpaid_invoices.php +++ b/client/unpaid_invoices.php @@ -142,9 +142,16 @@ $balance = $invoice_amounts - $amount_paid; - $invoice_amount) { - ?> + $invoice_amount + ) + ){ ?>