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