Small code cleanup [skip ci]

This commit is contained in:
James Cole 2016-11-28 20:52:56 +01:00
parent b960f50f38
commit 8f5152e185
2 changed files with 3 additions and 5 deletions

View File

@ -329,8 +329,7 @@ class VerifyDatabase extends Command
*/
private function reportTransfersBudgets()
{
$set = TransactionJournal
::distinct()
$set = TransactionJournal::distinct()
->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id')
->leftJoin('budget_transaction_journal', 'transaction_journals.id', '=', 'budget_transaction_journal.transaction_journal_id')
->where('transaction_types.type', TransactionType::TRANSFER)

View File

@ -78,9 +78,8 @@ class MonthReportGenerator implements ReportGeneratorInterface
$auditData[$id]['dayBeforeBalance'] = $dayBeforeBalance;
}
$reportType = 'audit';
$accountIds = join(',', $this->accounts->pluck('id')->toArray());
$reportType = 'audit';
$accountIds = join(',', $this->accounts->pluck('id')->toArray());
$hideable = ['buttons', 'icon', 'description', 'balance_before', 'amount', 'balance_after', 'date',
'interest_date', 'book_date', 'process_date',
// three new optional fields.