Compare commits

...

8 Commits

Author SHA1 Message Date
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
f1b62ce326 3.0.39 2022-01-08 04:19:18 +01:00
662909a84b fix(core): update 2022-01-08 04:19:18 +01:00
10c7111cbb 3.0.38 2022-01-08 02:29:24 +01:00
ae8c091f2d fix(core): update 2022-01-08 02:29:24 +01:00
5 changed files with 28 additions and 3 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -1,4 +1,5 @@
export * from './address';
export * from './company';
export * from './contact';
export * from './letter';
export * from './person';

18
ts/business/letter.ts Normal file
View File

@ -0,0 +1,18 @@
import * as business from './';
import * as finance from '../finance';
export interface ILetter {
incidenceId: string;
from: business.IAddress;
to: business.IAddress;
logoUrl: string;
accentColor: string;
subject: string;
text: string[];
invoice?: finance.IInvoice;
contractRef: string;
timesheetRef: string;
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;
@ -16,6 +17,11 @@ export interface IInvoice {
billedTo: business.IContact;
status: TInvoiceStatus;
items: IInvoiceItem[];
periodOfPerformance?: {
from: number;
to: number;
};
deliveryDate?: number;
printResult?: {
pdfBufferString: string;
totalNet: number;