E-Invoice - Fix a problem reported by Joanne about error when uploading payment verification document by customer

This commit is contained in:
Dillon Ngo
2025-07-16 13:25:18 +08:00
parent f313d975dd
commit 87c95afc82
@@ -100,7 +100,7 @@ class CanPassOrderDurationLimitRule extends AbstractRule
}
if($isExpired){
if($object->paymentReference){
if (isset($object->paymentReference) && $object->paymentReference){
$transaction = $this->fetchesTransaction->execute(['payment_reference' => $object->paymentReference]);
if($transaction->status === ApprovalStatus::PENDING_SUBMISSION && $transaction->payment_method == PaymentMethodType::PAYMENT_GATEWAY){
$this->deletesBillplzBill->execute($object->paymentReference);