updated reports
This commit is contained in:
@ -79,11 +79,11 @@ class ProfitLoss extends Report
|
||||
default:
|
||||
// Invoices
|
||||
$invoices = $this->applyFilters(Invoice::accrued(), ['date_field' => 'invoiced_at'])->get();
|
||||
Recurring::reflect($invoices, 'invoice', 'invoiced_at');
|
||||
Recurring::reflect($invoices, 'invoiced_at');
|
||||
$this->setTotals($invoices, 'invoiced_at', true, $this->tables['income']);
|
||||
|
||||
// Income Transactions
|
||||
Recurring::reflect($income_transactions, 'transaction', 'paid_at');
|
||||
Recurring::reflect($income_transactions, 'paid_at');
|
||||
$this->setTotals($income_transactions, 'paid_at', true, $this->tables['income']);
|
||||
|
||||
// Bills
|
||||
@ -92,7 +92,7 @@ class ProfitLoss extends Report
|
||||
$this->setTotals($bills, 'billed_at', true, $this->tables['expense']);
|
||||
|
||||
// Expense Transactions
|
||||
Recurring::reflect($expense_transactions, 'transaction', 'paid_at');
|
||||
Recurring::reflect($expense_transactions, 'paid_at');
|
||||
$this->setTotals($expense_transactions, 'paid_at', true, $this->tables['expense']);
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user