Skip to content

Commit 6c6a69b

Browse files
committed
feat(invoice): add models for invoice section and position
1 parent 85cc0af commit 6c6a69b

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

packages/modules/invoice/src/lib/models/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ export * from './invoice-list-item.model';
22
export * from './invoice-list.mapper';
33
export * from './invoice-detail.model';
44
export * from './invoice-detail.mapper';
5+
export * from './invoice-section.model';
6+
export * from './invoice-document.model';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export interface InvoiceDocumentVM {
2+
id: string;
3+
name: string;
4+
url: string;
5+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export interface InvoiceSectionVM {
2+
id: string;
3+
title: string;
4+
customerRemark?: string;
5+
amount: number;
6+
positions: InvoicePositionVM[];
7+
}
8+
9+
export interface InvoicePositionVM {
10+
id: string;
11+
type: 'product' | 'fulfillment';
12+
name: string;
13+
quantity: number;
14+
unitPrice: number;
15+
}

0 commit comments

Comments
 (0)