E-Invoice - EXC3000: Exchange Rules of RM10K single INV, update new business logic

This commit is contained in:
Dillon Ngo
2025-12-31 22:12:49 +08:00
parent 4d26017fd5
commit 630fe1f74b
@@ -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.");
}