Add Income/Expense type for document transactions
This commit is contained in:
@ -48,7 +48,7 @@ class Bills extends BulkAction
|
||||
$bills = $this->getSelectedRecords($request);
|
||||
|
||||
foreach ($bills as $bill) {
|
||||
$this->dispatch(new CreateBankingDocumentTransaction($bill, []));
|
||||
$this->dispatch(new CreateBankingDocumentTransaction($bill, ['type' => 'expense']));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ class Invoices extends BulkAction
|
||||
$invoices = $this->getSelectedRecords($request);
|
||||
|
||||
foreach ($invoices as $invoice) {
|
||||
event(new PaymentReceived($invoice));
|
||||
event(new PaymentReceived($invoice, ['type' => 'income']));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user