fix wallet bug

This commit is contained in:
omair saleh
2022-03-02 11:59:40 +08:00
parent 6796f238cb
commit cb41a777fd
@@ -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);