@dangl/angular-ava 1.0.1-beta0011 → 1.0.1-beta0021
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/ava-tree/invoice/invoice-display/invoice-display.component.mjs +68 -0
- package/esm2022/lib/ava-tree/tree/constants/defaultTextWordInvoice.mjs +77 -0
- package/esm2022/lib/ava-tree/tree/constants/index.mjs +3 -2
- package/esm2022/lib/ava-tree/tree/model/index.mjs +1 -1
- package/esm2022/lib/ava-tree/tree/model/invoice-models.mjs +46 -0
- package/esm2022/lib/ava-tree/tree/model/invoice-words.model.mjs +2 -0
- package/esm2022/lib/version.mjs +7 -7
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/dangl-angular-ava.mjs +150 -9
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/lib/ava-tree/invoice/invoice-display/invoice-display.component.d.ts +54 -0
- package/lib/ava-tree/tree/constants/defaultTextWordInvoice.d.ts +3 -0
- package/lib/ava-tree/tree/constants/index.d.ts +2 -1
- package/lib/ava-tree/tree/model/index.d.ts +2 -1
- package/lib/ava-tree/tree/model/invoice-models.d.ts +389 -0
- package/lib/ava-tree/tree/model/invoice-words.model.d.ts +38 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ITextWordInvoice } from '../../tree/model';
|
|
2
|
+
import { Invoice } from '../../tree/model/invoice-models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InvoiceDisplayComponent {
|
|
5
|
+
invoice: import("@angular/core").InputSignal<Invoice>;
|
|
6
|
+
private _textWords;
|
|
7
|
+
/**
|
|
8
|
+
* You can supply a map of strings to be used for the text in the tree. This allows you to translate
|
|
9
|
+
* the text in the tree to other languages.
|
|
10
|
+
* {
|
|
11
|
+
* invoiceTitle?: string;
|
|
12
|
+
* vatId?: string;
|
|
13
|
+
* detailsInvoiceNumber?: string;
|
|
14
|
+
* detailsInvoiceDate?: string;
|
|
15
|
+
* detailsPaymentDueDate?: string;
|
|
16
|
+
* detailsCurrencyCode?: string;
|
|
17
|
+
* detailsPaymentTerms?: string;
|
|
18
|
+
* referencesTopic?: string;
|
|
19
|
+
* referencesBuyerReference?: string;
|
|
20
|
+
* referencesProjectReference?: string;
|
|
21
|
+
* referencesContractReference?: string;
|
|
22
|
+
* referencesPurchaseOrderReference?: string;
|
|
23
|
+
* referencesSalesOrderReference?: string;
|
|
24
|
+
* referencesReceivingAdviceReference?: string;
|
|
25
|
+
* referencesDispatchAdviceReference?: string;
|
|
26
|
+
* referencesTenderOrLotReference?: string;
|
|
27
|
+
* referencesInvoicedObjectIdentifier?: string;
|
|
28
|
+
* tableHeadDescription?: string;
|
|
29
|
+
* tableHeadQuantity?: string;
|
|
30
|
+
* tableHeadUnit?: string;
|
|
31
|
+
* tableHeadNetPrice?: string;
|
|
32
|
+
* tableHeadNetAmount?: string;
|
|
33
|
+
* totalsTopic?: string;
|
|
34
|
+
* totalsTotalNet?: string;
|
|
35
|
+
* totalsTotalAllowances?: string;
|
|
36
|
+
* totalsTotalCharges?: string;
|
|
37
|
+
* totalsTotalAfterDeductions?: string;
|
|
38
|
+
* totalsTotalVatAmount?: string;
|
|
39
|
+
* totalsTotalGross?: string;
|
|
40
|
+
* totalsAlreadyPaidTotal?: string;
|
|
41
|
+
* totalsTotalToBePaid?: string;
|
|
42
|
+
* instructionsTopic?: string;
|
|
43
|
+
* instructionsAccountIdentifier?: string;
|
|
44
|
+
* instructionsAccountName?: string;
|
|
45
|
+
* instructionsServiceProviderIdentifier?: string;
|
|
46
|
+
* notesTopic?: string;
|
|
47
|
+
* }
|
|
48
|
+
*/
|
|
49
|
+
set textWords(words: ITextWordInvoice | null);
|
|
50
|
+
get textWords(): ITextWordInvoice | null;
|
|
51
|
+
constructor();
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceDisplayComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": true; "isSignal": true; }; "textWords": { "alias": "textWords"; "required": false; }; }, {}, never, never, true, never>;
|
|
54
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_FILTERS } from './defaultFilters';
|
|
2
|
+
import { DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice } from './defaultTextWordInvoice';
|
|
2
3
|
import { DEFAULT_TEXT_WORDS } from './defaultTextWords';
|
|
3
4
|
import { defaults } from './defaults';
|
|
4
|
-
export { DEFAULT_FILTERS, DEFAULT_TEXT_WORDS, defaults };
|
|
5
|
+
export { DEFAULT_FILTERS, DEFAULT_TEXT_WORDS, defaults, DEFAULT_TEXT_WORD_INVOICE, germanTextsInvoice };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ExchangePhaseDto, ExecutionDescriptionDto, IElementDto, ItemNumberDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, NoteTextDto, OriginDto, PositionDto, PriceRoundingModeDto, PriceTypeDto, ProjectDto, ServiceSpecificationDto, ServiceSpecificationGroupDto } from './ava-models';
|
|
2
2
|
import { ContextMenuDataType } from './context-menu-data.model';
|
|
3
3
|
import { IFunctionViewLine, IViewLine } from './function-view-line.model';
|
|
4
|
+
import { ITextWordInvoice } from './invoice-words.model';
|
|
4
5
|
import { SelectedElement } from './selecting.model';
|
|
5
6
|
import { TableColumnType } from './tableColumnType';
|
|
6
7
|
import { ModeViewType } from './tree-mode.model';
|
|
7
|
-
export { ProjectDto, ServiceSpecificationDto, IElementDto, PositionDto, ExecutionDescriptionDto, NoteTextDto, ServiceSpecificationGroupDto, ItemNumberDto, SelectedElement, ModeViewType, TableColumnType, IFunctionViewLine, IViewLine, ContextMenuDataType, ExchangePhaseDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, OriginDto, PriceRoundingModeDto, PriceTypeDto };
|
|
8
|
+
export { ProjectDto, ServiceSpecificationDto, IElementDto, PositionDto, ExecutionDescriptionDto, NoteTextDto, ServiceSpecificationGroupDto, ItemNumberDto, SelectedElement, ModeViewType, TableColumnType, IFunctionViewLine, IViewLine, ContextMenuDataType, ExchangePhaseDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, OriginDto, PriceRoundingModeDto, PriceTypeDto, ITextWordInvoice };
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
/** Type of the invoice */
|
|
2
|
+
export declare enum InvoiceType {
|
|
3
|
+
PartialInvoice = 326,
|
|
4
|
+
CommercialInvoice = 380,
|
|
5
|
+
CreditNote = 381,
|
|
6
|
+
CorrectedInvoice = 384,
|
|
7
|
+
SelfBilledInvoice = 389,
|
|
8
|
+
PartialConstructionInvoice = 875,
|
|
9
|
+
PartialFinalConstructionInvoice = 876,
|
|
10
|
+
FinalConstructionInvoice = 877
|
|
11
|
+
}
|
|
12
|
+
/** This class holds typical references used in an invoice */
|
|
13
|
+
export interface References {
|
|
14
|
+
/** An internal reference used by the buyer */
|
|
15
|
+
buyerReference?: string | undefined;
|
|
16
|
+
/** Reference to a project */
|
|
17
|
+
projectReference?: string | undefined;
|
|
18
|
+
/** Reference to a contract */
|
|
19
|
+
contractReference?: string | undefined;
|
|
20
|
+
/** Reference to a purchase order created by the buyer */
|
|
21
|
+
purchaseOrderReference?: string | undefined;
|
|
22
|
+
/** Reference to a sales order created by the seller */
|
|
23
|
+
salesOrderReference?: string | undefined;
|
|
24
|
+
/** Reference to a delivery note */
|
|
25
|
+
receivingAdviceReference?: string | undefined;
|
|
26
|
+
/** Reference to a dispatch advice */
|
|
27
|
+
dispatchAdviceReference?: string | undefined;
|
|
28
|
+
/** Reference to a tender or lot */
|
|
29
|
+
tenderOrLotReference?: string | undefined;
|
|
30
|
+
/** Reference to a custom item, e.g. a phone number, person,
|
|
31
|
+
contract or anything that would identify the invoice in the buyer's system */
|
|
32
|
+
invoicedObjectIdentifier?: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** References to previous invoices */
|
|
35
|
+
export interface PreviousInvoice {
|
|
36
|
+
/** The date of the previous invoice */
|
|
37
|
+
invoiceDate?: Date | undefined;
|
|
38
|
+
/** The number of the previous invoice */
|
|
39
|
+
invoiceNumber?: string | undefined;
|
|
40
|
+
}
|
|
41
|
+
/** Represents an organization, e.g. a buyer or a seller */
|
|
42
|
+
export interface Organization {
|
|
43
|
+
/** The name of the organization */
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
/** The VAT ID for the organization */
|
|
46
|
+
vatId?: string | undefined;
|
|
47
|
+
/** An email address for the organization */
|
|
48
|
+
email?: string | undefined;
|
|
49
|
+
/** The name of a contact person */
|
|
50
|
+
contactPersonName?: string | undefined;
|
|
51
|
+
/** The phone of a contact person */
|
|
52
|
+
contactPersonPhone?: string | undefined;
|
|
53
|
+
/** The email of a contact person */
|
|
54
|
+
contactPersonEmail?: string | undefined;
|
|
55
|
+
/** The address of the organization */
|
|
56
|
+
address?: string | undefined;
|
|
57
|
+
/** The city of the organization */
|
|
58
|
+
city?: string | undefined;
|
|
59
|
+
/** The zip code of the organization */
|
|
60
|
+
zipCode?: string | undefined;
|
|
61
|
+
/** The ISO 3166-1 2 letter country code */
|
|
62
|
+
countryCode?: string | undefined;
|
|
63
|
+
/** The state of the organization, e.g. a federal state in Germany */
|
|
64
|
+
state?: string | undefined;
|
|
65
|
+
}
|
|
66
|
+
/** Represents a payee, meaning someone that receives the payment */
|
|
67
|
+
export interface Payee {
|
|
68
|
+
/** The name of the payee */
|
|
69
|
+
name?: string | undefined;
|
|
70
|
+
/** The identifier of the payee */
|
|
71
|
+
identifier?: string | undefined;
|
|
72
|
+
/** A registered identifier for the payee, e.g. a VAT ID
|
|
73
|
+
or Tax ID */
|
|
74
|
+
legalRegistrationIdentifier?: string | undefined;
|
|
75
|
+
}
|
|
76
|
+
/** Represents a note / text in an invoice */
|
|
77
|
+
export interface InvoiceNote {
|
|
78
|
+
/** Short summary / heading */
|
|
79
|
+
shortText?: string | undefined;
|
|
80
|
+
/** Explanation of this note */
|
|
81
|
+
longText?: string | undefined;
|
|
82
|
+
}
|
|
83
|
+
/** Represents an invoice period with start and end dates */
|
|
84
|
+
export interface InvoicePeriod {
|
|
85
|
+
/** The start date */
|
|
86
|
+
start?: Date | undefined;
|
|
87
|
+
/** The end date */
|
|
88
|
+
end?: Date | undefined;
|
|
89
|
+
}
|
|
90
|
+
/** Totals for the invoice */
|
|
91
|
+
export interface InvoiceTotals {
|
|
92
|
+
/** Sum of all invoice items in net. */
|
|
93
|
+
totalNet?: number | undefined;
|
|
94
|
+
/** This is the sum of all allowances (e.g. deductions or withheld tax) in the invoice */
|
|
95
|
+
totalAllowances?: number | undefined;
|
|
96
|
+
/** This is the sum of all charges in the invoice, except VAT. For example, late
|
|
97
|
+
fees or surcharges. */
|
|
98
|
+
totalCharges?: number | undefined;
|
|
99
|
+
/** This is the total net value of the invoice after applied allowances and charges,
|
|
100
|
+
meaning the actual net sum to be paid. */
|
|
101
|
+
totalAfterDeductions?: number | undefined;
|
|
102
|
+
/** The total amount of VAT in the invoice. */
|
|
103
|
+
totalVatAmount?: number | undefined;
|
|
104
|
+
/** The total gross amount of the invoice, including all taxes and deductions. */
|
|
105
|
+
totalGross?: number | undefined;
|
|
106
|
+
/** The total amount that has already been paid for this invoice, e.g. used when
|
|
107
|
+
previous invoice sums are included here that have already been paid. */
|
|
108
|
+
alreadyPaidTotal?: number | undefined;
|
|
109
|
+
/** The sum that needs to be paid for this invoice. This is the total gross amount
|
|
110
|
+
minus the already paid amount. */
|
|
111
|
+
totalToBePaid?: number | undefined;
|
|
112
|
+
}
|
|
113
|
+
/** Instructions how payment for an invoice should be provided. */
|
|
114
|
+
export interface PaymentInstructions {
|
|
115
|
+
/** Additional text to describe the payment instructions. */
|
|
116
|
+
description?: string | undefined;
|
|
117
|
+
/** This should be a code according to UN/ECE 4461
|
|
118
|
+
to identify the type of payment. For example, code "58" means SEPA Credit Transfer,
|
|
119
|
+
and code "30" means non-SEPA Credit Transfer. */
|
|
120
|
+
paymentTypeCode?: string | undefined;
|
|
121
|
+
/** A list of payment means that can be used to pay the invoice. */
|
|
122
|
+
paymentMeans?: PaymentMeans[] | undefined;
|
|
123
|
+
}
|
|
124
|
+
/** Represents a payment means for an invoice */
|
|
125
|
+
export interface PaymentMeans {
|
|
126
|
+
/** This is typically the IBAN or account number */
|
|
127
|
+
accountIdentifier?: string | undefined;
|
|
128
|
+
/** The name for the account, typically the name of the owner for
|
|
129
|
+
a bank account. */
|
|
130
|
+
accountName?: string | undefined;
|
|
131
|
+
/** This can be the BIC */
|
|
132
|
+
serviceProviderIdentifier?: string | undefined;
|
|
133
|
+
}
|
|
134
|
+
/** Represents a document / attachment that is included with the invoice */
|
|
135
|
+
export interface SupportingDocument {
|
|
136
|
+
/** This is typically an id or a name */
|
|
137
|
+
documentReference?: string | undefined;
|
|
138
|
+
/** A description of the document */
|
|
139
|
+
description?: string | undefined;
|
|
140
|
+
/** A link to the document in case this is an external reference */
|
|
141
|
+
externalDocumentUrl?: string | undefined;
|
|
142
|
+
/** The document in base64 encoded form as binary data */
|
|
143
|
+
documentBase64?: string | undefined;
|
|
144
|
+
/** This should be present if DocumentBase64 is set. */
|
|
145
|
+
fileName?: string | undefined;
|
|
146
|
+
/** The type of the document */
|
|
147
|
+
documentMimeType?: AttachmentMimeType | undefined;
|
|
148
|
+
}
|
|
149
|
+
/** Describes a mimne type of a document */
|
|
150
|
+
export declare enum AttachmentMimeType {
|
|
151
|
+
Unknown = 0,
|
|
152
|
+
Pdf = 1,
|
|
153
|
+
Png = 2,
|
|
154
|
+
Jpeg = 3,
|
|
155
|
+
Csv = 4,
|
|
156
|
+
Excel = 5,
|
|
157
|
+
OpenOfficeSpreadsheet = 6
|
|
158
|
+
}
|
|
159
|
+
/** Describes the VAT breakdown for an invoice in a single VAT category */
|
|
160
|
+
export interface VatBreakdown {
|
|
161
|
+
/** The total net amount of this VAT category */
|
|
162
|
+
netTaxableAmount?: number | undefined;
|
|
163
|
+
/** The total VAT */
|
|
164
|
+
vatAmount?: number | undefined;
|
|
165
|
+
/** The category of the VAT */
|
|
166
|
+
vatCategory?: VatCategory | undefined;
|
|
167
|
+
/** The actual tax rate as a decimal value,
|
|
168
|
+
e.g. 19% would be 0.19 */
|
|
169
|
+
taxRate?: number | undefined;
|
|
170
|
+
/** If the VAT is exempt, there should be a description here.
|
|
171
|
+
For example, in reverse charge scenarios, this text
|
|
172
|
+
should contain a reference to "Reverse charge according to ...". */
|
|
173
|
+
vatExemtpionReasonText?: string | undefined;
|
|
174
|
+
/** A code from the VAT exemption reason code list(VATEX)“ */
|
|
175
|
+
vatExemtpionReasonCode?: string | undefined;
|
|
176
|
+
}
|
|
177
|
+
/** The category used in a VatBreakdown"/> */
|
|
178
|
+
export declare enum VatCategory {
|
|
179
|
+
Unknown = 0,
|
|
180
|
+
StandardRate = 1,
|
|
181
|
+
ZeroRatedGoods = 2,
|
|
182
|
+
ExemptFromTax = 3,
|
|
183
|
+
VatReverseCharge = 4,
|
|
184
|
+
VatExemptReverseCharge = 5,
|
|
185
|
+
FreeExportItem = 6,
|
|
186
|
+
ServicesOutsideScopeOfTaxation = 7,
|
|
187
|
+
CanaryIslandsGeneralIndirectTax = 8,
|
|
188
|
+
TaxInCeutaAndMelilla = 9
|
|
189
|
+
}
|
|
190
|
+
/** This describes an allowance in an invoice, which is a deduction from the total amount */
|
|
191
|
+
export interface InvoiceAllowance {
|
|
192
|
+
/** The net amount of the allowance */
|
|
193
|
+
netAmount?: number | undefined;
|
|
194
|
+
/** If this is a relative / percentage allowance, this should be set
|
|
195
|
+
and give the base amount that is being used for the calculation */
|
|
196
|
+
relativeAllowanceBaseAmount?: number | undefined;
|
|
197
|
+
/** If this is a relative / percentage allowance, this should be set
|
|
198
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
199
|
+
relativeAllowancePercentage?: number | undefined;
|
|
200
|
+
/** The VAT category for the allowance */
|
|
201
|
+
vatCategory?: VatCategory | undefined;
|
|
202
|
+
/** The actual tax rate as a decimal value,
|
|
203
|
+
meaning 19% would be 0.19 */
|
|
204
|
+
vatRate?: number | undefined;
|
|
205
|
+
/** A description of the allowance. */
|
|
206
|
+
reason?: string | undefined;
|
|
207
|
+
/** A reason code for the allowance according to UNTDID 5189. */
|
|
208
|
+
reasonCode?: string | undefined;
|
|
209
|
+
}
|
|
210
|
+
/** This describes an charge in an invoice, which is a surcharge to the total amount */
|
|
211
|
+
export interface InvoiceCharge {
|
|
212
|
+
/** The net amount of the charge */
|
|
213
|
+
netAmount?: number | undefined;
|
|
214
|
+
/** If this is a relative / percentage charge, this should be set
|
|
215
|
+
and give the base amount that is being used for the calculation */
|
|
216
|
+
relativeChargeBaseAmount?: number | undefined;
|
|
217
|
+
/** If this is a relative / percentage charge, this should be set
|
|
218
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
219
|
+
relativeChargePercentage?: number | undefined;
|
|
220
|
+
/** The VAT category for the charge */
|
|
221
|
+
vatCategory?: VatCategory | undefined;
|
|
222
|
+
/** The actual tax rate as a decimal value,
|
|
223
|
+
meaning 19% would be 0.19 */
|
|
224
|
+
vatRate?: number | undefined;
|
|
225
|
+
/** A description of the charge. */
|
|
226
|
+
reason?: string | undefined;
|
|
227
|
+
/** A reason code for the charge according to UNTDID 7161. */
|
|
228
|
+
reasonCode?: string | undefined;
|
|
229
|
+
}
|
|
230
|
+
/** Represents a single invoice line item */
|
|
231
|
+
export interface InvoiceLineItem {
|
|
232
|
+
/** An unique identifier for the line item */
|
|
233
|
+
identifier?: string | undefined;
|
|
234
|
+
/** An unstructured note to classify line items */
|
|
235
|
+
note?: string | undefined;
|
|
236
|
+
/** A seller-defined object identifier for this line item,
|
|
237
|
+
meaning an identifier for the actual line. This could be
|
|
238
|
+
a numbering sequence or a reference to a product. */
|
|
239
|
+
objectIdentifier?: string | undefined;
|
|
240
|
+
/** The actual invoiced quantity of the line item */
|
|
241
|
+
quantity?: number | undefined;
|
|
242
|
+
/** A code for the unit of the quantity. This should be a code as defined
|
|
243
|
+
in UN/ECE Recommendation No. 20 „Codes for Units of Measure Used in
|
|
244
|
+
International Trade“ und UN/ECE Recommendation No 21 „Codes for Passengers,
|
|
245
|
+
Types of Cargo, Packages and Packaging Materials(with Complementary Codes for Package Names) */
|
|
246
|
+
unitCode?: string | undefined;
|
|
247
|
+
/** The net amount for this line item */
|
|
248
|
+
netAmount?: number | undefined;
|
|
249
|
+
/** A reference to an item in the buyers purachase order */
|
|
250
|
+
purchaseOrderReference?: string | undefined;
|
|
251
|
+
/** Information about the invoice period for this line item. */
|
|
252
|
+
lineItemPeriod?: InvoicePeriod | undefined;
|
|
253
|
+
/** Allowances specific to this line item */
|
|
254
|
+
allowances?: LineItemAllowance[] | undefined;
|
|
255
|
+
/** charges specific to this line item */
|
|
256
|
+
charges?: LineItemCharge[] | undefined;
|
|
257
|
+
/** Price details for this line item. */
|
|
258
|
+
priceDetails?: LineItemPriceDetail | undefined;
|
|
259
|
+
/** VAT information for this line item */
|
|
260
|
+
vatInformation?: LineItemVatInformation[] | undefined;
|
|
261
|
+
/** Information about this line item */
|
|
262
|
+
itemInformation?: LineItemInformation | undefined;
|
|
263
|
+
/** Line items can be nested, in which case this property holds the sub items */
|
|
264
|
+
subItems?: InvoiceLineItem[] | undefined;
|
|
265
|
+
}
|
|
266
|
+
/** Allowance for a single line item */
|
|
267
|
+
export interface LineItemAllowance {
|
|
268
|
+
/** The net amount of the allowance */
|
|
269
|
+
netAmount?: number | undefined;
|
|
270
|
+
/** If this is a relative / percentage allowance, this should be set
|
|
271
|
+
and give the base amount that is being used for the calculation */
|
|
272
|
+
relativeAllowanceBaseAmount?: number | undefined;
|
|
273
|
+
/** If this is a relative / percentage allowance, this should be set
|
|
274
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
275
|
+
relativeAllowancePercentage?: number | undefined;
|
|
276
|
+
/** A description of the allowance. */
|
|
277
|
+
reason?: string | undefined;
|
|
278
|
+
/** A reason code for the allowance according to UNTDID 5189. */
|
|
279
|
+
reasonCode?: string | undefined;
|
|
280
|
+
}
|
|
281
|
+
/** Charge for a single line item */
|
|
282
|
+
export interface LineItemCharge {
|
|
283
|
+
/** The net amount of the charge */
|
|
284
|
+
netAmount?: number | undefined;
|
|
285
|
+
/** If this is a relative / percentage charge, this should be set
|
|
286
|
+
and give the base amount that is being used for the calculation */
|
|
287
|
+
relativeChargeBaseAmount?: number | undefined;
|
|
288
|
+
/** If this is a relative / percentage charge, this should be set
|
|
289
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
290
|
+
relativeChargePercentage?: number | undefined;
|
|
291
|
+
/** A description of the charge. */
|
|
292
|
+
reason?: string | undefined;
|
|
293
|
+
/** A reason code for the charge according to UNTDID 7161. */
|
|
294
|
+
reasonCode?: string | undefined;
|
|
295
|
+
}
|
|
296
|
+
/** Price details about a line item */
|
|
297
|
+
export interface LineItemPriceDetail {
|
|
298
|
+
/** The net price of this line item */
|
|
299
|
+
netPrice?: number | undefined;
|
|
300
|
+
/** A discount for this line item, given in decimal representation,
|
|
301
|
+
so 19% would be 0.19 */
|
|
302
|
+
discount?: number | undefined;
|
|
303
|
+
/** The gross price of this line item, meaning the price without taxes
|
|
304
|
+
that will be invoiced */
|
|
305
|
+
grossPrice?: number | undefined;
|
|
306
|
+
/** The quantity for which this price is valid */
|
|
307
|
+
baseQuantity?: number | undefined;
|
|
308
|
+
/** A code representing the unit for the base quantity */
|
|
309
|
+
baseQuantityUnitCode?: string | undefined;
|
|
310
|
+
}
|
|
311
|
+
/** VAT information for a single line item */
|
|
312
|
+
export interface LineItemVatInformation {
|
|
313
|
+
/** The VAT category for the charge */
|
|
314
|
+
vatCategory?: VatCategory | undefined;
|
|
315
|
+
/** The actual tax rate as a decimal value,
|
|
316
|
+
meaning 19% would be 0.19 */
|
|
317
|
+
vatRate?: number | undefined;
|
|
318
|
+
}
|
|
319
|
+
/** Information about a single line item */
|
|
320
|
+
export interface LineItemInformation {
|
|
321
|
+
/** A name for the line item */
|
|
322
|
+
name?: string | undefined;
|
|
323
|
+
/** A description for the line item */
|
|
324
|
+
description?: string | undefined;
|
|
325
|
+
/** An identifier assigned by the seller, e.g. an internal article number */
|
|
326
|
+
sellerIdentifier?: string | undefined;
|
|
327
|
+
/** An identifier assigned by the buyer, e.g. an internal article number */
|
|
328
|
+
buyerIdentifier?: string | undefined;
|
|
329
|
+
/** A standard identifier for the line item, e.g. an EAN or a GTIN */
|
|
330
|
+
standardIdentifier?: string | undefined;
|
|
331
|
+
/** A list of classification identifiers for the line item */
|
|
332
|
+
classificationIdentifiers?: string[] | undefined;
|
|
333
|
+
/** The origin country code according to ISO 3166-1 in 2 letter format */
|
|
334
|
+
countryOfOrigin?: string | undefined;
|
|
335
|
+
/** Optional additional attributes for this line item */
|
|
336
|
+
attributes?: LineItemAttribute[] | undefined;
|
|
337
|
+
}
|
|
338
|
+
/** A key-value pair for additional information */
|
|
339
|
+
export interface LineItemAttribute {
|
|
340
|
+
/** The key / name of the attribute */
|
|
341
|
+
name?: string | undefined;
|
|
342
|
+
/** The value of the attribute */
|
|
343
|
+
value?: string | undefined;
|
|
344
|
+
}
|
|
345
|
+
/** This class represents an invoice */
|
|
346
|
+
export interface Invoice {
|
|
347
|
+
/** The number of the invoice */
|
|
348
|
+
invoiceNumber?: string | undefined;
|
|
349
|
+
/** The date of the invoice */
|
|
350
|
+
invoiceDate?: Date | undefined;
|
|
351
|
+
/** The type of the invoice */
|
|
352
|
+
invoiceType?: InvoiceType | undefined;
|
|
353
|
+
/** The three letter ISO currency code */
|
|
354
|
+
currencyCode?: string | undefined;
|
|
355
|
+
/** Until when the payment is due */
|
|
356
|
+
paymentDueDate?: Date | undefined;
|
|
357
|
+
/** An object holding reference used in this invoice */
|
|
358
|
+
references?: References | undefined;
|
|
359
|
+
/** A text description of payment terms, e.g. cash discounts or payment conditions */
|
|
360
|
+
paymentTerms?: string | undefined;
|
|
361
|
+
/** In case of partial of final invoices, it's possible to reference the previous invoice numbers */
|
|
362
|
+
previousInvoices?: PreviousInvoice[] | undefined;
|
|
363
|
+
/** Information about the buyer */
|
|
364
|
+
buyer?: Organization | undefined;
|
|
365
|
+
/** Information about the seller */
|
|
366
|
+
seller?: Organization | undefined;
|
|
367
|
+
/** A payee is someone who receives the payment that is different from the seller */
|
|
368
|
+
payee?: Payee | undefined;
|
|
369
|
+
/** If present, this is an unstructured text that can be used to give additional information
|
|
370
|
+
about the invoice. */
|
|
371
|
+
invoiceNotes?: InvoiceNote[] | undefined;
|
|
372
|
+
/** The period during which the services or goods were delivered */
|
|
373
|
+
invoicePeriod?: InvoicePeriod | undefined;
|
|
374
|
+
/** Totals for the invoice */
|
|
375
|
+
totals?: InvoiceTotals | undefined;
|
|
376
|
+
/** Instructions how to perform the payment */
|
|
377
|
+
paymentInstructions?: PaymentInstructions | undefined;
|
|
378
|
+
/** Attached documents to the invoice */
|
|
379
|
+
documents?: SupportingDocument[] | undefined;
|
|
380
|
+
/** This is used to list VAT by category, e.g. for invoices
|
|
381
|
+
where parts are in different VAT categories */
|
|
382
|
+
vatBreakdown?: VatBreakdown[] | undefined;
|
|
383
|
+
/** Allowances / deductions on the invoice */
|
|
384
|
+
allowances?: InvoiceAllowance[] | undefined;
|
|
385
|
+
/** Charges / additional costs on the invoice */
|
|
386
|
+
charges?: InvoiceCharge[] | undefined;
|
|
387
|
+
/** Single line items in the invoice */
|
|
388
|
+
lineItems?: InvoiceLineItem[] | undefined;
|
|
389
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface ITextWordInvoice {
|
|
2
|
+
invoiceTitle?: string;
|
|
3
|
+
vatId?: string;
|
|
4
|
+
detailsInvoiceNumber?: string;
|
|
5
|
+
detailsInvoiceDate?: string;
|
|
6
|
+
detailsPaymentDueDate?: string;
|
|
7
|
+
detailsCurrencyCode?: string;
|
|
8
|
+
detailsPaymentTerms?: string;
|
|
9
|
+
referencesTopic?: string;
|
|
10
|
+
referencesBuyerReference?: string;
|
|
11
|
+
referencesProjectReference?: string;
|
|
12
|
+
referencesContractReference?: string;
|
|
13
|
+
referencesPurchaseOrderReference?: string;
|
|
14
|
+
referencesSalesOrderReference?: string;
|
|
15
|
+
referencesReceivingAdviceReference?: string;
|
|
16
|
+
referencesDispatchAdviceReference?: string;
|
|
17
|
+
referencesTenderOrLotReference?: string;
|
|
18
|
+
referencesInvoicedObjectIdentifier?: string;
|
|
19
|
+
tableHeadDescription?: string;
|
|
20
|
+
tableHeadQuantity?: string;
|
|
21
|
+
tableHeadUnit?: string;
|
|
22
|
+
tableHeadNetPrice?: string;
|
|
23
|
+
tableHeadNetAmount?: string;
|
|
24
|
+
totalsTopic?: string;
|
|
25
|
+
totalsTotalNet?: string;
|
|
26
|
+
totalsTotalAllowances?: string;
|
|
27
|
+
totalsTotalCharges?: string;
|
|
28
|
+
totalsTotalAfterDeductions?: string;
|
|
29
|
+
totalsTotalVatAmount?: string;
|
|
30
|
+
totalsTotalGross?: string;
|
|
31
|
+
totalsAlreadyPaidTotal?: string;
|
|
32
|
+
totalsTotalToBePaid?: string;
|
|
33
|
+
instructionsTopic?: string;
|
|
34
|
+
instructionsAccountIdentifier?: string;
|
|
35
|
+
instructionsAccountName?: string;
|
|
36
|
+
instructionsServiceProviderIdentifier?: string;
|
|
37
|
+
notesTopic?: string;
|
|
38
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export * from './lib/ava-tree/tree/model';
|
|
|
2
2
|
export * from './lib/angular-ava.module';
|
|
3
3
|
export * from './lib/version';
|
|
4
4
|
export * from './lib/ava-tree/tree/components/ava-tree/ava-tree.component';
|
|
5
|
+
export * from './lib/ava-tree/tree/constants';
|
|
6
|
+
export { InvoiceDisplayComponent } from './lib/ava-tree/invoice/invoice-display/invoice-display.component';
|