removed extra brackets
This commit is contained in:
@@ -51,7 +51,7 @@ class ProfitLoss extends Report
|
||||
break;
|
||||
default:
|
||||
// Invoices
|
||||
$invoices = $this->applyFilters(Invoice::with(['recurring', 'transactions', 'totals'])->accrued(), ['date_field' => 'invoiced_at'])->get();
|
||||
$invoices = $this->applyFilters(Invoice::with('recurring', 'totals', 'transactions')->accrued(), ['date_field' => 'invoiced_at'])->get();
|
||||
Recurring::reflect($invoices, 'invoiced_at');
|
||||
$this->setTotals($invoices, 'invoiced_at', true, $this->tables['income'], false);
|
||||
|
||||
@@ -61,7 +61,7 @@ class ProfitLoss extends Report
|
||||
$this->setTotals($revenues, 'paid_at', true, $this->tables['income'], false);
|
||||
|
||||
// Bills
|
||||
$bills = $this->applyFilters(Bill::with(['recurring', 'transactions', 'totals'])->accrued(), ['date_field' => 'billed_at'])->get();
|
||||
$bills = $this->applyFilters(Bill::with('recurring', 'totals', 'transactions')->accrued(), ['date_field' => 'billed_at'])->get();
|
||||
Recurring::reflect($bills, 'bill', 'billed_at');
|
||||
$this->setTotals($bills, 'billed_at', true, $this->tables['expense'], false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user