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:
vollstock committed 2025-11-19 12:48:21 +01:00
1 parent f264459435
commit d6e58a762c
2 files changed
+24 -37

No files matched your search

+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,