Merge branch 'debtor' into 'development'

Debtor

See merge request CIEFWorldwideSdnBhd/exchange-2.0!100
This commit is contained in:
Leong Chee Siong
2022-04-06 15:01:05 +00:00
@@ -139,8 +139,6 @@ class CreateBookingPaymentLogic extends AbstractControllerLogic
$paymentReference = $billNumber;
$this->updatesWalletBalance->execute($wallet, ($amount * -1));
$cash_back_transaction = $this->createCashBackTransactionProcessor->execute($transaction);
}
$billNumber = $this->generatesTransactionBillNumber->execute('PYMT-');
@@ -153,6 +151,7 @@ class CreateBookingPaymentLogic extends AbstractControllerLogic
/** @var Transaction $transaction */
$transaction = $this->createsTransaction->execute($booking, $object);
$cash_back_transaction = $this->createCashBackTransactionProcessor->execute($transaction);
if(PaymentMethodType::PAYMENT_METHODS[$request->input('payment_method')] == PaymentMethodType::WALLET){
$this->updatesTransactionStatus->execute($transaction, ApprovalStatus::APPROVED);