fixed total widgets

This commit is contained in:
Denis Duliçi
2021-01-23 23:29:22 +03:00
parent 9c0cc9ae87
commit c2299d2208
4 changed files with 4 additions and 5 deletions

View File

@ -19,7 +19,7 @@ class TotalProfit extends Widget
$current_income = $open_invoice = $overdue_invoice = 0;
$current_expenses = $open_bill = $overdue_bill = 0;
$this->applyFilters(Transaction::isNotDocument()->isNotTransfer())->each(function ($transaction) use (&$current_income, &$current_expenses) {
$this->applyFilters(Transaction::isNotTransfer())->each(function ($transaction) use (&$current_income, &$current_expenses) {
$amount = $transaction->getAmountConvertedToDefault();
if ($transaction->type == 'income') {