mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-09-01 10:54:00 +00:00
E-Invoice - New segment filter when check PO rule + delete billplz bill when transfer expired
This commit is contained in:
@@ -80,7 +80,7 @@ class CanPassOrderDurationLimitRule extends AbstractRule
|
||||
|
||||
if($object->paymentReference){
|
||||
$transaction = $this->fetchesTransaction->execute(['payment_reference' => $object->paymentReference]);
|
||||
if($transaction->status === ApprovalStatus::PENDING_SUBMISSION && $transaction->payment_method === PaymentMethodType::PAYMENT_GATEWAY){
|
||||
if($transaction->status === ApprovalStatus::PENDING_SUBMISSION && $transaction->payment_method == PaymentMethodType::PAYMENT_GATEWAY){
|
||||
$this->deletesBillplzBill->execute($object->paymentReference);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user