29 lines
587 B
TypeScript
29 lines
587 B
TypeScript
import { business } from '..';
|
|
|
|
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
|
|
|
export interface IInvoiceItem {
|
|
name: string;
|
|
unitType: string;
|
|
unitQuantity: number;
|
|
unitNetPrice: number;
|
|
vatPercentage: number;
|
|
currency: 'EUR';
|
|
}
|
|
|
|
export interface IInvoice {
|
|
billedBy: business.IContact;
|
|
billedTo: business.IContact;
|
|
status: TInvoiceStatus;
|
|
items: IInvoiceItem[];
|
|
printResult?: {
|
|
pdfBufferString: string;
|
|
totalNet: number;
|
|
totalGross: number;
|
|
vatGroups: {
|
|
percentage: number;
|
|
items: IInvoiceItem[];
|
|
}
|
|
};
|
|
}
|