Added Revenue/Payment show page

This commit is contained in:
Cüneyt Şentürk
2021-06-21 16:21:50 +03:00
parent eff62d5cfb
commit 19319fad3d
7 changed files with 61 additions and 12 deletions

View File

@ -371,11 +371,11 @@ class Transaction extends Model
}
if ($this->isIncome()) {
return !empty($this->document_id) ? 'invoices.show' : 'revenues.edit';
return !empty($this->document_id) ? 'invoices.show' : 'revenues.show';
}
if ($this->isExpense()) {
return !empty($this->document_id) ? 'bills.show' : 'payments.edit';
return !empty($this->document_id) ? 'bills.show' : 'payments.show';
}
return 'transactions.index';