Move REST calls from invoice table to invoice dialog, fixes #56
This commit is contained in:
Vendored
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user