Set up billing profile

This commit is contained in:
Peter Papp
2021-05-06 09:15:37 +02:00
parent 070a3aaba4
commit 69deafeda0
13 changed files with 553 additions and 43 deletions

View File

@@ -216,9 +216,7 @@ class InvoiceController extends Controller
'value' => $client->id,
];
}),
'isVatPayer' => $user->invoiceProfile->ic_dph
? true
: false,
'isVatPayer' => $user->invoiceProfile->ic_dph ?? false,
'latestInvoiceNumber' => $user->regularInvoices->first()
? (int) $user->regularInvoices->first()->invoice_number
: null,