@dangl/angular-ava 1.5.1 → 1.5.2-beta0048
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/README.md +3 -0
- package/fesm2022/dangl-angular-ava.mjs +204 -431
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/package.json +13 -11
- package/types/dangl-angular-ava.d.ts +1752 -0
- package/index.d.ts +0 -2923
|
@@ -0,0 +1,1752 @@
|
|
|
1
|
+
import * as _dangl_ava_model from '@dangl/ava-model';
|
|
2
|
+
import { IElementDto, ProjectDto } from '@dangl/ava-model';
|
|
3
|
+
export { ExchangePhaseDto, ExecutionDescriptionDto, IElementDto, ItemNumberDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, NoteTextDto, OriginDto, PositionDto, PriceRoundingModeDto, PriceTypeDto, ProjectDto, ServiceSpecificationDto, ServiceSpecificationGroupDto } from '@dangl/ava-model';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { OnInit, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
|
|
8
|
+
/** This class represents an invoice */
|
|
9
|
+
interface Invoice {
|
|
10
|
+
/** The number of the invoice */
|
|
11
|
+
invoiceNumber?: string | undefined;
|
|
12
|
+
/** The date of the invoice */
|
|
13
|
+
invoiceDate?: Date | undefined;
|
|
14
|
+
/** The type of the invoice */
|
|
15
|
+
invoiceType?: InvoiceType | undefined;
|
|
16
|
+
/** The three letter ISO currency code */
|
|
17
|
+
currencyCode?: string | undefined;
|
|
18
|
+
/** Until when the payment is due */
|
|
19
|
+
paymentDueDate?: Date | undefined;
|
|
20
|
+
/** An object holding reference used in this invoice */
|
|
21
|
+
references?: References | undefined;
|
|
22
|
+
/** A text description of payment terms, e.g. cash discounts or payment conditions */
|
|
23
|
+
paymentTerms?: string | undefined;
|
|
24
|
+
/** In case of partial or final invoices, it's possible to reference the previous invoice numbers */
|
|
25
|
+
previousInvoices?: PreviousInvoice[] | undefined;
|
|
26
|
+
/** Information about the buyer */
|
|
27
|
+
buyer?: Organization | undefined;
|
|
28
|
+
/** Information about the seller */
|
|
29
|
+
seller?: Organization | undefined;
|
|
30
|
+
/** Information about the sellers tax representative */
|
|
31
|
+
sellerTaxRepresentative?: Organization | undefined;
|
|
32
|
+
/** A payee is someone who receives the payment that is different from the seller */
|
|
33
|
+
payee?: Payee | undefined;
|
|
34
|
+
/** If present, this is an unstructured text that can be used to give additional information
|
|
35
|
+
about the invoice. Field BG-1 */
|
|
36
|
+
invoiceNotes?: InvoiceNote[] | undefined;
|
|
37
|
+
/** The period during which the services or goods were delivered */
|
|
38
|
+
invoicePeriod?: InvoicePeriod | undefined;
|
|
39
|
+
/** Information about the delivery
|
|
40
|
+
BG-13 in XRechnung */
|
|
41
|
+
deliveryInformation?: DeliveryInformation | undefined;
|
|
42
|
+
/** Totals for the invoice */
|
|
43
|
+
totals?: InvoiceTotals | undefined;
|
|
44
|
+
/** Instructions how to perform the payment */
|
|
45
|
+
paymentInstructions?: PaymentInstructions | undefined;
|
|
46
|
+
/** Attached documents to the invoice */
|
|
47
|
+
documents?: SupportingDocument[] | undefined;
|
|
48
|
+
/** This is used to list VAT by category, e.g. for invoices where parts are in different VAT categories */
|
|
49
|
+
vatBreakdown?: VatBreakdown[] | undefined;
|
|
50
|
+
/** Allowances / deductions on the invoice */
|
|
51
|
+
allowances?: InvoiceAllowance[] | undefined;
|
|
52
|
+
/** Charges / additional costs on the invoice */
|
|
53
|
+
charges?: InvoiceCharge[] | undefined;
|
|
54
|
+
/** Single line items in the invoice */
|
|
55
|
+
lineItems?: InvoiceLineItem[] | undefined;
|
|
56
|
+
/** The source type from which the invoice was created */
|
|
57
|
+
sourceType?: SourceType | undefined;
|
|
58
|
+
}
|
|
59
|
+
/** Type of the invoice */
|
|
60
|
+
declare enum InvoiceType {
|
|
61
|
+
PartialInvoice = 326,
|
|
62
|
+
CommercialInvoice = 380,
|
|
63
|
+
CreditNote = 381,
|
|
64
|
+
CorrectedInvoice = 384,
|
|
65
|
+
SelfBilledInvoice = 389,
|
|
66
|
+
PartialConstructionInvoice = 875,
|
|
67
|
+
PartialFinalConstructionInvoice = 876,
|
|
68
|
+
FinalConstructionInvoice = 877
|
|
69
|
+
}
|
|
70
|
+
/** This class holds typical references used in an invoice */
|
|
71
|
+
interface References {
|
|
72
|
+
/** An internal reference used by the buyer, this can also be used as the
|
|
73
|
+
'Leitweg-ID' in Germany
|
|
74
|
+
BT-10 in XRechnung. */
|
|
75
|
+
buyerReference?: string | undefined;
|
|
76
|
+
/** Reference to a project
|
|
77
|
+
BT-11 in XRechnung. */
|
|
78
|
+
projectReference?: string | undefined;
|
|
79
|
+
/** Reference to a contract
|
|
80
|
+
BT-12 in XRechnung. */
|
|
81
|
+
contractReference?: string | undefined;
|
|
82
|
+
/** Reference to a purchase order created by the buyer
|
|
83
|
+
BT-13 in XRechnung. */
|
|
84
|
+
purchaseOrderReference?: string | undefined;
|
|
85
|
+
/** Reference to a sales order created by the seller
|
|
86
|
+
BT-14 in XRechnung. */
|
|
87
|
+
salesOrderReference?: string | undefined;
|
|
88
|
+
/** Reference to a delivery note
|
|
89
|
+
BT-15 in XRechnung. */
|
|
90
|
+
receivingAdviceReference?: string | undefined;
|
|
91
|
+
/** Reference to a dispatch advice
|
|
92
|
+
BT-16 in XRechnung. */
|
|
93
|
+
dispatchAdviceReference?: string | undefined;
|
|
94
|
+
/** Reference to a tender or lot
|
|
95
|
+
BT-17 in XRechnung. */
|
|
96
|
+
tenderOrLotReference?: string | undefined;
|
|
97
|
+
/** Reference to a custom item, e.g. a phone number, person,
|
|
98
|
+
contract or anything that would identify the invoice in the buyer's system
|
|
99
|
+
BT-18 in XRechnung. */
|
|
100
|
+
invoicedObjectIdentifier?: string | undefined;
|
|
101
|
+
/** This is a reference for accounting, like a cost center or similar. In German,
|
|
102
|
+
this would be a "Kostenstelle".
|
|
103
|
+
BT-19 in XRechnung. */
|
|
104
|
+
accountingReference?: string | undefined;
|
|
105
|
+
}
|
|
106
|
+
/** References to previous invoices */
|
|
107
|
+
interface PreviousInvoice {
|
|
108
|
+
/** The date of the previous invoice */
|
|
109
|
+
invoiceDate?: Date | undefined;
|
|
110
|
+
/** The number of the previous invoice */
|
|
111
|
+
invoiceNumber?: string | undefined;
|
|
112
|
+
}
|
|
113
|
+
/** Represents an organization, e.g. a buyer or a seller */
|
|
114
|
+
interface Organization {
|
|
115
|
+
/** The identifier of the organization */
|
|
116
|
+
identifier?: string | undefined;
|
|
117
|
+
/** The name of the organization */
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
/** A registration number, e.g. a Handelsregisternummer in Germany */
|
|
120
|
+
registrationNumber?: string | undefined;
|
|
121
|
+
/** The VAT ID for the organization */
|
|
122
|
+
vatId?: string | undefined;
|
|
123
|
+
/** The tax ID for the organization */
|
|
124
|
+
taxId?: string | undefined;
|
|
125
|
+
/** An email address for the organization */
|
|
126
|
+
email?: string | undefined;
|
|
127
|
+
/** The name of a contact person */
|
|
128
|
+
contactPersonName?: string | undefined;
|
|
129
|
+
/** The phone of a contact person */
|
|
130
|
+
contactPersonPhone?: string | undefined;
|
|
131
|
+
/** The email of a contact person */
|
|
132
|
+
contactPersonEmail?: string | undefined;
|
|
133
|
+
/** The address of the organization */
|
|
134
|
+
address?: string | undefined;
|
|
135
|
+
/** The city of the organization */
|
|
136
|
+
city?: string | undefined;
|
|
137
|
+
/** The zip code of the organization */
|
|
138
|
+
zipCode?: string | undefined;
|
|
139
|
+
/** The ISO 3166-1 2 letter country code */
|
|
140
|
+
countryCode?: string | undefined;
|
|
141
|
+
/** The state of the organization, e.g. a federal state in Germany */
|
|
142
|
+
state?: string | undefined;
|
|
143
|
+
/** This provides some additional legal information.
|
|
144
|
+
BT-33 in XRechnung, and this is only used for the seller. */
|
|
145
|
+
additionalLegalInformation?: string | undefined;
|
|
146
|
+
}
|
|
147
|
+
/** Represents a payee, meaning someone that receives the payment */
|
|
148
|
+
interface Payee {
|
|
149
|
+
/** The name of the payee */
|
|
150
|
+
name?: string | undefined;
|
|
151
|
+
/** The identifier of the payee */
|
|
152
|
+
identifier?: string | undefined;
|
|
153
|
+
/** A registered identifier for the payee, e.g. a VAT ID
|
|
154
|
+
or Tax ID */
|
|
155
|
+
legalRegistrationIdentifier?: string | undefined;
|
|
156
|
+
}
|
|
157
|
+
/** Represents a note / text in an invoice */
|
|
158
|
+
interface InvoiceNote {
|
|
159
|
+
/** Short summary / heading. Should be a text code from this list:
|
|
160
|
+
https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred4451.htm
|
|
161
|
+
Field BT-21 */
|
|
162
|
+
shortText?: string | undefined;
|
|
163
|
+
/** Short summary / heading type. This will be automatically parsed from ShortText
|
|
164
|
+
and is a read-only property. */
|
|
165
|
+
shortTextType?: ShortTextType | undefined;
|
|
166
|
+
/** Explanation of this note
|
|
167
|
+
Field BT-22 */
|
|
168
|
+
longText?: string | undefined;
|
|
169
|
+
}
|
|
170
|
+
/** Type qualifying the subject of the text. */
|
|
171
|
+
declare enum ShortTextType {
|
|
172
|
+
GoodsItemDescription = 0,
|
|
173
|
+
PaymentTerm = 1,
|
|
174
|
+
DangerousGoodsAdditionalInformation = 2,
|
|
175
|
+
DangerousGoodsTechnicalName = 3,
|
|
176
|
+
AcknowledgementDescription = 4,
|
|
177
|
+
RateAdditionalInformation = 5,
|
|
178
|
+
PartyInstructions = 6,
|
|
179
|
+
GeneralInformation = 7,
|
|
180
|
+
AdditionalConditionsOfSalePurchase = 8,
|
|
181
|
+
PriceConditions = 9,
|
|
182
|
+
GoodsDimensionsInCharacters = 10,
|
|
183
|
+
EquipmentReUsageRestrictions = 11,
|
|
184
|
+
HandlingRestriction = 12,
|
|
185
|
+
ErrorDescriptionFreeText = 13,
|
|
186
|
+
ResponseFreeText = 14,
|
|
187
|
+
PackageContentsDescription = 15,
|
|
188
|
+
TermsOfDelivery = 16,
|
|
189
|
+
BillOfLadingRemarks = 17,
|
|
190
|
+
ModeOfSettlementInformation = 18,
|
|
191
|
+
ConsignmentInvoiceInformation = 19,
|
|
192
|
+
ClearanceInvoiceInformation = 20,
|
|
193
|
+
LetterOfCreditInformation = 21,
|
|
194
|
+
LicenseInformation = 22,
|
|
195
|
+
CertificationStatements = 23,
|
|
196
|
+
AdditionalExportInformation = 24,
|
|
197
|
+
TariffStatements = 25,
|
|
198
|
+
MedicalHistory = 26,
|
|
199
|
+
ConditionsOfSaleOrPurchase = 27,
|
|
200
|
+
ContractDocumentType = 28,
|
|
201
|
+
AdditionalTermsAndOrConditionsDocumentaryCredit = 29,
|
|
202
|
+
InstructionsOrInformationAboutStandbyDocumentary = 30,
|
|
203
|
+
InstructionsOrInformationAboutPartialShipments = 31,
|
|
204
|
+
InstructionsOrInformationAboutTranshipments = 32,
|
|
205
|
+
AdditionalHandlingInstructionsDocumentaryCredit = 33,
|
|
206
|
+
DomesticRoutingInformation = 34,
|
|
207
|
+
ChargeableCategoryOfEquipment = 35,
|
|
208
|
+
GovernmentInformation = 36,
|
|
209
|
+
OnwardRoutingInformation = 37,
|
|
210
|
+
AccountingInformation = 38,
|
|
211
|
+
DiscrepancyInformation = 39,
|
|
212
|
+
ConfirmationInstructions = 40,
|
|
213
|
+
MethodOfIssuance = 41,
|
|
214
|
+
DocumentsDeliveryInstructions = 42,
|
|
215
|
+
AdditionalConditions = 43,
|
|
216
|
+
InformationInstructionsAboutAdditionalAmountsCovered = 44,
|
|
217
|
+
DeferredPaymentTermedAdditional = 45,
|
|
218
|
+
AcceptanceTermsAdditional = 46,
|
|
219
|
+
NegotiationTermsAdditional = 47,
|
|
220
|
+
DocumentNameAndDocumentaryRequirements = 48,
|
|
221
|
+
InstructionsInformationAboutRevolvingDocumentaryCredit = 49,
|
|
222
|
+
DocumentaryRequirements = 50,
|
|
223
|
+
AdditionalInformation = 51,
|
|
224
|
+
FactorAssignmentClause = 52,
|
|
225
|
+
Reason = 53,
|
|
226
|
+
Dispute = 54,
|
|
227
|
+
AdditionalAttributeInformation = 55,
|
|
228
|
+
AbsenceDeclaration = 56,
|
|
229
|
+
AggregationStatement = 57,
|
|
230
|
+
CompilationStatement = 58,
|
|
231
|
+
DefinitionalException = 59,
|
|
232
|
+
PrivacyStatement = 60,
|
|
233
|
+
QualityStatement = 61,
|
|
234
|
+
StatisticalDescription = 62,
|
|
235
|
+
StatisticalDefinition = 63,
|
|
236
|
+
StatisticalName = 64,
|
|
237
|
+
StatisticalTitle = 65,
|
|
238
|
+
OffDimensionInformation = 66,
|
|
239
|
+
UnexpectedStopsInformation = 67,
|
|
240
|
+
Principles = 68,
|
|
241
|
+
TermsAndDefinition = 69,
|
|
242
|
+
SegmentName = 70,
|
|
243
|
+
SimpleDataElementName = 71,
|
|
244
|
+
Scope = 72,
|
|
245
|
+
MessageTypeName = 73,
|
|
246
|
+
Introduction = 74,
|
|
247
|
+
Glossary = 75,
|
|
248
|
+
FunctionalDefinition = 76,
|
|
249
|
+
Examples = 77,
|
|
250
|
+
CoverPage = 78,
|
|
251
|
+
DependencySyntaxNotes = 79,
|
|
252
|
+
CodeValueName = 80,
|
|
253
|
+
CodeListName = 81,
|
|
254
|
+
ClarificationOfUsage = 82,
|
|
255
|
+
CompositeDataElementName = 83,
|
|
256
|
+
FieldOfApplication = 84,
|
|
257
|
+
TypeOfAssetsAndLiabilities = 85,
|
|
258
|
+
PromotionInformation = 86,
|
|
259
|
+
MeterCondition = 87,
|
|
260
|
+
MeterReadingInformation = 88,
|
|
261
|
+
TypeOfTransactionReason = 89,
|
|
262
|
+
TypeOfSurveyQuestion = 90,
|
|
263
|
+
CarriersAgentCounterInformation = 91,
|
|
264
|
+
DescriptionOfWorkItemOnEquipment = 92,
|
|
265
|
+
MessageDefinition = 93,
|
|
266
|
+
BookedItemInformation = 94,
|
|
267
|
+
SourceOfDocument = 95,
|
|
268
|
+
Note = 96,
|
|
269
|
+
FixedPartOfSegmentClarificationText = 97,
|
|
270
|
+
CharacteristicsOfGoods = 98,
|
|
271
|
+
AdditionalDischargeInstructions = 99,
|
|
272
|
+
ContainerStrippingInstructions = 100,
|
|
273
|
+
CscContainerSafetyConventionPlateInformation = 101,
|
|
274
|
+
CargoRemarks = 102,
|
|
275
|
+
TemperatureControlInstructions = 103,
|
|
276
|
+
TextRefersToExpectedData = 104,
|
|
277
|
+
TextRefersToReceivedData = 105,
|
|
278
|
+
SectionClarificationText = 106,
|
|
279
|
+
InformationToTheBeneficiary = 107,
|
|
280
|
+
InformationToTheApplicant = 108,
|
|
281
|
+
InstructionsToTheBeneficiary = 109,
|
|
282
|
+
InstructionsToTheApplicant = 110,
|
|
283
|
+
ControlledAtmosphere = 111,
|
|
284
|
+
TakeOffAnnotation = 112,
|
|
285
|
+
PriceVariationNarrative = 113,
|
|
286
|
+
DocumentaryCreditAmendmentInstructions = 114,
|
|
287
|
+
StandardMethodNarrative = 115,
|
|
288
|
+
ProjectNarrative = 116,
|
|
289
|
+
RadioactiveGoodsAdditionalInformation = 117,
|
|
290
|
+
BankToBankInformation = 118,
|
|
291
|
+
ReimbursementInstructions = 119,
|
|
292
|
+
ReasonForAmendingAMessage = 120,
|
|
293
|
+
InstructionsToThePayingAndOrAcceptingAndOr = 121,
|
|
294
|
+
InterestInstructions = 122,
|
|
295
|
+
AgentCommission = 123,
|
|
296
|
+
RemittingBankInstructions = 124,
|
|
297
|
+
InstructionsToTheCollectingBank = 125,
|
|
298
|
+
CollectionAmountInstructions = 126,
|
|
299
|
+
InternalAuditingInformation = 127,
|
|
300
|
+
Constraint = 128,
|
|
301
|
+
Comment = 129,
|
|
302
|
+
SemanticNote = 130,
|
|
303
|
+
HelpText = 131,
|
|
304
|
+
Legend = 132,
|
|
305
|
+
BatchCodeStructure = 133,
|
|
306
|
+
ProductApplication = 134,
|
|
307
|
+
CustomerComplaint = 135,
|
|
308
|
+
ProbableCauseOfFault = 136,
|
|
309
|
+
DefectDescription = 137,
|
|
310
|
+
RepairDescription = 138,
|
|
311
|
+
ReviewComments = 139,
|
|
312
|
+
Title = 140,
|
|
313
|
+
DescriptionOfAmount = 141,
|
|
314
|
+
Responsibilities = 142,
|
|
315
|
+
Supplier = 143,
|
|
316
|
+
PurchaseRegion = 144,
|
|
317
|
+
Affiliation = 145,
|
|
318
|
+
Borrower = 146,
|
|
319
|
+
LineOfBusiness = 147,
|
|
320
|
+
FinancialInstitution = 148,
|
|
321
|
+
BusinessFounder = 149,
|
|
322
|
+
BusinessHistory = 150,
|
|
323
|
+
BankingArrangements = 151,
|
|
324
|
+
BusinessOrigin = 152,
|
|
325
|
+
BrandNamesDescription = 153,
|
|
326
|
+
BusinessFinancingDetails = 154,
|
|
327
|
+
Competition = 155,
|
|
328
|
+
ConstructionProcessDetails = 156,
|
|
329
|
+
ConstructionSpecialty = 157,
|
|
330
|
+
ContractInformation = 158,
|
|
331
|
+
CorporateFiling = 159,
|
|
332
|
+
CustomerInformation = 160,
|
|
333
|
+
CopyrightNotice = 161,
|
|
334
|
+
ContingentDebt = 162,
|
|
335
|
+
ConvictionDetails = 163,
|
|
336
|
+
Equipment = 164,
|
|
337
|
+
WorkforceDescription = 165,
|
|
338
|
+
Exemption = 166,
|
|
339
|
+
FuturePlans = 167,
|
|
340
|
+
IntervieweeConversationInformation = 168,
|
|
341
|
+
IntangibleAsset = 169,
|
|
342
|
+
Inventory = 170,
|
|
343
|
+
Investment = 171,
|
|
344
|
+
IntercompanyRelationsInformation = 172,
|
|
345
|
+
JointVenture = 173,
|
|
346
|
+
Loan = 174,
|
|
347
|
+
LongTermDebt = 175,
|
|
348
|
+
Location = 176,
|
|
349
|
+
CurrentLegalStructure = 177,
|
|
350
|
+
MaritalContract = 178,
|
|
351
|
+
MarketingActivities = 179,
|
|
352
|
+
Merger = 180,
|
|
353
|
+
MarketableSecurities = 181,
|
|
354
|
+
BusinessDebt = 182,
|
|
355
|
+
OriginalLegalStructure = 183,
|
|
356
|
+
EmployeeSharingArrangements = 184,
|
|
357
|
+
OrganizationDetails = 185,
|
|
358
|
+
PublicRecordDetails = 186,
|
|
359
|
+
PriceRange = 187,
|
|
360
|
+
Qualifications = 188,
|
|
361
|
+
RegisteredActivity = 189,
|
|
362
|
+
CriminalSentence = 190,
|
|
363
|
+
SalesMethod = 191,
|
|
364
|
+
EducationalInstitutionInformation = 192,
|
|
365
|
+
StatusDetails = 193,
|
|
366
|
+
Sales = 194,
|
|
367
|
+
SpouseInformation = 195,
|
|
368
|
+
EducationalDegreeInformation = 196,
|
|
369
|
+
ShareholdingInformation = 197,
|
|
370
|
+
SalesTerritory = 198,
|
|
371
|
+
AccountantsComments = 199,
|
|
372
|
+
ExemptionLawLocation = 200,
|
|
373
|
+
ShareClassifications = 201,
|
|
374
|
+
Forecast = 202,
|
|
375
|
+
EventLocation = 203,
|
|
376
|
+
FacilityOccupancy = 204,
|
|
377
|
+
ImportAndExportDetails = 205,
|
|
378
|
+
AdditionalFacilityInformation = 206,
|
|
379
|
+
InventoryValue = 207,
|
|
380
|
+
Education = 208,
|
|
381
|
+
Event = 209,
|
|
382
|
+
Agent = 210,
|
|
383
|
+
DomesticallyAgreedFinancialStatementDetails = 211,
|
|
384
|
+
OtherCurrentAssetDescription = 212,
|
|
385
|
+
OtherCurrentLiabilityDescription = 213,
|
|
386
|
+
FormerBusinessActivity = 214,
|
|
387
|
+
TradeNameUse = 215,
|
|
388
|
+
SigningAuthority = 216,
|
|
389
|
+
Guarantee = 217,
|
|
390
|
+
HoldingCompanyOperation = 218,
|
|
391
|
+
ConsignmentRouting = 219,
|
|
392
|
+
LetterOfProtest = 220,
|
|
393
|
+
Question = 221,
|
|
394
|
+
PartyInformation = 222,
|
|
395
|
+
AreaBoundariesDescription = 223,
|
|
396
|
+
AdvertisementInformation = 224,
|
|
397
|
+
FinancialStatementDetails = 225,
|
|
398
|
+
AccessInstructions = 226,
|
|
399
|
+
Liquidity = 227,
|
|
400
|
+
CreditLine = 228,
|
|
401
|
+
WarrantyTerms = 229,
|
|
402
|
+
DivisionDescription = 230,
|
|
403
|
+
ReportingInstruction = 231,
|
|
404
|
+
ExaminationResult = 232,
|
|
405
|
+
LaboratoryResult = 233,
|
|
406
|
+
AllowanceChargeInformation = 234,
|
|
407
|
+
XRayResult = 235,
|
|
408
|
+
PathologyResult = 236,
|
|
409
|
+
InterventionDescription = 237,
|
|
410
|
+
SummaryOfAdmittance = 238,
|
|
411
|
+
MedicalTreatmentCourseDetail = 239,
|
|
412
|
+
Prognosis = 240,
|
|
413
|
+
InstructionToPatient = 241,
|
|
414
|
+
InstructionToPhysician = 242,
|
|
415
|
+
AllDocuments = 243,
|
|
416
|
+
MedicineTreatment = 244,
|
|
417
|
+
MedicineDosageAndAdministration = 245,
|
|
418
|
+
AvailabilityOfPatient = 246,
|
|
419
|
+
ReasonForServiceRequest = 247,
|
|
420
|
+
PurposeOfService = 248,
|
|
421
|
+
ArrivalConditions = 249,
|
|
422
|
+
ServiceRequestersComment = 250,
|
|
423
|
+
Authentication = 251,
|
|
424
|
+
RequestedLocationDescription = 252,
|
|
425
|
+
MedicineAdministrationCondition = 253,
|
|
426
|
+
PatientInformation = 254,
|
|
427
|
+
PrecautionaryMeasure = 255,
|
|
428
|
+
ServiceCharacteristic = 256,
|
|
429
|
+
PlannedEventComment = 257,
|
|
430
|
+
ExpectedDelayComment = 258,
|
|
431
|
+
TransportRequirementsComment = 259,
|
|
432
|
+
TemporaryApprovalCondition = 260,
|
|
433
|
+
CustomsValuationInformation = 261,
|
|
434
|
+
ValueAddedTaxVatMarginScheme = 262,
|
|
435
|
+
PassengerBaggageInformation = 263,
|
|
436
|
+
AdditionalProductInformationAddress = 264,
|
|
437
|
+
InformationToBePrintedOnDespatchAdvice = 265,
|
|
438
|
+
MissingGoodsRemarks = 266,
|
|
439
|
+
NonAcceptanceInformation = 267,
|
|
440
|
+
ReturnsInformation = 268,
|
|
441
|
+
SubLineItemInformation = 269,
|
|
442
|
+
TestInformation = 270,
|
|
443
|
+
ExternalLink = 271,
|
|
444
|
+
VatExemptionReason = 272,
|
|
445
|
+
TransportContractDocumentClause = 273,
|
|
446
|
+
InstructionToPrepareThePatient = 274,
|
|
447
|
+
MedicineTreatmentComment = 275,
|
|
448
|
+
ExaminationResultComment = 276,
|
|
449
|
+
ServiceRequestComment = 277,
|
|
450
|
+
PrescriptionReason = 278,
|
|
451
|
+
PrescriptionComment = 279,
|
|
452
|
+
ClinicalInvestigationComment = 280,
|
|
453
|
+
MedicinalSpecificationComment = 281,
|
|
454
|
+
EconomicContributionComment = 282,
|
|
455
|
+
StatusOfAPlan = 283,
|
|
456
|
+
RandomSampleTestInformation = 284,
|
|
457
|
+
PeriodOfTime = 285,
|
|
458
|
+
Legislation = 286,
|
|
459
|
+
SecurityMeasuresRequested = 287,
|
|
460
|
+
TransportContractDocumentRemark = 288,
|
|
461
|
+
PreviousPortOfCallSecurityInformation = 289,
|
|
462
|
+
SecurityInformation = 290,
|
|
463
|
+
WasteInformation = 291,
|
|
464
|
+
B2cMarketingInformationShortDescription = 292,
|
|
465
|
+
B2bMarketingInformationLongDescription = 293,
|
|
466
|
+
B2cMarketingInformationLongDescription = 294,
|
|
467
|
+
ProductIngredients = 295,
|
|
468
|
+
LocationShortName = 296,
|
|
469
|
+
PackagingMaterialInformation = 297,
|
|
470
|
+
FillerMaterialInformation = 298,
|
|
471
|
+
ShipToShipActivityInformation = 299,
|
|
472
|
+
PackageMaterialDescription = 300,
|
|
473
|
+
ConsumerLevelPackageMarking = 301,
|
|
474
|
+
CustomsClearanceInstructions = 302,
|
|
475
|
+
CustomsClearanceInstructionsExport = 303,
|
|
476
|
+
ChangeInformation = 304,
|
|
477
|
+
CustomsClearanceInstructionImport = 305,
|
|
478
|
+
ClearancePlaceRequested = 306,
|
|
479
|
+
LoadingRemarks = 307,
|
|
480
|
+
OrderInformation = 308,
|
|
481
|
+
CustomerRemarks = 309,
|
|
482
|
+
CustomsDeclarationInformation = 310,
|
|
483
|
+
DamageRemarks = 311,
|
|
484
|
+
DocumentIssuerDeclaration = 312,
|
|
485
|
+
DeliveryInformation = 313,
|
|
486
|
+
DeliveryInstructions = 314,
|
|
487
|
+
DocumentationInstructions = 315,
|
|
488
|
+
DutyDeclaration = 316,
|
|
489
|
+
EffectiveUsedRouting = 317,
|
|
490
|
+
FirstBlockToBePrintedOnTheTransportContract = 318,
|
|
491
|
+
GovernmentBillOfLadingInformation = 319,
|
|
492
|
+
EntireTransactionSet = 320,
|
|
493
|
+
FurtherInformationConcerningGGVSPar7 = 321,
|
|
494
|
+
ConsignmentHandlingInstruction = 322,
|
|
495
|
+
HazardInformation = 323,
|
|
496
|
+
ConsignmentInformationForConsignee = 324,
|
|
497
|
+
InsuranceInstructions = 325,
|
|
498
|
+
InvoiceMailingInstructions = 326,
|
|
499
|
+
CommercialInvoiceItemDescription = 327,
|
|
500
|
+
InsuranceInformation = 328,
|
|
501
|
+
InvoiceInstruction = 329,
|
|
502
|
+
InformationForRailwayPurpose = 330,
|
|
503
|
+
InlandTransportDetails = 331,
|
|
504
|
+
TestingInstructions = 332,
|
|
505
|
+
LocationAlias = 333,
|
|
506
|
+
LineItem = 334,
|
|
507
|
+
LoadingInstruction = 335,
|
|
508
|
+
MiscellaneousChargeOrder = 336,
|
|
509
|
+
MaritimeDeclarationOfHealth = 337,
|
|
510
|
+
AdditionalMarksNumbersInformation = 338,
|
|
511
|
+
OrderInstruction = 339,
|
|
512
|
+
OtherServiceInformation = 340,
|
|
513
|
+
PackingMarkingInformation = 341,
|
|
514
|
+
PaymentInstructionsInformation = 342,
|
|
515
|
+
PayablesInformation = 343,
|
|
516
|
+
PackagingInformation = 344,
|
|
517
|
+
PackagingTermsInformation = 345,
|
|
518
|
+
PaymentDetailRemittanceInformation = 346,
|
|
519
|
+
PaymentInformation = 347,
|
|
520
|
+
ProductInformation = 348,
|
|
521
|
+
PriceCalculationFormula = 349,
|
|
522
|
+
PriorityInformation = 350,
|
|
523
|
+
PurchasingInformation = 351,
|
|
524
|
+
QuarantineInstructions = 352,
|
|
525
|
+
QualityDemandsRequirements = 353,
|
|
526
|
+
QuotationInstructionInformation = 354,
|
|
527
|
+
RiskAndHandlingInformation = 355,
|
|
528
|
+
RegulatoryInformation = 356,
|
|
529
|
+
ReturnToOriginInformation = 357,
|
|
530
|
+
Receivables = 358,
|
|
531
|
+
ConsignmentRoute = 359,
|
|
532
|
+
SafetyInformation = 360,
|
|
533
|
+
ConsignmentDocumentaryInstruction = 361,
|
|
534
|
+
SpecialInstructions = 362,
|
|
535
|
+
ShipLineRequested = 363,
|
|
536
|
+
SpecialPermissionForTransportGenerally = 364,
|
|
537
|
+
SpecialPermissionConcerningTheGoodsToBeTransported = 365,
|
|
538
|
+
SpecialHandling = 366,
|
|
539
|
+
SpecialPermissionConcerningPackage = 367,
|
|
540
|
+
SpecialPermissionConcerningTransportMeans = 368,
|
|
541
|
+
SubsidiaryRiskNumberIataDgr = 369,
|
|
542
|
+
SpecialServiceRequest = 370,
|
|
543
|
+
SupplierRemarks = 371,
|
|
544
|
+
ConsignmentTariff = 372,
|
|
545
|
+
ConsignmentTransport = 373,
|
|
546
|
+
TransportationInformation = 374,
|
|
547
|
+
RequestedTariff = 375,
|
|
548
|
+
TaxDeclaration = 376,
|
|
549
|
+
WarehouseInstructionInformation = 377,
|
|
550
|
+
MutuallyDefined = 378
|
|
551
|
+
}
|
|
552
|
+
/** Represents an invoice period with start and end dates */
|
|
553
|
+
interface InvoicePeriod {
|
|
554
|
+
/** The start date */
|
|
555
|
+
start?: Date | undefined;
|
|
556
|
+
/** The end date */
|
|
557
|
+
end?: Date | undefined;
|
|
558
|
+
}
|
|
559
|
+
/** Information about the delivery */
|
|
560
|
+
interface DeliveryInformation {
|
|
561
|
+
/** BT-70 in XRechnung */
|
|
562
|
+
deliverToName?: string | undefined;
|
|
563
|
+
/** BT-71 in XRechnung */
|
|
564
|
+
deliverToLocationIdentifier?: string | undefined;
|
|
565
|
+
/** BT-72 in XRechnung */
|
|
566
|
+
deliveryDate?: Date | undefined;
|
|
567
|
+
/** BG-15 in XRechnung */
|
|
568
|
+
deliveryAddress?: DeliveryAddress | undefined;
|
|
569
|
+
}
|
|
570
|
+
/** Address for deliveries */
|
|
571
|
+
interface DeliveryAddress {
|
|
572
|
+
/** The address. BT-75, BT-76 and BT-165 in XRechnung. */
|
|
573
|
+
address?: string | undefined;
|
|
574
|
+
/** The city. BT-77 in XRechnung. */
|
|
575
|
+
city?: string | undefined;
|
|
576
|
+
/** The zip code. BT-78 in XRechnung. */
|
|
577
|
+
zipCode?: string | undefined;
|
|
578
|
+
/** The ISO 3166-1 2 letter country code. BT-80 in XRechnung. */
|
|
579
|
+
countryCode?: string | undefined;
|
|
580
|
+
}
|
|
581
|
+
/** Totals for the invoice */
|
|
582
|
+
interface InvoiceTotals {
|
|
583
|
+
/** Sum of all invoice items in net.
|
|
584
|
+
BT-106 in XRechnung. */
|
|
585
|
+
totalNet?: number | undefined;
|
|
586
|
+
/** This is the sum of all allowances (e.g. deductions or withheld tax) in the invoice
|
|
587
|
+
BT-107 in XRechnung. */
|
|
588
|
+
totalAllowances?: number | undefined;
|
|
589
|
+
/** This is the sum of all charges in the invoice, except VAT. For example, late
|
|
590
|
+
fees or surcharges.
|
|
591
|
+
BT-108 in XRechnung. */
|
|
592
|
+
totalCharges?: number | undefined;
|
|
593
|
+
/** This is the total net value of the invoice after applied allowances and charges,
|
|
594
|
+
meaning the actual net sum to be paid.
|
|
595
|
+
BT-109 in XRechnung. */
|
|
596
|
+
totalAfterDeductions?: number | undefined;
|
|
597
|
+
/** The total amount of VAT in the invoice.
|
|
598
|
+
BT-110 in XRechnung. */
|
|
599
|
+
totalVatAmount?: number | undefined;
|
|
600
|
+
/** The total gross amount of the invoice, including all taxes and deductions.
|
|
601
|
+
BT-112 in XRechnung. */
|
|
602
|
+
totalGross?: number | undefined;
|
|
603
|
+
/** The total amount that has already been paid for this invoice, e.g. used when
|
|
604
|
+
previous invoice sums are included here that have already been paid.
|
|
605
|
+
BT-113 in XRechnung. */
|
|
606
|
+
alreadyPaidTotal?: number | undefined;
|
|
607
|
+
/** If this is given, this specifies if any rounding amount is applied to the invoice,
|
|
608
|
+
before calculating the TotalToBePaid value.
|
|
609
|
+
BT-114 in XRechnung. */
|
|
610
|
+
payableRoundingAmount?: number | undefined;
|
|
611
|
+
/** The sum that needs to be paid for this invoice. This is the total gross amount
|
|
612
|
+
minus the already paid amount.
|
|
613
|
+
BT-115 in XRechnung. */
|
|
614
|
+
totalToBePaid?: number | undefined;
|
|
615
|
+
}
|
|
616
|
+
/** Instructions how payment for an invoice should be provided. */
|
|
617
|
+
interface PaymentInstructions {
|
|
618
|
+
/** Additional text to describe the payment instructions. */
|
|
619
|
+
description?: string | undefined;
|
|
620
|
+
/** This should be a code according to UNCL 4461
|
|
621
|
+
to identify the type of payment. For example, code "58" means SEPA Credit Transfer,
|
|
622
|
+
and code "30" means non-SEPA Credit Transfer.
|
|
623
|
+
See this list: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4461/ */
|
|
624
|
+
paymentTypeCode?: string | undefined;
|
|
625
|
+
/** This should be a type according to UNCL 4461
|
|
626
|
+
to identify the type of payment. */
|
|
627
|
+
paymentType?: PaymentType | undefined;
|
|
628
|
+
/** If a SEPA direct debit payment mean is used, then this reference should be provided.
|
|
629
|
+
It's the creditor identifier in SEPA, in German "Gläubiger-Identifikationsnummer".
|
|
630
|
+
Field BT-90 in XRechnung. */
|
|
631
|
+
paymentCreditorIdentifier?: string | undefined;
|
|
632
|
+
/** A list of payment means that can be used to pay the invoice. */
|
|
633
|
+
paymentMeans?: PaymentMeans[] | undefined;
|
|
634
|
+
}
|
|
635
|
+
/** Indication of the instrument of payment, which may include a guarantee. Enumeration values are self-descriptive, so no comments needed here. According to UNCL 4461, see: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4461/ */
|
|
636
|
+
declare enum PaymentType {
|
|
637
|
+
MutuallyDefined = 0,
|
|
638
|
+
InstrumentNotDefined = 1,
|
|
639
|
+
AutomatedClearingHouseCredit = 2,
|
|
640
|
+
AutomatedClearingHouseDebit = 3,
|
|
641
|
+
ACHDemandDebitReversal = 4,
|
|
642
|
+
ACHDemandCreditReversal = 5,
|
|
643
|
+
ACHDemandCredit = 6,
|
|
644
|
+
ACHDemandDebit = 7,
|
|
645
|
+
Hold = 8,
|
|
646
|
+
NationalOrRegionalClearing = 9,
|
|
647
|
+
InCash = 10,
|
|
648
|
+
ACHSavingsCreditReversal = 11,
|
|
649
|
+
ACHSavingsDebitReversal = 12,
|
|
650
|
+
ACHSavingsCredit = 13,
|
|
651
|
+
ACHSavingsDebit = 14,
|
|
652
|
+
BookentryCredit = 15,
|
|
653
|
+
BookentryDebit = 16,
|
|
654
|
+
ACHDemandCashConcentrationDisbursementCCDCredit = 17,
|
|
655
|
+
ACHDemandCashConcentrationDisbursementCCDDebit = 18,
|
|
656
|
+
ACHDemandCorporateTradePaymentCTPCredit = 19,
|
|
657
|
+
Cheque = 20,
|
|
658
|
+
BankerSDraft = 21,
|
|
659
|
+
CertifiedBankerSDraft = 22,
|
|
660
|
+
BankChequeIssuedByABankingOrSimilarEstablishment = 23,
|
|
661
|
+
BillOfExchangeAwaitingAcceptance = 24,
|
|
662
|
+
CertifiedCheque = 25,
|
|
663
|
+
LocalCheque = 26,
|
|
664
|
+
ACHDemandCorporateTradePaymentCTPDebit = 27,
|
|
665
|
+
ACHDemandCorporateTradeExchangeCTXCredit = 28,
|
|
666
|
+
ACHDemandCorporateTradeExchangeCTXDebit = 29,
|
|
667
|
+
CreditTransfer = 30,
|
|
668
|
+
DebitTransfer = 31,
|
|
669
|
+
ACHDemandCashConcentrationDisbursementPlusCCDCredit = 32,
|
|
670
|
+
ACHDemandCashConcentrationDisbursementPlusCCDDebit = 33,
|
|
671
|
+
ACHPrearrangedPaymentAndDepositPPD = 34,
|
|
672
|
+
ACHSavingsCashConcentrationDisbursementCCDCredit = 35,
|
|
673
|
+
ACHSavingsCashConcentrationDisbursementCCDDebit = 36,
|
|
674
|
+
ACHSavingsCorporateTradePaymentCTPCredit = 37,
|
|
675
|
+
ACHSavingsCorporateTradePaymentCTPDebit = 38,
|
|
676
|
+
ACHSavingsCorporateTradeExchangeCTXCredit = 39,
|
|
677
|
+
ACHSavingsCorporateTradeExchangeCTXDebit = 40,
|
|
678
|
+
ACHSavingsCashConcentrationDisbursementPlusCCDCredit = 41,
|
|
679
|
+
PaymentToBankAccount = 42,
|
|
680
|
+
ACHSavingsCashConcentrationDisbursementPlusCCDDebit = 43,
|
|
681
|
+
AcceptedBillOfExchange = 44,
|
|
682
|
+
ReferencedHomeBankingCreditTransfer = 45,
|
|
683
|
+
InterbankDebitTransfer = 46,
|
|
684
|
+
HomeBankingDebitTransfer = 47,
|
|
685
|
+
BankCard = 48,
|
|
686
|
+
DirectDebit = 49,
|
|
687
|
+
PaymentByPostgiro = 50,
|
|
688
|
+
FRNorme697TelereglementCFONBFrenchOrganisationFor = 51,
|
|
689
|
+
UrgentCommercialPayment = 52,
|
|
690
|
+
UrgentTreasuryPayment = 53,
|
|
691
|
+
CreditCard = 54,
|
|
692
|
+
DebitCard = 55,
|
|
693
|
+
Bankgiro = 56,
|
|
694
|
+
StandingAgreement = 57,
|
|
695
|
+
SEPACreditTransfer = 58,
|
|
696
|
+
SEPADirectDebit = 59,
|
|
697
|
+
PromissoryNote = 60,
|
|
698
|
+
PromissoryNoteSignedByTheDebtor = 61,
|
|
699
|
+
PromissoryNoteSignedByTheDebtorAndEndorsedByABank = 62,
|
|
700
|
+
PromissoryNoteSignedByTheDebtorAndEndorsedByAThirdParty = 63,
|
|
701
|
+
PromissoryNoteSignedByABank = 64,
|
|
702
|
+
PromissoryNoteSignedByABankAndEndorsedByAnotherBank = 65,
|
|
703
|
+
PromissoryNoteSignedByAThirdParty = 66,
|
|
704
|
+
PromissoryNoteSignedByAThirdPartyAndEndorsedByABank = 67,
|
|
705
|
+
OnlinePaymentService = 68,
|
|
706
|
+
BillDrawnByTheCreditorOnTheDebtor = 70,
|
|
707
|
+
BillDrawnByTheCreditorOnABank = 74,
|
|
708
|
+
BillDrawnByTheCreditorEndorsedByAnotherBank = 75,
|
|
709
|
+
BillDrawnByTheCreditorOnABankAndEndorsedByAThirdParty = 76,
|
|
710
|
+
BillDrawnByTheCreditorOnAThirdParty = 77,
|
|
711
|
+
BillDrawnByCreditorOnThirdPartyAcceptedAndEndorsedByBank = 78,
|
|
712
|
+
NotTransferableBankerSDraft = 91,
|
|
713
|
+
NotTransferableLocalCheque = 92,
|
|
714
|
+
ReferenceGiro = 93,
|
|
715
|
+
UrgentGiro = 94,
|
|
716
|
+
FreeFormatGiro = 95,
|
|
717
|
+
RequestedMethodForPaymentWasNotUsed = 96,
|
|
718
|
+
ClearingBetweenPartners = 97,
|
|
719
|
+
JPElectronicallyRecordedMonetaryClaims = 98
|
|
720
|
+
}
|
|
721
|
+
/** Represents a payment means for an invoice */
|
|
722
|
+
interface PaymentMeans {
|
|
723
|
+
/** This is typically the IBAN or account number
|
|
724
|
+
BT-84 in XRechnung. */
|
|
725
|
+
accountIdentifier?: string | undefined;
|
|
726
|
+
/** The name for the account, typically the name of the owner for
|
|
727
|
+
a bank account.
|
|
728
|
+
BT-85 in XRechnung. */
|
|
729
|
+
accountName?: string | undefined;
|
|
730
|
+
/** This can be the BIC
|
|
731
|
+
BT-86 in XRechnung. */
|
|
732
|
+
serviceProviderIdentifier?: string | undefined;
|
|
733
|
+
/** If used, this is the mandate id for direct debit under which
|
|
734
|
+
the direct debit will be performed
|
|
735
|
+
BT-89 in XRechnung. */
|
|
736
|
+
directDebitMandateId?: string | undefined;
|
|
737
|
+
/** If used, this is the IBAN for direct debit
|
|
738
|
+
BT-91 in XRechnung. */
|
|
739
|
+
directDebitIban?: string | undefined;
|
|
740
|
+
/** The payment id, e.g. a reference number for the payment. In German,
|
|
741
|
+
this would be called "Verwendungszweck".
|
|
742
|
+
BT-83 in XRechnung. */
|
|
743
|
+
paymentId?: string | undefined;
|
|
744
|
+
}
|
|
745
|
+
/** Represents a document / attachment that is included with the invoice */
|
|
746
|
+
interface SupportingDocument {
|
|
747
|
+
/** This is typically an id or a name */
|
|
748
|
+
documentReference?: string | undefined;
|
|
749
|
+
/** A description of the document */
|
|
750
|
+
description?: string | undefined;
|
|
751
|
+
/** A link to the document in case this is an external reference */
|
|
752
|
+
externalDocumentUrl?: string | undefined;
|
|
753
|
+
/** The document in base64 encoded form as binary data. This is ignored if you set PlaceholderId. */
|
|
754
|
+
documentBase64?: string | undefined;
|
|
755
|
+
/** This should be present if DocumentBase64 is set. */
|
|
756
|
+
fileName?: string | undefined;
|
|
757
|
+
/** The type of the document */
|
|
758
|
+
documentMimeType?: AttachmentMimeType | undefined;
|
|
759
|
+
/** This is placeholder id to use instead of DocumentBase64 property for lazy-loading of documents. The use case of this is to avoid having the documents be processed in memory when they might be handled
|
|
760
|
+
by the calling code. For example, in the AVACloud webservice, this placeholder can be used to avoid having to send the Base64 encoded document to the server and then downloading it again in the result. If this
|
|
761
|
+
is given, the generated XML file will not be valid, since it will include the literal Guid value as a placeholder. You can use the 'xmlExportCallback' parameter in the XRechnungWriter to replace
|
|
762
|
+
the placeholder with the actual Base64 contents of the file in this library, or just use a string replace method if you're working with the XML in a different context. */
|
|
763
|
+
placeholderId?: string | undefined;
|
|
764
|
+
}
|
|
765
|
+
/** Describes a mime type of a document */
|
|
766
|
+
declare enum AttachmentMimeType {
|
|
767
|
+
Unknown = 0,
|
|
768
|
+
Pdf = 1,
|
|
769
|
+
Png = 2,
|
|
770
|
+
Jpeg = 3,
|
|
771
|
+
Csv = 4,
|
|
772
|
+
Excel = 5,
|
|
773
|
+
OpenOfficeSpreadsheet = 6
|
|
774
|
+
}
|
|
775
|
+
/** Describes the VAT breakdown for an invoice in a single VAT category */
|
|
776
|
+
interface VatBreakdown {
|
|
777
|
+
/** The total net amount of this VAT category */
|
|
778
|
+
netTaxableAmount?: number | undefined;
|
|
779
|
+
/** The total VAT */
|
|
780
|
+
vatAmount?: number | undefined;
|
|
781
|
+
/** The category of the VAT */
|
|
782
|
+
vatCategory?: VatCategory | undefined;
|
|
783
|
+
/** The actual tax rate as a decimal value,
|
|
784
|
+
e.g. 19% would be 0.19 */
|
|
785
|
+
taxRate?: number | undefined;
|
|
786
|
+
/** If the VAT is exempt, there should be a description here.
|
|
787
|
+
For example, in reverse charge scenarios, this text
|
|
788
|
+
should contain a reference to "Reverse charge according to ...". */
|
|
789
|
+
vatExemptionReasonText?: string | undefined;
|
|
790
|
+
/** A code from the VAT exemption reason code list(VATEX)“ */
|
|
791
|
+
vatExemptionReasonCode?: string | undefined;
|
|
792
|
+
}
|
|
793
|
+
/** The category used in a VatBreakdown"/> */
|
|
794
|
+
declare enum VatCategory {
|
|
795
|
+
Unknown = 0,
|
|
796
|
+
StandardRate = 1,
|
|
797
|
+
ZeroRatedGoods = 2,
|
|
798
|
+
ExemptFromTax = 3,
|
|
799
|
+
VatReverseCharge = 4,
|
|
800
|
+
VatExemptReverseCharge = 5,
|
|
801
|
+
FreeExportItem = 6,
|
|
802
|
+
ServicesOutsideScopeOfTaxation = 7,
|
|
803
|
+
CanaryIslandsGeneralIndirectTax = 8,
|
|
804
|
+
TaxInCeutaAndMelilla = 9
|
|
805
|
+
}
|
|
806
|
+
/** This describes an allowance in an invoice, which is a deduction from the total amount */
|
|
807
|
+
interface InvoiceAllowance {
|
|
808
|
+
/** The net amount of the allowance */
|
|
809
|
+
netAmount?: number | undefined;
|
|
810
|
+
/** If this is a relative / percentage allowance, this should be set
|
|
811
|
+
and give the base amount that is being used for the calculation */
|
|
812
|
+
relativeAllowanceBaseAmount?: number | undefined;
|
|
813
|
+
/** If this is a relative / percentage allowance, this should be set
|
|
814
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
815
|
+
relativeAllowancePercentage?: number | undefined;
|
|
816
|
+
/** The VAT category for the allowance */
|
|
817
|
+
vatCategory?: VatCategory | undefined;
|
|
818
|
+
/** The actual tax rate as a decimal value,
|
|
819
|
+
meaning 19% would be 0.19 */
|
|
820
|
+
vatRate?: number | undefined;
|
|
821
|
+
/** A description of the allowance. This should not be set it ReasonCode
|
|
822
|
+
is provided, otherwise this one takes precedence. */
|
|
823
|
+
reason?: string | undefined;
|
|
824
|
+
/** A reason code for the allowance according to UNTDID 5189.
|
|
825
|
+
See this list: https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm */
|
|
826
|
+
reasonCode?: string | undefined;
|
|
827
|
+
/** A reason type for the allowance according to UNTDID 5189. This will be automatically parsed from ReasonCode
|
|
828
|
+
and is a read-only property. */
|
|
829
|
+
reasonType?: AllowanceReasonType | undefined;
|
|
830
|
+
}
|
|
831
|
+
/** Type specifying the identification of an allowance from UNTDID 5189. See this list: https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm */
|
|
832
|
+
declare enum AllowanceReasonType {
|
|
833
|
+
HandlingCommission = 1,
|
|
834
|
+
AmendmentCommission = 2,
|
|
835
|
+
AcceptanceCommission = 3,
|
|
836
|
+
CommissionForObtainingAcceptance = 4,
|
|
837
|
+
CommissionOnDelivery = 5,
|
|
838
|
+
AdvisingCommission = 6,
|
|
839
|
+
ConfirmationCommission = 7,
|
|
840
|
+
DeferredPaymentCommission = 8,
|
|
841
|
+
CommissionForTakingUpDocuments = 9,
|
|
842
|
+
OpeningCommission = 10,
|
|
843
|
+
FeeForPaymentUnderReserve = 11,
|
|
844
|
+
DiscrepancyFee = 12,
|
|
845
|
+
DomicilationCommission = 13,
|
|
846
|
+
CommissionForReleaseOfGoods = 14,
|
|
847
|
+
CollectionCommission = 15,
|
|
848
|
+
NegotiationCommission = 16,
|
|
849
|
+
ReturnCommission = 17,
|
|
850
|
+
BLSplittingCharges = 18,
|
|
851
|
+
TrustCommission = 19,
|
|
852
|
+
TransferCommission = 20,
|
|
853
|
+
CommissionForOpeningIrrevocableDocumentaryCredits = 21,
|
|
854
|
+
PreAdviceCommission = 22,
|
|
855
|
+
SupervisoryCommission = 23,
|
|
856
|
+
ModelCharges = 24,
|
|
857
|
+
RiskCommission = 25,
|
|
858
|
+
GuaranteeCommission = 26,
|
|
859
|
+
ReimbursementCommission = 27,
|
|
860
|
+
StampDuty = 28,
|
|
861
|
+
Brokerage = 29,
|
|
862
|
+
BankCharges = 30,
|
|
863
|
+
BankChargesInformation = 31,
|
|
864
|
+
CourierFee = 32,
|
|
865
|
+
PhoneFee = 33,
|
|
866
|
+
PostageFee = 34,
|
|
867
|
+
SWIFTFee = 35,
|
|
868
|
+
TelexFee = 36,
|
|
869
|
+
PenaltyForLateDeliveryOfDocuments = 37,
|
|
870
|
+
PenaltyForLateDeliveryOfValuationOfWorks = 38,
|
|
871
|
+
PenaltyForExecutionOfWorksBehindSchedule = 39,
|
|
872
|
+
OtherPenalties = 40,
|
|
873
|
+
BonusForWorksAheadOfSchedule = 41,
|
|
874
|
+
OtherBonus = 42,
|
|
875
|
+
ProjectManagementCost = 44,
|
|
876
|
+
ProRataRetention = 45,
|
|
877
|
+
ContractualRetention = 46,
|
|
878
|
+
OtherRetentions = 47,
|
|
879
|
+
InterestOnArrears = 48,
|
|
880
|
+
Interest = 49,
|
|
881
|
+
ChargePerCreditCover = 50,
|
|
882
|
+
ChargePerUnusedCreditCover = 51,
|
|
883
|
+
MinimumCommission = 52,
|
|
884
|
+
FactoringCommission = 53,
|
|
885
|
+
ChamberOfCommerceCharge = 54,
|
|
886
|
+
TransferCharges = 55,
|
|
887
|
+
RepatriationCharges = 56,
|
|
888
|
+
MiscellaneousCharges = 57,
|
|
889
|
+
ForeignExchangeCharges = 58,
|
|
890
|
+
AgreedDebitInterestCharge = 59,
|
|
891
|
+
ManufacturersConsumerDiscount = 60,
|
|
892
|
+
FaxAdviceCharge = 61,
|
|
893
|
+
DueToMilitaryStatus = 62,
|
|
894
|
+
DueToWorkAccident = 63,
|
|
895
|
+
SpecialAgreement = 64,
|
|
896
|
+
ProductionErrorDiscount = 65,
|
|
897
|
+
NewOutletDiscount = 66,
|
|
898
|
+
SampleDiscount = 67,
|
|
899
|
+
EndOfRangeDiscount = 68,
|
|
900
|
+
ChargeForACustomerSpecificFinish = 69,
|
|
901
|
+
IncotermDiscount = 70,
|
|
902
|
+
PointOfSalesThresholdAllowance = 71,
|
|
903
|
+
TechnicalModificationCosts = 72,
|
|
904
|
+
JobOrderProductionCosts = 73,
|
|
905
|
+
OffPremisesCosts = 74,
|
|
906
|
+
AdditionalProcessingCosts = 75,
|
|
907
|
+
AttestingCharge = 76,
|
|
908
|
+
RushDeliverySurcharge = 77,
|
|
909
|
+
SpecialConstructionCosts = 78,
|
|
910
|
+
FreightCharges = 79,
|
|
911
|
+
PackingCharge = 80,
|
|
912
|
+
RepairCharge = 81,
|
|
913
|
+
LoadingCharge = 82,
|
|
914
|
+
SetupCharge = 83,
|
|
915
|
+
TestingCharge = 84,
|
|
916
|
+
WarehousingCharge = 85,
|
|
917
|
+
GoldSurcharge = 86,
|
|
918
|
+
CopperSurcharge = 87,
|
|
919
|
+
MaterialSurchargeDeduction = 88,
|
|
920
|
+
LeadSurcharge = 89,
|
|
921
|
+
PriceIndexSurcharge = 90,
|
|
922
|
+
PlatinumSurcharge = 91,
|
|
923
|
+
SilverSurcharge = 92,
|
|
924
|
+
WolframSurcharge = 93,
|
|
925
|
+
AluminumSurcharge = 94,
|
|
926
|
+
Discount = 95,
|
|
927
|
+
Insurance = 96,
|
|
928
|
+
MinimumOrderMinimumBillingCharge = 97,
|
|
929
|
+
MaterialSurchargeSpecialMaterials = 98,
|
|
930
|
+
Surcharge = 99,
|
|
931
|
+
SpecialRebate = 100,
|
|
932
|
+
CarbonFootprintCharge = 101,
|
|
933
|
+
FixedLongTerm = 102,
|
|
934
|
+
Temporary = 103,
|
|
935
|
+
Standard = 104,
|
|
936
|
+
YearlyTurnover = 105
|
|
937
|
+
}
|
|
938
|
+
/** This describes an charge in an invoice, which is a surcharge to the total amount */
|
|
939
|
+
interface InvoiceCharge {
|
|
940
|
+
/** The net amount of the charge */
|
|
941
|
+
netAmount?: number | undefined;
|
|
942
|
+
/** If this is a relative / percentage charge, this should be set
|
|
943
|
+
and give the base amount that is being used for the calculation */
|
|
944
|
+
relativeChargeBaseAmount?: number | undefined;
|
|
945
|
+
/** If this is a relative / percentage charge, this should be set
|
|
946
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
947
|
+
relativeChargePercentage?: number | undefined;
|
|
948
|
+
/** The VAT category for the charge */
|
|
949
|
+
vatCategory?: VatCategory | undefined;
|
|
950
|
+
/** The actual tax rate as a decimal value,
|
|
951
|
+
meaning 19% would be 0.19 */
|
|
952
|
+
vatRate?: number | undefined;
|
|
953
|
+
/** A description of the charge. This should not be set it ReasonCode
|
|
954
|
+
is provided, otherwise this one takes precedence. */
|
|
955
|
+
reason?: string | undefined;
|
|
956
|
+
/** A reason code for the charge according to UNTDID 7161.
|
|
957
|
+
See this list: https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred7161.htm */
|
|
958
|
+
reasonCode?: string | undefined;
|
|
959
|
+
/** A reason type for the charge according to UNTDID 7161. This will be automatically parsed from ReasonCode
|
|
960
|
+
and is a read-only property. */
|
|
961
|
+
reasonType?: ChargeReasonType | undefined;
|
|
962
|
+
}
|
|
963
|
+
/** Type specifying a special service from UNTDID 7161. See this list: https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred7161.htm */
|
|
964
|
+
declare enum ChargeReasonType {
|
|
965
|
+
Advertising = 0,
|
|
966
|
+
Telecommunication = 1,
|
|
967
|
+
TechnicalModification = 2,
|
|
968
|
+
JobOrderProduction = 3,
|
|
969
|
+
Outlays = 4,
|
|
970
|
+
OffPremises = 5,
|
|
971
|
+
AdditionalProcessing = 6,
|
|
972
|
+
Attesting = 7,
|
|
973
|
+
Acceptance = 8,
|
|
974
|
+
RushDelivery = 9,
|
|
975
|
+
SpecialConstruction = 10,
|
|
976
|
+
AirportFacilities = 11,
|
|
977
|
+
Concession = 12,
|
|
978
|
+
CompulsoryStorage = 13,
|
|
979
|
+
FuelRemoval = 14,
|
|
980
|
+
IntoPlane = 15,
|
|
981
|
+
Overtime = 16,
|
|
982
|
+
Tooling = 17,
|
|
983
|
+
Miscellaneous = 18,
|
|
984
|
+
AdditionalPackaging = 19,
|
|
985
|
+
Dunnage = 20,
|
|
986
|
+
Containerisation = 21,
|
|
987
|
+
CartonPacking = 22,
|
|
988
|
+
HessianWrapped = 23,
|
|
989
|
+
PolyethyleneWrapPacking = 24,
|
|
990
|
+
MiscellaneousTreatment = 25,
|
|
991
|
+
EnamellingTreatment = 26,
|
|
992
|
+
HeatTreatment = 27,
|
|
993
|
+
PlatingTreatment = 28,
|
|
994
|
+
Painting = 29,
|
|
995
|
+
Polishing = 30,
|
|
996
|
+
Priming = 31,
|
|
997
|
+
PreservationTreatment = 32,
|
|
998
|
+
Fitting = 33,
|
|
999
|
+
Consolidation = 34,
|
|
1000
|
+
BillOfLading = 35,
|
|
1001
|
+
Airbag = 36,
|
|
1002
|
+
Transfer = 37,
|
|
1003
|
+
Slipsheet = 38,
|
|
1004
|
+
Binding = 39,
|
|
1005
|
+
RepairOrReplacementOfBrokenReturnablePackage = 40,
|
|
1006
|
+
EfficientLogistics = 41,
|
|
1007
|
+
Merchandising = 42,
|
|
1008
|
+
ProductMix = 43,
|
|
1009
|
+
OtherServices = 44,
|
|
1010
|
+
PickUp = 45,
|
|
1011
|
+
ChronicIllness = 46,
|
|
1012
|
+
NewProductIntroduction = 47,
|
|
1013
|
+
DirectDelivery = 48,
|
|
1014
|
+
Diversion = 49,
|
|
1015
|
+
Disconnect = 50,
|
|
1016
|
+
Distribution = 51,
|
|
1017
|
+
HandlingOfHazardousCargo = 52,
|
|
1018
|
+
RentsAndLeases = 53,
|
|
1019
|
+
LocationDifferential = 54,
|
|
1020
|
+
AircraftRefueling = 55,
|
|
1021
|
+
FuelShippedIntoStorage = 56,
|
|
1022
|
+
CashOnDelivery = 57,
|
|
1023
|
+
SmallOrderProcessingService = 58,
|
|
1024
|
+
ClericalOrAdministrativeServices = 59,
|
|
1025
|
+
Guarantee = 60,
|
|
1026
|
+
CollectionAndRecycling = 61,
|
|
1027
|
+
CopyrightFeeCollection = 62,
|
|
1028
|
+
VeterinaryInspectionService = 63,
|
|
1029
|
+
PensionerService = 64,
|
|
1030
|
+
MedicineFreePassHolder = 65,
|
|
1031
|
+
EnvironmentalProtectionService = 66,
|
|
1032
|
+
EnvironmentalCleanUpService = 67,
|
|
1033
|
+
NationalChequeProcessingServiceOutsideAccountArea = 68,
|
|
1034
|
+
NationalPaymentServiceOutsideAccountArea = 69,
|
|
1035
|
+
NationalPaymentServiceWithinAccountArea = 70,
|
|
1036
|
+
Adjustments = 71,
|
|
1037
|
+
Authentication = 72,
|
|
1038
|
+
Cataloguing = 73,
|
|
1039
|
+
Cartage = 74,
|
|
1040
|
+
Certification = 75,
|
|
1041
|
+
CertificateOfConformance = 76,
|
|
1042
|
+
CertificateOfOrigin = 77,
|
|
1043
|
+
Cutting = 78,
|
|
1044
|
+
ConsularService = 79,
|
|
1045
|
+
CustomerCollection = 80,
|
|
1046
|
+
PayrollPaymentService = 81,
|
|
1047
|
+
CashTransportation = 82,
|
|
1048
|
+
HomeBankingService = 83,
|
|
1049
|
+
BilateralAgreementService = 84,
|
|
1050
|
+
InsuranceBrokerageService = 85,
|
|
1051
|
+
ChequeGeneration = 86,
|
|
1052
|
+
PreferentialMerchandisingLocation = 87,
|
|
1053
|
+
Crane = 88,
|
|
1054
|
+
SpecialColourService = 89,
|
|
1055
|
+
Sorting = 90,
|
|
1056
|
+
BatteryCollectionAndRecycling = 91,
|
|
1057
|
+
ProductTakeBackFee = 92,
|
|
1058
|
+
CarLoading = 93,
|
|
1059
|
+
Cleaning = 94,
|
|
1060
|
+
CigaretteStamping = 95,
|
|
1061
|
+
CountAndRecount = 96,
|
|
1062
|
+
LayoutDesign = 97,
|
|
1063
|
+
DriverAssignedUnloading = 98,
|
|
1064
|
+
Delivery = 99,
|
|
1065
|
+
Engraving = 100,
|
|
1066
|
+
Expediting = 101,
|
|
1067
|
+
ExchangeRateGuarantee = 102,
|
|
1068
|
+
Fabrication = 103,
|
|
1069
|
+
FreightEqualization = 104,
|
|
1070
|
+
FreightExtraordinaryHandling = 105,
|
|
1071
|
+
FreightService = 106,
|
|
1072
|
+
FillingHandling = 107,
|
|
1073
|
+
Financing = 108,
|
|
1074
|
+
Grinding = 109,
|
|
1075
|
+
Hose = 110,
|
|
1076
|
+
Handling = 111,
|
|
1077
|
+
HoistingAndHauling = 112,
|
|
1078
|
+
Installation = 113,
|
|
1079
|
+
InstallationAndWarranty = 114,
|
|
1080
|
+
InsideDelivery = 115,
|
|
1081
|
+
Inspection = 116,
|
|
1082
|
+
InstallationAndTraining = 117,
|
|
1083
|
+
Invoicing = 118,
|
|
1084
|
+
Koshering = 119,
|
|
1085
|
+
CarrierCount = 120,
|
|
1086
|
+
Labelling = 121,
|
|
1087
|
+
Labour = 122,
|
|
1088
|
+
RepairAndReturn = 123,
|
|
1089
|
+
Legalisation = 124,
|
|
1090
|
+
Mounting = 125,
|
|
1091
|
+
MailInvoice = 126,
|
|
1092
|
+
MailInvoiceToEachLocation = 127,
|
|
1093
|
+
NonReturnableContainers = 128,
|
|
1094
|
+
OutsideCableConnectors = 129,
|
|
1095
|
+
InvoiceWithShipment = 130,
|
|
1096
|
+
PhosphatizingSteelTreatment = 131,
|
|
1097
|
+
Packing = 132,
|
|
1098
|
+
Palletizing = 133,
|
|
1099
|
+
Repacking = 134,
|
|
1100
|
+
Repair = 135,
|
|
1101
|
+
ReturnableContainer = 136,
|
|
1102
|
+
Restocking = 137,
|
|
1103
|
+
ReDelivery = 138,
|
|
1104
|
+
Refurbishing = 139,
|
|
1105
|
+
RailWagonHire = 140,
|
|
1106
|
+
Loading = 141,
|
|
1107
|
+
Salvaging = 142,
|
|
1108
|
+
ShippingAndHandling = 143,
|
|
1109
|
+
SpecialPackaging = 144,
|
|
1110
|
+
Stamping = 145,
|
|
1111
|
+
ConsigneeUnload = 146,
|
|
1112
|
+
ShrinkWrap = 147,
|
|
1113
|
+
SpecialHandling = 148,
|
|
1114
|
+
SpecialFinish = 149,
|
|
1115
|
+
SetUp = 150,
|
|
1116
|
+
TankRenting = 151,
|
|
1117
|
+
Testing = 152,
|
|
1118
|
+
TransportationThirdPartyBilling = 153,
|
|
1119
|
+
TransportationByVendor = 154,
|
|
1120
|
+
DropYard = 155,
|
|
1121
|
+
DropDock = 156,
|
|
1122
|
+
Warehousing = 157,
|
|
1123
|
+
CombineAllSameDayShipment = 158,
|
|
1124
|
+
SplitPickUp = 159,
|
|
1125
|
+
MutuallyDefined = 160
|
|
1126
|
+
}
|
|
1127
|
+
/** Represents a single invoice line item */
|
|
1128
|
+
interface InvoiceLineItem {
|
|
1129
|
+
/** An unique identifier for the line item */
|
|
1130
|
+
identifier?: string | undefined;
|
|
1131
|
+
/** An unstructured note to classify line items */
|
|
1132
|
+
note?: string | undefined;
|
|
1133
|
+
/** A seller-defined object identifier for this line item,
|
|
1134
|
+
meaning an identifier for the actual line. This could be
|
|
1135
|
+
a numbering sequence or a reference to a product. */
|
|
1136
|
+
objectIdentifier?: string | undefined;
|
|
1137
|
+
/** The actual invoiced quantity of the line item */
|
|
1138
|
+
quantity?: number | undefined;
|
|
1139
|
+
/** A code for the unit of the quantity. This should be a code as defined
|
|
1140
|
+
in UN/ECE Recommendation No. 20 „Codes for Units of Measure Used in
|
|
1141
|
+
International Trade“ und UN/ECE Recommendation No 21 „Codes for Passengers,
|
|
1142
|
+
Types of Cargo, Packages and Packaging Materials(with Complementary Codes for Package Names).
|
|
1143
|
+
See here: https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/Registry+of+supporting+artefacts+to+implement+EN16931 */
|
|
1144
|
+
unitCode?: string | undefined;
|
|
1145
|
+
/** The net amount for this line item. This is the total price for positions */
|
|
1146
|
+
netAmount?: number | undefined;
|
|
1147
|
+
/** A reference to an item in the buyers purachase order */
|
|
1148
|
+
purchaseOrderReference?: string | undefined;
|
|
1149
|
+
/** Information about the invoice period for this line item. */
|
|
1150
|
+
lineItemPeriod?: InvoicePeriod | undefined;
|
|
1151
|
+
/** Allowances specific to this line item */
|
|
1152
|
+
allowances?: LineItemAllowance[] | undefined;
|
|
1153
|
+
/** charges specific to this line item */
|
|
1154
|
+
charges?: LineItemCharge[] | undefined;
|
|
1155
|
+
/** Price details for this line item. */
|
|
1156
|
+
priceDetails?: LineItemPriceDetail | undefined;
|
|
1157
|
+
/** VAT information for this line item */
|
|
1158
|
+
vatInformation?: LineItemVatInformation[] | undefined;
|
|
1159
|
+
/** Information about this line item */
|
|
1160
|
+
itemInformation?: LineItemInformation | undefined;
|
|
1161
|
+
/** Line items can be nested, in which case this property holds the sub items */
|
|
1162
|
+
subItems?: InvoiceLineItem[] | undefined;
|
|
1163
|
+
}
|
|
1164
|
+
/** Allowance for a single line item */
|
|
1165
|
+
interface LineItemAllowance {
|
|
1166
|
+
/** The net amount of the allowance */
|
|
1167
|
+
netAmount?: number | undefined;
|
|
1168
|
+
/** If this is a relative / percentage allowance, this should be set
|
|
1169
|
+
and give the base amount that is being used for the calculation */
|
|
1170
|
+
relativeAllowanceBaseAmount?: number | undefined;
|
|
1171
|
+
/** If this is a relative / percentage allowance, this should be set
|
|
1172
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
1173
|
+
relativeAllowancePercentage?: number | undefined;
|
|
1174
|
+
/** A description of the allowance. */
|
|
1175
|
+
reason?: string | undefined;
|
|
1176
|
+
/** A reason code for the allowance according to UNTDID 5189. Should be a code
|
|
1177
|
+
from this list: https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm */
|
|
1178
|
+
reasonCode?: string | undefined;
|
|
1179
|
+
/** A reason type for the allowance according to UNTDID 5189. This will be automatically parsed from ReasonCode
|
|
1180
|
+
and is a read-only property. */
|
|
1181
|
+
reasonType?: AllowanceReasonType | undefined;
|
|
1182
|
+
}
|
|
1183
|
+
/** Charge for a single line item */
|
|
1184
|
+
interface LineItemCharge {
|
|
1185
|
+
/** The net amount of the charge */
|
|
1186
|
+
netAmount?: number | undefined;
|
|
1187
|
+
/** If this is a relative / percentage charge, this should be set
|
|
1188
|
+
and give the base amount that is being used for the calculation */
|
|
1189
|
+
relativeChargeBaseAmount?: number | undefined;
|
|
1190
|
+
/** If this is a relative / percentage charge, this should be set
|
|
1191
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
1192
|
+
relativeChargePercentage?: number | undefined;
|
|
1193
|
+
/** A description of the charge. */
|
|
1194
|
+
reason?: string | undefined;
|
|
1195
|
+
/** A reason code for the charge according to UNTDID 7161.
|
|
1196
|
+
See this list: https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred7161.htm */
|
|
1197
|
+
reasonCode?: string | undefined;
|
|
1198
|
+
/** A reason type for the charge according to UNTDID 7161. This will be automatically parsed from ReasonCode
|
|
1199
|
+
and is a read-only property. */
|
|
1200
|
+
reasonType?: ChargeReasonType | undefined;
|
|
1201
|
+
}
|
|
1202
|
+
/** Price details about a line item */
|
|
1203
|
+
interface LineItemPriceDetail {
|
|
1204
|
+
/** The net price of this line item. This is the unit price */
|
|
1205
|
+
netPrice?: number | undefined;
|
|
1206
|
+
/** A discount for this line item, given as an absolute value. It is essentially the difference between NetPrice (or the list price)
|
|
1207
|
+
and the actual invoiced price GrossPrice. */
|
|
1208
|
+
absoluteDiscountPerItem?: number | undefined;
|
|
1209
|
+
/** The gross price of this line item, meaning the price without taxes
|
|
1210
|
+
that will be invoiced */
|
|
1211
|
+
grossPrice?: number | undefined;
|
|
1212
|
+
/** The quantity for which this price is valid. In combination with the NetPrice,
|
|
1213
|
+
you basically specify the denominator of the unit price for a line item. */
|
|
1214
|
+
baseQuantity?: number | undefined;
|
|
1215
|
+
/** A code representing the unit for the base quantity */
|
|
1216
|
+
baseQuantityUnitCode?: string | undefined;
|
|
1217
|
+
}
|
|
1218
|
+
/** VAT information for a single line item */
|
|
1219
|
+
interface LineItemVatInformation {
|
|
1220
|
+
/** The VAT category for the charge */
|
|
1221
|
+
vatCategory?: VatCategory | undefined;
|
|
1222
|
+
/** The actual tax rate as a decimal value,
|
|
1223
|
+
meaning 19% would be 0.19 */
|
|
1224
|
+
vatRate?: number | undefined;
|
|
1225
|
+
}
|
|
1226
|
+
/** Information about a single line item */
|
|
1227
|
+
interface LineItemInformation {
|
|
1228
|
+
/** A name for the line item */
|
|
1229
|
+
name?: string | undefined;
|
|
1230
|
+
/** A description for the line item */
|
|
1231
|
+
description?: string | undefined;
|
|
1232
|
+
/** An identifier assigned by the seller, e.g. an internal article number */
|
|
1233
|
+
sellerIdentifier?: string | undefined;
|
|
1234
|
+
/** An identifier assigned by the buyer, e.g. an internal article number */
|
|
1235
|
+
buyerIdentifier?: string | undefined;
|
|
1236
|
+
/** A standard identifier for the line item, e.g. an EAN or a GTIN */
|
|
1237
|
+
standardIdentifier?: string | undefined;
|
|
1238
|
+
/** If used together with StandardIdentifier, this is the scheme identifier
|
|
1239
|
+
for which standard is used. */
|
|
1240
|
+
standardSchemeId?: string | undefined;
|
|
1241
|
+
/** A list of classification identifiers for the line item. You can further use ClassificationTypes to specify the scheme identifier for each classification identifier. */
|
|
1242
|
+
classificationIdentifiers?: string[] | undefined;
|
|
1243
|
+
/** This is used in connection with ClassificationIdentifiers. It is the scheme identifier
|
|
1244
|
+
for each identifier. If this list is used, it should have the same length as ClassificationIdentifiers, with null or empty values used
|
|
1245
|
+
for non-existing scheme identifiers. */
|
|
1246
|
+
classificationTypes?: string[] | undefined;
|
|
1247
|
+
/** The origin country code according to ISO 3166-1 in 2 letter format */
|
|
1248
|
+
countryOfOrigin?: string | undefined;
|
|
1249
|
+
/** Optional additional attributes for this line item */
|
|
1250
|
+
attributes?: LineItemAttribute[] | undefined;
|
|
1251
|
+
}
|
|
1252
|
+
/** A key-value pair for additional information */
|
|
1253
|
+
interface LineItemAttribute {
|
|
1254
|
+
/** The key / name of the attribute */
|
|
1255
|
+
name?: string | undefined;
|
|
1256
|
+
/** The value of the attribute */
|
|
1257
|
+
value?: string | undefined;
|
|
1258
|
+
}
|
|
1259
|
+
/** This enum represents the source of an invoice, e.g. from which format it was imported */
|
|
1260
|
+
declare enum SourceType {
|
|
1261
|
+
Self = 0,
|
|
1262
|
+
Ubl = 1,
|
|
1263
|
+
Cii = 2,
|
|
1264
|
+
FacturX = 3
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
type InvoiceTitleMap = {
|
|
1268
|
+
[K in InvoiceType]: string;
|
|
1269
|
+
};
|
|
1270
|
+
interface ITextWordInvoice {
|
|
1271
|
+
invoiceTitle: InvoiceTitleMap;
|
|
1272
|
+
invoiceBuyerTitle: string;
|
|
1273
|
+
invoiceSellerTitle: string;
|
|
1274
|
+
vatId: string;
|
|
1275
|
+
detailsInvoiceNumber: string;
|
|
1276
|
+
detailsInvoiceDate: string;
|
|
1277
|
+
detailsPaymentDueDate: string;
|
|
1278
|
+
detailsCurrencyCode: string;
|
|
1279
|
+
detailsPaymentTerms: string;
|
|
1280
|
+
referencesTopic: string;
|
|
1281
|
+
referencesBuyerReference: string;
|
|
1282
|
+
referencesProjectReference: string;
|
|
1283
|
+
referencesContractReference: string;
|
|
1284
|
+
referencesPurchaseOrderReference: string;
|
|
1285
|
+
referencesSalesOrderReference: string;
|
|
1286
|
+
referencesReceivingAdviceReference: string;
|
|
1287
|
+
referencesDispatchAdviceReference: string;
|
|
1288
|
+
referencesTenderOrLotReference: string;
|
|
1289
|
+
referencesInvoicedObjectIdentifier: string;
|
|
1290
|
+
tableHeadDescription: string;
|
|
1291
|
+
tableHeadQuantity: string;
|
|
1292
|
+
tableHeadUnit: string;
|
|
1293
|
+
tableHeadNetPrice: string;
|
|
1294
|
+
tableHeadNetAmount: string;
|
|
1295
|
+
totalsTopic: string;
|
|
1296
|
+
totalsTotalNet: string;
|
|
1297
|
+
totalsTotalAllowances: string;
|
|
1298
|
+
totalsTotalCharges: string;
|
|
1299
|
+
totalsTotalAfterDeductions: string;
|
|
1300
|
+
totalsTotalVatAmount: string;
|
|
1301
|
+
totalsTotalGross: string;
|
|
1302
|
+
totalsAlreadyPaidTotal: string;
|
|
1303
|
+
totalsTotalToBePaid: string;
|
|
1304
|
+
instructionsTopic: string;
|
|
1305
|
+
instructionsAccountIdentifier: string;
|
|
1306
|
+
instructionsAccountName: string;
|
|
1307
|
+
instructionsServiceProviderIdentifier: string;
|
|
1308
|
+
notesTopic: string;
|
|
1309
|
+
attachmentsHeading: string;
|
|
1310
|
+
attachmentsName: string;
|
|
1311
|
+
attachmentsDescription: string;
|
|
1312
|
+
attachmentsUrl: string;
|
|
1313
|
+
attachmentsDataSize: string;
|
|
1314
|
+
attachmentsMimeType: string;
|
|
1315
|
+
attachmentsFileName: string;
|
|
1316
|
+
attachmentsDownloadButton: string;
|
|
1317
|
+
contactPersonName: string;
|
|
1318
|
+
contactPersonPhone: string;
|
|
1319
|
+
contactPersonEmail: string;
|
|
1320
|
+
vat: string;
|
|
1321
|
+
taxRate: string;
|
|
1322
|
+
taxesHeading: string;
|
|
1323
|
+
deliveryInformationTitle: string;
|
|
1324
|
+
deliverToName: string;
|
|
1325
|
+
deliverToLocationIdentifier: string;
|
|
1326
|
+
deliveryDate: string;
|
|
1327
|
+
deliveryAddress: string;
|
|
1328
|
+
invoiceAllowancesHeader: string;
|
|
1329
|
+
invoiceAllowancesTableHeaderSum: string;
|
|
1330
|
+
invoiceAllowancesTableHeaderVatRate: string;
|
|
1331
|
+
invoiceAllowancesTableHeaderAllowance: string;
|
|
1332
|
+
invoiceAllowancesTableHeaderBase: string;
|
|
1333
|
+
invoiceChargesHeader: string;
|
|
1334
|
+
invoiceChargesTableHeaderSum: string;
|
|
1335
|
+
invoiceChargesTableHeaderVatRate: string;
|
|
1336
|
+
invoiceChargesTableHeaderCharge: string;
|
|
1337
|
+
invoiceChargesTableHeaderBase: string;
|
|
1338
|
+
lineItemDiscount: string;
|
|
1339
|
+
lineItemCharges: string;
|
|
1340
|
+
lineItemAllowances: string;
|
|
1341
|
+
lineItemReason: string;
|
|
1342
|
+
invoiceSellerTaxRepresentativeTitle: string;
|
|
1343
|
+
previousInvoicesTopic: string;
|
|
1344
|
+
previousInvoiceNumber: string;
|
|
1345
|
+
previousInvoiceDate: string;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
interface IConfigurationInvoice {
|
|
1349
|
+
textWords?: ITextWordInvoice | null;
|
|
1350
|
+
pdfViewEnabled?: boolean;
|
|
1351
|
+
language?: LanguageType;
|
|
1352
|
+
quantityDecimalPlaces?: string;
|
|
1353
|
+
colorSettings?: IColorSettings | null;
|
|
1354
|
+
alignmentOptions?: IAlignmentOptions;
|
|
1355
|
+
}
|
|
1356
|
+
interface IAlignmentOptions {
|
|
1357
|
+
previousInvoiceAlignment: 'left' | 'center' | 'right';
|
|
1358
|
+
}
|
|
1359
|
+
interface IColorSettings {
|
|
1360
|
+
backgroundColor: string;
|
|
1361
|
+
textColor: string;
|
|
1362
|
+
}
|
|
1363
|
+
type LanguageType = 'en' | 'de';
|
|
1364
|
+
|
|
1365
|
+
interface IFunctionViewLine {
|
|
1366
|
+
name: string;
|
|
1367
|
+
func: (element: IElementDto) => boolean;
|
|
1368
|
+
view: IViewLine;
|
|
1369
|
+
}
|
|
1370
|
+
interface IViewLine {
|
|
1371
|
+
iconName?: string;
|
|
1372
|
+
iconColor?: string;
|
|
1373
|
+
textBold?: string;
|
|
1374
|
+
textColor?: string;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
interface SelectedElement {
|
|
1378
|
+
elementId: string;
|
|
1379
|
+
children?: SelectedElement[] | null;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
type TableColumnType = {
|
|
1383
|
+
name: string;
|
|
1384
|
+
title: string;
|
|
1385
|
+
align?: string;
|
|
1386
|
+
numberFormat?: string;
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
interface ITextWords {
|
|
1390
|
+
language: LanguageType;
|
|
1391
|
+
textSearch: string;
|
|
1392
|
+
textNothing: string;
|
|
1393
|
+
textNothingFiltered: string;
|
|
1394
|
+
textAll: string;
|
|
1395
|
+
tooltipAllOpen: string;
|
|
1396
|
+
tooltipAllClose: string;
|
|
1397
|
+
tooltipAllAdd: string;
|
|
1398
|
+
tooltipAllRemove: string;
|
|
1399
|
+
defaultNameNoteText: string;
|
|
1400
|
+
defaultNameDescription: string;
|
|
1401
|
+
defaultNameGroup: string;
|
|
1402
|
+
defaultNamePosition: string;
|
|
1403
|
+
}
|
|
1404
|
+
declare const DEFAULT_TEXT_WORDS: ITextWords;
|
|
1405
|
+
declare const germanTextsAva: ITextWords;
|
|
1406
|
+
|
|
1407
|
+
interface IKeyboardOperationConfig {
|
|
1408
|
+
operations: IKeyboardOperations;
|
|
1409
|
+
}
|
|
1410
|
+
declare enum KeyboardOperationType {
|
|
1411
|
+
MoveSelectedPositionUp = "moveSelectedPositionUp",
|
|
1412
|
+
MoveSelectedPositionDown = "moveSelectedPositionDown",
|
|
1413
|
+
MoveChosenPositionDown = "moveChosenPositionDown",
|
|
1414
|
+
MoveChosenPositionUp = "moveChosenPositionUp",
|
|
1415
|
+
ClearChosenPosition = "clearChosenPosition",
|
|
1416
|
+
SelectChosenPosition = "selectChosenPosition"
|
|
1417
|
+
}
|
|
1418
|
+
type IKeyboardOperations = {
|
|
1419
|
+
[key in KeyboardOperationType]?: IKeyboardOperation;
|
|
1420
|
+
};
|
|
1421
|
+
interface IKeyboardOperation {
|
|
1422
|
+
disabled?: boolean;
|
|
1423
|
+
keyEvent?: string;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
interface IConfigurationTree {
|
|
1427
|
+
/**
|
|
1428
|
+
* Optional, defaults to 20px. If this is set, then the tree will be indented by the given value each level.
|
|
1429
|
+
* This can be any valid CSS value for the padding-left property, such as 20px, 1em, or 5%.
|
|
1430
|
+
*/
|
|
1431
|
+
indent?: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* Optional, you can supply a color to be used as the background color for the selected line. Defaults to the primary
|
|
1434
|
+
* color from the Material theme, which is #00acc1.
|
|
1435
|
+
*/
|
|
1436
|
+
selectedColor?: string;
|
|
1437
|
+
/**
|
|
1438
|
+
* Optional, defaults to true. If this is disabled, then the double click event for elements is not raised, and clicking on an elemt sends an immediate result since the component has not to wait and check if a double click event is fired.
|
|
1439
|
+
*/
|
|
1440
|
+
allowDblClick?: boolean;
|
|
1441
|
+
/**
|
|
1442
|
+
* If this is set to true, then the tree will be in selection mode, and the user can select elements by clicking on them. The selected elements will be emitted in the selectedElementsChanged event.
|
|
1443
|
+
*/
|
|
1444
|
+
isSelectionMode?: boolean;
|
|
1445
|
+
/**
|
|
1446
|
+
* You can optionally supply a list of elements that should be selected initially. This is only used if isSelectionMode is true.
|
|
1447
|
+
*/
|
|
1448
|
+
initiallySelectedElements?: SelectedElement[];
|
|
1449
|
+
/**
|
|
1450
|
+
* You can supply a map of strings to be used for the text in the tree. This allows you to translate the text in the tree to other languages. There are also 'DEFAULT_TEXT_WORDS' and 'germanTextsAva' supplied with the package. You may optionally just submit the string values 'en' or 'de' to use the default text words for English or German.
|
|
1451
|
+
*/
|
|
1452
|
+
textWords?: ITextWords | LanguageType;
|
|
1453
|
+
/**
|
|
1454
|
+
* Defaults to true. If this is enabled, then navigating in the tree with the keyboard only works if the mouse is over the tree area. This limitation is useful if you have multiple trees or other components that might be using keyboard input.
|
|
1455
|
+
*/
|
|
1456
|
+
mouseAwareKeyboardControl?: boolean;
|
|
1457
|
+
/**
|
|
1458
|
+
* With this parameter, you can configure which keys will be listenend to to switch the tree elements, and also to disable the functionality of the keys
|
|
1459
|
+
*/
|
|
1460
|
+
customKeyboardOperationConfig?: IKeyboardOperationConfig | null;
|
|
1461
|
+
/**
|
|
1462
|
+
* You can supply custom filters that are processed when the filter input is changed. Default filters are used that check for short text and item number matches, and you can either add custom filters or replace the default ones.
|
|
1463
|
+
*/
|
|
1464
|
+
listFilterFunc?: FilterFunction[];
|
|
1465
|
+
/**
|
|
1466
|
+
* Optional. For table views, this allows you to add custom columns to the table.
|
|
1467
|
+
* addTableColumns: Array of objects
|
|
1468
|
+
* {
|
|
1469
|
+
* name: string, // name of column
|
|
1470
|
+
* title: string, // showed title of column
|
|
1471
|
+
* align?: string, // optional alight: left(default) / center / right
|
|
1472
|
+
* numberFormat?: string // optional format of number value, example: '1.2-2'
|
|
1473
|
+
* }
|
|
1474
|
+
*/
|
|
1475
|
+
addTableColumns?: TableColumnType[];
|
|
1476
|
+
/**
|
|
1477
|
+
* This allows you to supply a list of functions that can be used to change the appearance of elements.
|
|
1478
|
+
* They objects contain a predicate function that is evaluated, along with an option to configure the appearance of the element.
|
|
1479
|
+
* functionView: Array of objects
|
|
1480
|
+
* {
|
|
1481
|
+
* name: string, // name of view part: you can add/remove it when needed
|
|
1482
|
+
* func: (element: any, result?: any) => boolean, // this filter function calculates conditions to change the view
|
|
1483
|
+
* view: {
|
|
1484
|
+
* iconName?: string, // changed name of icon
|
|
1485
|
+
* iconColor?: string, // changed color of icon
|
|
1486
|
+
* textBold?: string, // changed weight of text
|
|
1487
|
+
* textColor?: string // changed color of text
|
|
1488
|
+
* }
|
|
1489
|
+
* }
|
|
1490
|
+
*/
|
|
1491
|
+
functionView?: IFunctionViewLine[];
|
|
1492
|
+
}
|
|
1493
|
+
type FilterFunction = (element: IElementDto, filter: string) => boolean | undefined | null;
|
|
1494
|
+
|
|
1495
|
+
type ContextMenuDataType = {
|
|
1496
|
+
position: {
|
|
1497
|
+
x: string;
|
|
1498
|
+
y: string;
|
|
1499
|
+
};
|
|
1500
|
+
node: IElementDto;
|
|
1501
|
+
};
|
|
1502
|
+
|
|
1503
|
+
declare enum ModeViewType {
|
|
1504
|
+
Tree = "Tree",
|
|
1505
|
+
List = "List",
|
|
1506
|
+
Table = "Table"
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
declare const version: {
|
|
1510
|
+
version: string;
|
|
1511
|
+
commitInfo: string;
|
|
1512
|
+
commitDate: string;
|
|
1513
|
+
commitHash: string;
|
|
1514
|
+
informationalVersion: string;
|
|
1515
|
+
buildDateUtc: Date;
|
|
1516
|
+
};
|
|
1517
|
+
|
|
1518
|
+
interface IExpansionState {
|
|
1519
|
+
[id: string]: boolean;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
declare class AvaTreeComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
1523
|
+
private flatElementsService;
|
|
1524
|
+
private selectElementService;
|
|
1525
|
+
private treeNodeSelectionService;
|
|
1526
|
+
private expandParentGroupService;
|
|
1527
|
+
private keyboardOperationService;
|
|
1528
|
+
private configurationTreeService;
|
|
1529
|
+
private readonly injector;
|
|
1530
|
+
private transformFn;
|
|
1531
|
+
/**
|
|
1532
|
+
* This is the main data element for the tree structure. You should supply a ProjectDto with
|
|
1533
|
+
* exactly one service specification in it.
|
|
1534
|
+
*/
|
|
1535
|
+
project: _angular_core.InputSignalWithTransform<ProjectDto | null, ProjectDto>;
|
|
1536
|
+
/**
|
|
1537
|
+
* Optionally, you can supply a map of expansion states for the tree. The keys should be the
|
|
1538
|
+
* id properties of the elements in the tree, and the values should be true if the element is
|
|
1539
|
+
* expanded, and false if it is collapsed.
|
|
1540
|
+
*/
|
|
1541
|
+
readonly expansionstate: _angular_core.InputSignalWithTransform<IExpansionState | null, IExpansionState>;
|
|
1542
|
+
/**
|
|
1543
|
+
* Optionally, you can supply the id of the node that should be selected in the tree initially.
|
|
1544
|
+
*/
|
|
1545
|
+
readonly selectednodeid: _angular_core.InputSignal<string | null>;
|
|
1546
|
+
/**
|
|
1547
|
+
* You can specify which view type to use for the tree. The default is ModeViewType.Tree, but you can also use
|
|
1548
|
+
* ModeViewType.List or ModeViewType.Table.
|
|
1549
|
+
*/
|
|
1550
|
+
readonly modeview: _angular_core.InputSignal<ModeViewType>;
|
|
1551
|
+
/**
|
|
1552
|
+
* You can optionally supply a list of elements that should be selected initially. This is only used if
|
|
1553
|
+
* isSelectionMode is true.
|
|
1554
|
+
*/
|
|
1555
|
+
private initiallySelectedElements;
|
|
1556
|
+
/**
|
|
1557
|
+
* You can supply a map of strings to be used for the text in the tree. This allows you to translate
|
|
1558
|
+
* the text in the tree to other languages.
|
|
1559
|
+
* {
|
|
1560
|
+
* textSearch: string,
|
|
1561
|
+
* textNothing: string,
|
|
1562
|
+
* textNothingFiltered: string,
|
|
1563
|
+
* textAll: string,
|
|
1564
|
+
* tooltipAllOpen: string,
|
|
1565
|
+
* tooltipAllClose: string,
|
|
1566
|
+
* tooltipAllAdd:string,
|
|
1567
|
+
* tooltipAllRemove: string,
|
|
1568
|
+
* }
|
|
1569
|
+
*/
|
|
1570
|
+
readonly textWords$: Observable<ITextWords | null>;
|
|
1571
|
+
readonly isSelectionMode$: Observable<boolean>;
|
|
1572
|
+
private isSelectionMode;
|
|
1573
|
+
/**
|
|
1574
|
+
* Defaults to true. If this is enabled, then navigating in the tree with the keyboard only works
|
|
1575
|
+
* if the mouse is over the tree area. This limitation is useful if you have multiple trees or other components
|
|
1576
|
+
* that might be using keyboard input.
|
|
1577
|
+
*/
|
|
1578
|
+
private mouseAwareKeyboardControl;
|
|
1579
|
+
/**
|
|
1580
|
+
* With this parameter, you can configure which keys will be listenend to switch the tree elements,
|
|
1581
|
+
* and also to disable the functionality of the keys */
|
|
1582
|
+
private set customKeyboardOperationConfig(value);
|
|
1583
|
+
readonly config: _angular_core.InputSignalWithTransform<IConfigurationTree | null, IConfigurationTree>;
|
|
1584
|
+
/**
|
|
1585
|
+
* This is emitted when an element is selected by clicking on it. The selected element is emitted as the event value.
|
|
1586
|
+
*/
|
|
1587
|
+
selectClick: _angular_core.OutputEmitterRef<IElementDto | null>;
|
|
1588
|
+
/**
|
|
1589
|
+
* This is emitted when an element is selected by double clicking on it. The selected element is emitted as the event value.
|
|
1590
|
+
*/
|
|
1591
|
+
selectDblClick: _angular_core.OutputEmitterRef<IElementDto>;
|
|
1592
|
+
/**
|
|
1593
|
+
* This is emitted when an element is selected by right clicking on it. The selected element is emitted as the event value.
|
|
1594
|
+
*/
|
|
1595
|
+
contextMenuEvent: _angular_core.OutputEmitterRef<ContextMenuDataType>;
|
|
1596
|
+
/**
|
|
1597
|
+
* This is emitted when the selected elements in the tree are changed. The selected elements are emitted as the event value.
|
|
1598
|
+
* Selected elements are elements whose checkboxes are checked, and are different than elements that are in an active selection state.
|
|
1599
|
+
* Typcial use cases for this include e.g. selecting multiple elements within a service specification without
|
|
1600
|
+
* actually focussing them, e.g. for further processing.
|
|
1601
|
+
*/
|
|
1602
|
+
selectedElementsChanged: _angular_core.OutputEmitterRef<SelectedElement[]>;
|
|
1603
|
+
avaTreeWrapper: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
1604
|
+
avaMainWrapper: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
1605
|
+
avaTreeFilterInput: _angular_core.Signal<ElementRef<HTMLInputElement>>;
|
|
1606
|
+
private selectedElement;
|
|
1607
|
+
serviceSpecification: _angular_core.WritableSignal<_dangl_ava_model.ServiceSpecificationDto | null>;
|
|
1608
|
+
private isEmiteSelectedElements;
|
|
1609
|
+
private selectingElementsTreeData;
|
|
1610
|
+
flatElements: IElementDto[] | null;
|
|
1611
|
+
preselectedElement: IElementDto | null;
|
|
1612
|
+
filterInput: string;
|
|
1613
|
+
listModeViewType: typeof ModeViewType;
|
|
1614
|
+
private filter;
|
|
1615
|
+
private $filter;
|
|
1616
|
+
filteredElementList: IElementDto[];
|
|
1617
|
+
private $destroy;
|
|
1618
|
+
private cdr;
|
|
1619
|
+
ngOnInit(): void;
|
|
1620
|
+
ngAfterViewInit(): void;
|
|
1621
|
+
ngOnDestroy(): void;
|
|
1622
|
+
private handleGlobalKeyboardEvent;
|
|
1623
|
+
private showElement;
|
|
1624
|
+
private scrollLine;
|
|
1625
|
+
private correctScrollTableLine;
|
|
1626
|
+
expandParentGroups(element: IElementDto): void;
|
|
1627
|
+
onFilter(value: string): void;
|
|
1628
|
+
changeAllElementsExpansionStatus(isExpanded: boolean): void;
|
|
1629
|
+
private formSelectingList;
|
|
1630
|
+
selectOrDeselectAll(value: boolean): void;
|
|
1631
|
+
private getFilteredList;
|
|
1632
|
+
private initializeEventListeners;
|
|
1633
|
+
private selectElementById;
|
|
1634
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AvaTreeComponent, never>;
|
|
1635
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": true; "isSignal": true; }; "expansionstate": { "alias": "expansionstate"; "required": false; "isSignal": true; }; "selectednodeid": { "alias": "selectednodeid"; "required": false; "isSignal": true; }; "modeview": { "alias": "modeview"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
declare const DEFAULT_FILTERS: FilterFunction[];
|
|
1639
|
+
|
|
1640
|
+
declare const defaults: {
|
|
1641
|
+
doubleClickTimeoutInMilliseconds: number;
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
declare class ConfigurationInvoiceService {
|
|
1645
|
+
private _language;
|
|
1646
|
+
private _textWords;
|
|
1647
|
+
private _pdfViewEnabled;
|
|
1648
|
+
private _quantityDecimalPlaces;
|
|
1649
|
+
private _currencyCode;
|
|
1650
|
+
private _colorSettings;
|
|
1651
|
+
private _alignmentOptions;
|
|
1652
|
+
private invoiceConfigSource;
|
|
1653
|
+
invoiceConfig$: Observable<IConfigurationInvoice>;
|
|
1654
|
+
constructor();
|
|
1655
|
+
setInvoiceConfig(value: IConfigurationInvoice): void;
|
|
1656
|
+
getCurrentInvoiceConfig(): IConfigurationInvoice;
|
|
1657
|
+
getTextWordsFromConfig(): Observable<ITextWordInvoice | null>;
|
|
1658
|
+
getPdfViewEnabledFromConfig(): Observable<boolean>;
|
|
1659
|
+
getAlignmentOptionsFromConfig(): Observable<IAlignmentOptions | null>;
|
|
1660
|
+
private getDefaultInvoiceConfiguration;
|
|
1661
|
+
getColorSettingsFromConfig(): Observable<IColorSettings | null>;
|
|
1662
|
+
getDefaultTextWords(languageWord: LanguageType): ITextWordInvoice;
|
|
1663
|
+
get locale(): string;
|
|
1664
|
+
set quantityDecimalPlaces(value: string);
|
|
1665
|
+
get quantityDecimalPlaces(): string;
|
|
1666
|
+
set currencyCode(value: string);
|
|
1667
|
+
get currencyCode(): string;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
declare class InvoiceDisplayComponent implements OnInit {
|
|
1671
|
+
configurationInvoiceService: ConfigurationInvoiceService;
|
|
1672
|
+
private transformFn;
|
|
1673
|
+
readonly invoice: _angular_core.InputSignalWithTransform<Invoice | null, Invoice>;
|
|
1674
|
+
readonly colorSettings$: Observable<IColorSettings | null>;
|
|
1675
|
+
readonly textWords$: Observable<ITextWordInvoice | null>;
|
|
1676
|
+
readonly pdfViewEnabled$: Observable<boolean>;
|
|
1677
|
+
readonly alignmentOptions$: Observable<IAlignmentOptions | null>;
|
|
1678
|
+
private readonly currencyCode;
|
|
1679
|
+
/**
|
|
1680
|
+
* You can supply a map of strings to be used for the text in the tree. This allows you to translate
|
|
1681
|
+
* the text in the tree to other languages.
|
|
1682
|
+
* {
|
|
1683
|
+
* invoiceTitle: string;
|
|
1684
|
+
* vatId: string;
|
|
1685
|
+
* detailsInvoiceNumber: string;
|
|
1686
|
+
* detailsInvoiceDate: string;
|
|
1687
|
+
* detailsPaymentDueDate: string;
|
|
1688
|
+
* detailsCurrencyCode: string;
|
|
1689
|
+
* detailsPaymentTerms: string;
|
|
1690
|
+
* referencesTopic: string;
|
|
1691
|
+
* referencesBuyerReference: string;
|
|
1692
|
+
* referencesProjectReference: string;
|
|
1693
|
+
* referencesContractReference: string;
|
|
1694
|
+
* referencesPurchaseOrderReference: string;
|
|
1695
|
+
* referencesSalesOrderReference: string;
|
|
1696
|
+
* referencesReceivingAdviceReference: string;
|
|
1697
|
+
* referencesDispatchAdviceReference: string;
|
|
1698
|
+
* referencesTenderOrLotReference: string;
|
|
1699
|
+
* referencesInvoicedObjectIdentifier: string;
|
|
1700
|
+
* tableHeadDescription: string;
|
|
1701
|
+
* tableHeadQuantity: string;
|
|
1702
|
+
* tableHeadUnit: string;
|
|
1703
|
+
* tableHeadNetPrice: string;
|
|
1704
|
+
* tableHeadNetAmount: string;
|
|
1705
|
+
* totalsTopic: string;
|
|
1706
|
+
* totalsTotalNet: string;
|
|
1707
|
+
* totalsTotalAllowances: string;
|
|
1708
|
+
* totalsTotalCharges: string;
|
|
1709
|
+
* totalsTotalAfterDeductions: string;
|
|
1710
|
+
* totalsTotalVatAmount: string;
|
|
1711
|
+
* totalsTotalGross: string;
|
|
1712
|
+
* totalsAlreadyPaidTotal: string;
|
|
1713
|
+
* totalsTotalToBePaid: string;
|
|
1714
|
+
* instructionsTopic: string;
|
|
1715
|
+
* instructionsAccountIdentifier: string;
|
|
1716
|
+
* instructionsAccountName: string;
|
|
1717
|
+
* instructionsServiceProviderIdentifier: string;
|
|
1718
|
+
* notesTopic: string;
|
|
1719
|
+
* attachmentsHeading: string;
|
|
1720
|
+
* attachmentsName: string;
|
|
1721
|
+
* attachmentsDescription: string;
|
|
1722
|
+
* attachmentsUrl: string;
|
|
1723
|
+
* attachmentsDataSize: string;
|
|
1724
|
+
* attachmentsMimeType: string;
|
|
1725
|
+
* attachmentsFileName: string;
|
|
1726
|
+
* attachmentsDownloadButton: string;
|
|
1727
|
+
*
|
|
1728
|
+
* }
|
|
1729
|
+
*/
|
|
1730
|
+
readonly config: _angular_core.InputSignalWithTransform<IConfigurationInvoice | null, IConfigurationInvoice>;
|
|
1731
|
+
private readonly linkedConfig;
|
|
1732
|
+
invoiceTitle: _angular_core.WritableSignal<string>;
|
|
1733
|
+
private destroyRef;
|
|
1734
|
+
constructor();
|
|
1735
|
+
ngOnInit(): void;
|
|
1736
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InvoiceDisplayComponent, never>;
|
|
1737
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
declare const DEFAULT_TEXT_WORD_INVOICE: ITextWordInvoice;
|
|
1741
|
+
declare const germanTextsInvoice: ITextWordInvoice;
|
|
1742
|
+
|
|
1743
|
+
declare const DEFAULT_DIGITS_INFO: string;
|
|
1744
|
+
declare const DEFAULT_CURRENCY_CODE: string;
|
|
1745
|
+
declare const DEFAULT_LANGUAGE: LanguageType;
|
|
1746
|
+
declare const localeTypes: {
|
|
1747
|
+
en: string;
|
|
1748
|
+
de: string;
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
export { AttachmentMimeType, AvaTreeComponent, DEFAULT_CURRENCY_CODE, DEFAULT_DIGITS_INFO, DEFAULT_FILTERS, DEFAULT_LANGUAGE, DEFAULT_TEXT_WORDS, DEFAULT_TEXT_WORD_INVOICE, InvoiceDisplayComponent, InvoiceType, ModeViewType, VatCategory, defaults, germanTextsAva, germanTextsInvoice, localeTypes, version };
|
|
1752
|
+
export type { ContextMenuDataType, IConfigurationInvoice, IConfigurationTree, IFunctionViewLine, ITextWordInvoice, IViewLine, Invoice, InvoiceAllowance, InvoiceCharge, InvoiceLineItem, InvoiceNote, InvoicePeriod, InvoiceTotals, LanguageType, LineItemAllowance, LineItemAttribute, LineItemCharge, LineItemInformation, LineItemPriceDetail, LineItemVatInformation, Organization, Payee, PaymentInstructions, PaymentMeans, PreviousInvoice, References, SelectedElement, SupportingDocument, TableColumnType, VatBreakdown };
|