Compare commits

...

10 Commits

Author SHA1 Message Date
c761c7aeae 3.0.44 2022-01-14 04:50:26 +01:00
bd17b4c94f fix(core): update 2022-01-14 04:50:25 +01:00
a71106dcae 3.0.43 2022-01-14 04:45:56 +01:00
32608912b6 fix(core): update 2022-01-14 04:45:56 +01:00
b3fbaff314 3.0.42 2022-01-14 04:32:03 +01:00
3a334418cc fix(core): update 2022-01-14 04:32:02 +01:00
759a19c731 3.0.41 2022-01-08 04:56:56 +01:00
0bb5ee7fac fix(core): update 2022-01-08 04:56:55 +01:00
d9327084a0 3.0.40 2022-01-08 04:20:36 +01:00
14af89dc8b fix(core): update 2022-01-08 04:20:35 +01:00
5 changed files with 17 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@tsclass/tsclass",
"version": "3.0.39",
"version": "3.0.44",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@tsclass/tsclass",
"version": "3.0.39",
"version": "3.0.44",
"license": "MIT",
"dependencies": {
"type-fest": "^2.8.0"

View File

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

View File

@ -33,5 +33,8 @@ export interface IContact {
// financial
// =========
vatId?: string;
bankAccountNumber?: string;
sepaConnection?: {
iban: string;
bic: string;
};
}

View File

@ -2,8 +2,11 @@ import * as business from './';
import * as finance from '../finance';
export interface ILetter {
incidenceId: string;
date: number;
from: business.IAddress;
to: business.IAddress;
logoUrl: string;
accentColor: string;
subject: string;
text: string[];
invoice?: finance.IInvoice;
@ -12,5 +15,4 @@ export interface ILetter {
pdfAttachments: Uint8Array[];
legalContact: business.IContact;
language: string;
}

View File

@ -4,6 +4,7 @@ export type TInvoiceStatus = 'draft' | 'invoice' | 'paid' | 'refunded';
export interface IInvoiceItem {
name: string;
articleNumber?: string;
unitType: string;
unitQuantity: number;
unitNetPrice: number;
@ -12,10 +13,16 @@ export interface IInvoiceItem {
}
export interface IInvoice {
id: string;
billedBy: business.IContact;
billedTo: business.IContact;
status: TInvoiceStatus;
items: IInvoiceItem[];
periodOfPerformance?: {
from: number;
to: number;
};
deliveryDate?: number;
printResult?: {
pdfBufferString: string;
totalNet: number;