diff --git a/app/Ninja/Reports/InvoiceReport.php b/app/Ninja/Reports/InvoiceReport.php index 1dce1b17b1b9..ddd410521cea 100644 --- a/app/Ninja/Reports/InvoiceReport.php +++ b/app/Ninja/Reports/InvoiceReport.php @@ -56,7 +56,7 @@ class InvoiceReport extends AbstractReport $clients = Client::scope() ->orderBy('name') ->withArchived() - ->with('contacts', 'user') + ->with('contacts', 'user', 'country', 'shipping_country') ->with(['invoices' => function ($query) use ($statusIds) { $query->invoices() ->withArchived() @@ -122,7 +122,7 @@ class InvoiceReport extends AbstractReport $invoice->po_number, $invoice->private_notes, $client->vat_number, - $invoice->user->getDisplayName(), + $client->user->getDisplayName(), trim(str_replace('
', ', ', $client->present()->address()), ', '), trim(str_replace('
', ', ', $client->present()->address(ADDRESS_SHIPPING)), ', '), ];