Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
759a19c731 | |||
0bb5ee7fac | |||
d9327084a0 | |||
14af89dc8b | |||
f1b62ce326 | |||
662909a84b | |||
10c7111cbb | |||
ae8c091f2d |
4
package-lock.json
generated
4
package-lock.json
generated
@ -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"
|
||||
|
@ -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",
|
||||
|
@ -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
18
ts/business/letter.ts
Normal 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;
|
||||
|
||||
}
|
@ -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;
|
||||
|
Reference in New Issue
Block a user