fix(finance): add IExpense
This commit is contained in:
6
ts/finance/expense.ts
Normal file
6
ts/finance/expense.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { IInvoice } from './invoice';
|
||||
|
||||
export interface IExpense {
|
||||
invoice: IInvoice,
|
||||
account: string
|
||||
}
|
18
ts/finance/invoice.ts
Normal file
18
ts/finance/invoice.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { IContact } from '..';
|
||||
|
||||
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
|
||||
|
||||
export interface IInvoiceItem {
|
||||
name: string;
|
||||
unitType: string;
|
||||
quantity: number;
|
||||
vatPercentage: number;
|
||||
}
|
||||
|
||||
export interface IInvoice {
|
||||
pdfFile?: any;
|
||||
billedBy: IContact;
|
||||
billedTo: IContact;
|
||||
status: TInvoiceStatus;
|
||||
items: IInvoiceItem[];
|
||||
}
|
Reference in New Issue
Block a user