mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixes tests
This commit is contained in:
parent
8b33ec1339
commit
aa25007431
@ -399,7 +399,7 @@ class CategoryController extends Controller
|
|||||||
$collector->setAllAssetAccounts()->setRange($date['start'], $date['end'])->withoutCategory()
|
$collector->setAllAssetAccounts()->setRange($date['start'], $date['end'])->withoutCategory()
|
||||||
->withOpposingAccount()->setTypes([TransactionType::TRANSFER]);
|
->withOpposingAccount()->setTypes([TransactionType::TRANSFER]);
|
||||||
$collector->removeFilter(InternalTransferFilter::class);
|
$collector->removeFilter(InternalTransferFilter::class);
|
||||||
$transferred = app('steam')->positive($collector->getJournals()->sum('transaction_amount'));
|
$transferred = app('steam')->positive((string)$collector->getJournals()->sum('transaction_amount'));
|
||||||
|
|
||||||
// amount spent
|
// amount spent
|
||||||
/** @var JournalCollectorInterface $collector */
|
/** @var JournalCollectorInterface $collector */
|
||||||
@ -481,7 +481,7 @@ class CategoryController extends Controller
|
|||||||
$collector->setAllAssetAccounts()->setRange($currentDate['start'], $currentDate['end'])->setCategory($category)
|
$collector->setAllAssetAccounts()->setRange($currentDate['start'], $currentDate['end'])->setCategory($category)
|
||||||
->withOpposingAccount()->setTypes([TransactionType::TRANSFER]);
|
->withOpposingAccount()->setTypes([TransactionType::TRANSFER]);
|
||||||
$collector->removeFilter(InternalTransferFilter::class);
|
$collector->removeFilter(InternalTransferFilter::class);
|
||||||
$transferred = app('steam')->positive($collector->getJournals()->sum('transaction_amount'));
|
$transferred = app('steam')->positive((string)$collector->getJournals()->sum('transaction_amount'));
|
||||||
|
|
||||||
$entries->push(
|
$entries->push(
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user