Merge pull request #1691 from burakcakirel/income-expense-type-for-document-transactions

Add Income/Expense type for document transactions
This commit is contained in:
Denis Duliçi
2020-12-25 19:34:07 +03:00
committed by GitHub
11 changed files with 20 additions and 7 deletions

View File

@ -308,7 +308,7 @@ class Bills extends Controller
public function markPaid(Document $bill)
{
try {
$this->dispatch(new CreateBankingDocumentTransaction($bill, []));
$this->dispatch(new CreateBankingDocumentTransaction($bill, ['type' => 'expense']));
$message = trans('general.messages.marked_paid', ['type' => trans_choice('general.bills', 1)]);