Compare commits

...

12 Commits

Author SHA1 Message Date
5723ddd059 1.0.29 2018-07-10 23:59:07 +02:00
5b67ad1c1c fix(finance): add IExpense 2018-07-10 23:59:07 +02:00
0044ab7b7e 1.0.28 2018-06-21 21:18:47 +02:00
e40c6b60d1 fix(Contact): add email and phone 2018-06-21 21:18:46 +02:00
af427347d9 1.0.27 2018-06-20 23:29:02 +02:00
952103c64e fix(Contact): update 2018-06-20 23:29:02 +02:00
65ba20253c 1.0.26 2018-06-20 23:14:39 +02:00
73e90165a4 fix(Contact): add customerNumber 2018-06-20 23:14:39 +02:00
bc16d5e8ea 1.0.25 2018-06-20 23:12:33 +02:00
7bb964603c fix(IContact): add description 2018-06-20 23:12:33 +02:00
a8ee64eb54 1.0.24 2018-06-19 23:48:38 +02:00
f75d0f9378 fix(core): update 2018-06-19 23:48:38 +02:00
6 changed files with 21 additions and 7 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@tsclass/tsclass",
"version": "1.0.23",
"version": "1.0.29",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@tsclass/tsclass",
"version": "1.0.23",
"version": "1.0.29",
"private": false,
"description": "common classes for TypeScript",
"main": "dist/index.js",

View File

@ -12,14 +12,20 @@ export interface IContact {
// =======
salutation?: TContactSalutation;
type: TContactType;
title: TContactTitle;
title?: TContactTitle;
name: string;
surname: string;
surname?: string;
legalEntity?: string;
address: IAddress;
description: string;
customerNumber?: string;
email?: string;
phone?: string;
// =========
// financial
// =========
vatId?: string;
accountNumber?: string;
bankAccountNumber?: string;
}

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';
@ -10,6 +10,7 @@ export interface IInvoiceItem {
}
export interface IInvoice {
pdfFile?: any;
billedBy: IContact;
billedTo: IContact;
status: TInvoiceStatus;

View File

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