Move REST calls from invoice table to invoice dialog, fixes #56

This commit is contained in:
2025-11-18 20:46:40 +01:00
parent eda81628e5
commit 250c4538aa
4 changed files with 270 additions and 203 deletions
+3 -1
View File
@@ -138,6 +138,8 @@ export function newCustomer(): Customer {
}
}
export type PaymentStatus = 'draft' | 'issued' | 'paid' | 'due' | 'reminded' | 'cancelled'
export interface Invoice {
id: number;
nr: string;
@@ -148,7 +150,7 @@ export interface Invoice {
isRecurring: boolean;
isPartialService: boolean;
customer?: Customer | null;
paymentStatus: 'draft' | 'issued' | 'paid' | 'due' | 'reminded' | 'cancelled';
paymentStatus: PaymentStatus;
totalAmount: number;
title: string;
text: string;