E-Invoice - New segment filter when check PO rule + delete billplz bill when transfer expired

This commit is contained in:
Dillon Ngo
2025-06-27 16:24:12 +08:00
parent 683aa48266
commit 9046164897
@@ -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);
}
}