From cb41a777fdb1c7863f328afe70844915949bf37e Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 2 Mar 2022 11:59:40 +0800 Subject: [PATCH] fix wallet bug --- .../Modules/Wallets/ControllersLogic/CreditWalletLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Wallets/ControllersLogic/CreditWalletLogic.php b/app/Classes/Modules/Wallets/ControllersLogic/CreditWalletLogic.php index 1e7b3ceb..f45b2c12 100644 --- a/app/Classes/Modules/Wallets/ControllersLogic/CreditWalletLogic.php +++ b/app/Classes/Modules/Wallets/ControllersLogic/CreditWalletLogic.php @@ -100,7 +100,7 @@ class CreditWalletLogic extends AbstractControllerLogic } $wallet = $company->wallets()->first(); - +dd($wallet); $billNumber = $this->generatesTransactionBillNumber->execute($type === 2 ? 'DEBIT-NOTE-' : 'CREDIT-NOTE-'); $transaction_object = new TransactionObject($billNumber, $type === 2 ? TransactionType::DEBIT_NOTE : TransactionType::CREDIT_NOTE, 1, $wallet->company->id, 1, PaymentMethodType::CASH, $amount, $amount, 1, 1, 1, 0, 0, null, ApprovalStatus::APPROVED, [], $reference);