Merge pull request #1691 from burakcakirel/income-expense-type-for-document-transactions
Add Income/Expense type for document transactions
This commit is contained in:
@ -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)]);
|
||||
|
||||
|
@ -358,7 +358,7 @@ class Invoices extends Controller
|
||||
public function markPaid(Document $invoice)
|
||||
{
|
||||
try {
|
||||
event(new \App\Events\Document\PaymentReceived($invoice));
|
||||
event(new \App\Events\Document\PaymentReceived($invoice, ['type' => 'income']));
|
||||
|
||||
$message = trans('general.messages.marked_paid', ['type' => trans_choice('general.invoices', 1)]);
|
||||
|
||||
|
Reference in New Issue
Block a user