mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Small change in report [skip ci]
This commit is contained in:
@@ -141,13 +141,4 @@ class BillLine
|
||||
$this->hit = $hit;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isHitAndActive():bool
|
||||
{
|
||||
return $this->hit && $this->active;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -23,6 +23,7 @@ use FireflyIII\Repositories\Tag\TagRepositoryInterface;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Query\JoinClause;
|
||||
use Illuminate\Support\Collection;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class ReportHelper
|
||||
@@ -92,7 +93,7 @@ class ReportHelper implements ReportHelperInterface
|
||||
$billLine->setHit(true);
|
||||
}
|
||||
|
||||
if ($billLine->isHitAndActive()) {
|
||||
if ($billLine->isActive()) {
|
||||
$collection->addBill($billLine);
|
||||
}
|
||||
}
|
||||
|
@@ -524,7 +524,6 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
$sum = '0';
|
||||
foreach ($incomes as $entry) {
|
||||
$amount = TransactionJournal::amountPositive($entry);
|
||||
Log::debug('spentInPeriod amount: ' . $amount);
|
||||
$sum = bcadd($sum, $amount);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user