Fixed a regression where customer and contacts of an invoice haven’t been set when opening an invoice for editing as these fields aren't in the summary that now get’s loaded with inertia

This commit is contained in:
2025-11-19 12:48:21 +01:00
parent 327e82a4a6
commit 856d4d52a9
2 changed files with 24 additions and 37 deletions
+2
View File
@@ -149,6 +149,7 @@ export interface Invoice {
serviceEndDate: Date | null;
isRecurring: boolean;
isPartialService: boolean;
customerId?: number | null;
customer?: Customer | null;
paymentStatus: PaymentStatus;
totalAmount: number;
@@ -180,6 +181,7 @@ export function newInvoice(): Invoice {
serviceEndDate: date,
isRecurring: false,
isPartialService: false,
customerId: 0,
customer: newCustomer(),
paymentStatus: "draft",
totalAmount: 0,