Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
058c8cbfc2 | |||
9f1b5df136 | |||
1862444da9 | |||
c69b595fd1 | |||
c761c7aeae | |||
bd17b4c94f | |||
a71106dcae | |||
32608912b6 | |||
b3fbaff314 | |||
3a334418cc | |||
759a19c731 | |||
0bb5ee7fac | |||
d9327084a0 | |||
14af89dc8b | |||
f1b62ce326 | |||
662909a84b |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "3.0.38",
|
||||
"version": "3.0.46",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "3.0.38",
|
||||
"version": "3.0.46",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"type-fest": "^2.8.0"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tsclass/tsclass",
|
||||
"version": "3.0.38",
|
||||
"version": "3.0.46",
|
||||
"private": false,
|
||||
"description": "common classes for TypeScript",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -33,5 +33,8 @@ export interface IContact {
|
||||
// financial
|
||||
// =========
|
||||
vatId?: string;
|
||||
bankAccountNumber?: string;
|
||||
sepaConnection?: {
|
||||
iban: string;
|
||||
bic: string;
|
||||
};
|
||||
}
|
||||
|
@ -2,10 +2,20 @@ 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;
|
||||
invoiceData?: finance.IInvoice;
|
||||
contractData?: {
|
||||
id: string;
|
||||
contractDate: number;
|
||||
};
|
||||
timesheetData: 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;
|
||||
@ -12,10 +13,17 @@ 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;
|
||||
dueInDays: number;
|
||||
printResult?: {
|
||||
pdfBufferString: string;
|
||||
totalNet: number;
|
||||
|
Reference in New Issue
Block a user