mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
E-Invoice - EXC3000: Exchange Rules of RM10K single INV, update new business logic
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user