Compare commits

...

12 Commits

Author SHA1 Message Date
e10a45a4d0 1.0.32 2018-07-12 01:04:25 +02:00
074f6bfd1e fix(IExpense): update 2018-07-12 01:04:25 +02:00
6a1fafeab7 1.0.31 2018-07-11 21:42:05 +02:00
b019cf48b5 fix(fix IExpense): update 2018-07-11 21:42:04 +02:00
1db0a7adec 1.0.30 2018-07-11 21:27:13 +02:00
1901c57a1d fix(core): update structure 2018-07-11 21:27:13 +02:00
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
7 changed files with 24 additions and 8 deletions

View File

@ -134,8 +134,7 @@ windowsCompatibility:
image: stefanscherer/node-windows:10-build-tools
stage: metadata
script:
- npmci npm install
- npmci npm test
- npm install & npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- windows

2
package-lock.json generated
View File

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

View File

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

View File

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

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

@ -0,0 +1,14 @@
import { IInvoice } from './invoice';
import { IContact } from '../business/contact';
export interface IExpenseItem {
amount: number;
taxPercentage: number;
}
export interface IExpense {
voucherFile?: any
expenseItems: IExpenseItem[];
contactRef: string;
accountRef: string;
}

View File

@ -1,4 +1,4 @@
import { IContact } from '../index';
import { IContact } from '..';
export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';

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';