1
0
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:
Aleksander V. Dyomin 2019-08-05 13:16:03 +03:00
parent 7d65f8b1b7
commit d00d1e9266

View File

@ -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);