mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
TaxRateReport: avoid additional queries in the result items loop
This commit is contained in:
parent
7d65f8b1b7
commit
d00d1e9266
@ -31,7 +31,9 @@ class TaxRateReport extends AbstractReport
|
||||
->withArchived()
|
||||
->with('contacts', 'user')
|
||||
->with(['invoices' => function ($query) {
|
||||
$query->with('invoice_items')
|
||||
$query
|
||||
->with('account', 'client')
|
||||
->with('invoice_items')
|
||||
->withArchived()
|
||||
->invoices()
|
||||
->where('is_public', '=', true);
|
||||
|
Loading…
Reference in New Issue
Block a user