fix(finance): add IExpense

This commit is contained in:
2018-07-10 23:59:07 +02:00
parent 0044ab7b7e
commit 5b67ad1c1c
3 changed files with 10 additions and 2 deletions

6
ts/finance/expense.ts Normal file
View File

@ -0,0 +1,6 @@
import { IInvoice } from './invoice';
export interface IExpense {
invoice: IInvoice,
account: string
}

18
ts/finance/invoice.ts Normal file
View 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[];
}