fix(finance): add IExpense

This commit is contained in:
Philipp Kunz 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
}

View File

@ -1,4 +1,4 @@
import { IContact } from '../index'; import { IContact } from '..';
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded'; export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
@ -10,6 +10,7 @@ export interface IInvoiceItem {
} }
export interface IInvoice { export interface IInvoice {
pdfFile?: any;
billedBy: IContact; billedBy: IContact;
billedTo: IContact; billedTo: IContact;
status: TInvoiceStatus; status: TInvoiceStatus;

View File

@ -2,7 +2,8 @@
export * from './business/address'; export * from './business/address';
export * from './business/company'; export * from './business/company';
export * from './business/contact'; export * from './business/contact';
export * from './business/invoice'; export * from './finance/invoice';
export * from './finance/expense';
// Cloud // Cloud
export * from './cloud/dns'; export * from './cloud/dns';