From 630fe1f74b4c21e674d4d6ce79fbf37f6365161f Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Wed, 31 Dec 2025 22:12:49 +0800 Subject: [PATCH] E-Invoice - EXC3000: Exchange Rules of RM10K single INV, update new business logic --- .../Standards/Rules/CanPassMustEInvoiceAmountLimitRule.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Classes/Modules/Rules/Standards/Rules/CanPassMustEInvoiceAmountLimitRule.php b/app/Classes/Modules/Rules/Standards/Rules/CanPassMustEInvoiceAmountLimitRule.php index b0ecfafc..48b7e3ab 100644 --- a/app/Classes/Modules/Rules/Standards/Rules/CanPassMustEInvoiceAmountLimitRule.php +++ b/app/Classes/Modules/Rules/Standards/Rules/CanPassMustEInvoiceAmountLimitRule.php @@ -89,8 +89,10 @@ class CanPassMustEInvoiceAmountLimitRule extends AbstractRule // throw new CriteriaNotFulfilledException("RM10,000 and above must opt-in for E-Invoice."); // } - if((($booking->fix_amount >= 17000 && $booking->fix_currency_id === 2) || - ($booking->fix_amount >= 2400 && $booking->fix_currency_id === 3)) + //1 MYR, 2 CNY, 3USD + if((($booking->fix_amount >= 9000 && $booking->fix_currency_id === 1) || + ($booking->fix_amount >= 12600 && $booking->fix_currency_id === 2) || + ($booking->fix_amount >= 1920 && $booking->fix_currency_id === 3)) && (!$company->e_invoice || !$company->tin) ){ throw new CriteriaNotFulfilledException("Booking amount above limit, must opt-in for E-Invoice."); }