mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
TaxRateReport: avoid additional queries in the result items loop
(cherry picked from commit d00d1e926628e5e0e83eb7570716eb3f332d6b27)
This commit is contained in:
parent
de6919d37c
commit
67cb2b3215
@ -31,7 +31,9 @@ class TaxRateReport extends AbstractReport
|
|||||||
->withArchived()
|
->withArchived()
|
||||||
->with('contacts', 'user')
|
->with('contacts', 'user')
|
||||||
->with(['invoices' => function ($query) {
|
->with(['invoices' => function ($query) {
|
||||||
$query->with('invoice_items')
|
$query
|
||||||
|
->with('account', 'client')
|
||||||
|
->with('invoice_items')
|
||||||
->withArchived()
|
->withArchived()
|
||||||
->invoices()
|
->invoices()
|
||||||
->where('is_public', '=', true);
|
->where('is_public', '=', true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user