Add opposing account info [skip ci] #595

This commit is contained in:
James Cole
2017-03-10 15:28:04 +01:00
parent a8fdfdd5e0
commit ef0057d88d

View File

@@ -518,7 +518,7 @@ class BudgetController extends Controller
// count journals without budget in this period:
/** @var JournalCollectorInterface $collector */
$collector = app(JournalCollectorInterface::class);
$collector->setAllAssetAccounts()->setRange($end, $currentEnd)->withoutBudget();
$collector->setAllAssetAccounts()->setRange($end, $currentEnd)->withoutBudget()->withOpposingAccount();
$journals = $collector->getJournals()->count();
$dateStr = $end->format('Y-m-d');
$dateName = Navigation::periodShow($end, $range);