Fix typo on getStatus call on entity listener #801

This commit is contained in:
Ramon Gutierrez 2024-05-31 12:28:43 +08:00
parent e97cebd2b2
commit 191a02f4c4
2 changed files with 3 additions and 1 deletions

View file

@ -85,6 +85,8 @@ class ProcessLatePaymongoTransactionsCommand extends Command
$output->writeln('Marked transaction '. $trans->getID() . ' as paid.'); $output->writeln('Marked transaction '. $trans->getID() . ' as paid.');
$x++; $x++;
} else {
$output->writeln('<comment>Insufficient payment amount (' . $amount_paid . '/' . $trans->getAmount() . ') for this transaction: ' . $trans->getID() . '</comment>');
} }
} else { } else {
$output->writeln('<comment>No payments found for transaction: ' . $trans->getID() . '</comment>'); $output->writeln('<comment>No payments found for transaction: ' . $trans->getID() . '</comment>');

View file

@ -59,7 +59,7 @@ class GatewayTransactionListener
]); ]);
// make sure the object exists and has not been processed yet // make sure the object exists and has not been processed yet
if (!empty($obj) && $obj->getStatus === InsuranceApplicationStatus::CREATED) { if (!empty($obj) && $obj->getStatus() === InsuranceApplicationStatus::CREATED) {
// mark as paid // mark as paid
$obj->setDatePay(new DateTime()); $obj->setDatePay(new DateTime());
$obj->setStatus(InsuranceApplicationStatus::PAID); $obj->setStatus(InsuranceApplicationStatus::PAID);