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."); }