@dangl/angular-ava 1.4.4 → 1.4.5-beta0015
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/fesm2022/dangl-angular-ava.mjs +857 -100
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/index.d.ts +2915 -5
- package/package.json +1 -1
- package/lib/ava-tree/components/ava-tree/ava-tree.component.d.ts +0 -128
- package/lib/ava-tree/components/list-structure/list-structure.component.d.ts +0 -20
- package/lib/ava-tree/components/table-structure/table-structure.component.d.ts +0 -37
- package/lib/ava-tree/components/tree-item/tree-item.component.d.ts +0 -40
- package/lib/ava-tree/components/tree-node/tree-node.component.d.ts +0 -25
- package/lib/ava-tree/constants/defaultFilters.d.ts +0 -2
- package/lib/ava-tree/constants/defaultTextWords.d.ts +0 -18
- package/lib/ava-tree/constants/defaults.d.ts +0 -3
- package/lib/ava-tree/constants/index.d.ts +0 -4
- package/lib/ava-tree/directives/hover-effect.directive.d.ts +0 -18
- package/lib/ava-tree/directives/save-changing-view.directive.d.ts +0 -20
- package/lib/ava-tree/model/ava-models.d.ts +0 -1034
- package/lib/ava-tree/model/config-tree.model.d.ts +0 -75
- package/lib/ava-tree/model/context-menu-data.model.d.ts +0 -8
- package/lib/ava-tree/model/function-view-line.model.d.ts +0 -12
- package/lib/ava-tree/model/index.d.ts +0 -8
- package/lib/ava-tree/model/selecting.model.d.ts +0 -14
- package/lib/ava-tree/model/tableColumnType.d.ts +0 -6
- package/lib/ava-tree/model/tree-mode.model.d.ts +0 -5
- package/lib/ava-tree/pipes/element-icon-name.pipe.d.ts +0 -8
- package/lib/ava-tree/pipes/element-item-number.pipe.d.ts +0 -8
- package/lib/ava-tree/pipes/element-text.pipe.d.ts +0 -9
- package/lib/ava-tree/pipes/group-child-elements.pipe.d.ts +0 -8
- package/lib/ava-tree/services/configuration-tree.service.d.ts +0 -40
- package/lib/ava-tree/services/expand-parent-group.service.d.ts +0 -11
- package/lib/ava-tree/services/flat-elements.service.d.ts +0 -27
- package/lib/ava-tree/services/keyboard-operation.service.d.ts +0 -35
- package/lib/ava-tree/services/select-element.service.d.ts +0 -28
- package/lib/ava-tree/services/tree-hover-tooltip.service.d.ts +0 -4
- package/lib/ava-tree/services/tree-node-selection.service.d.ts +0 -26
- package/lib/invoice/components/invoice-display/invoice-display.component.d.ts +0 -73
- package/lib/invoice/components/invoice-documents/invoice-documents.component.d.ts +0 -26
- package/lib/invoice/components/invoice-line-item-additional-info/invoice-line-item-additional-info.component.d.ts +0 -11
- package/lib/invoice/components/invoice-line-items-table/invoice-line-items-table.component.d.ts +0 -25
- package/lib/invoice/components/reference-and-delivery-information/reference-and-delivery-information.component.d.ts +0 -14
- package/lib/invoice/constants/defaultTextWordInvoice.d.ts +0 -3
- package/lib/invoice/constants/index.d.ts +0 -3
- package/lib/invoice/constants/language.d.ts +0 -8
- package/lib/invoice/model/configInvoice.model.d.ts +0 -13
- package/lib/invoice/model/index.d.ts +0 -4
- package/lib/invoice/model/invoice-models.d.ts +0 -527
- package/lib/invoice/model/invoice-words.model.d.ts +0 -73
- package/lib/invoice/pipes/currency-plus.pipe.d.ts +0 -11
- package/lib/invoice/pipes/invoice-attachment-mime-type.pipe.d.ts +0 -8
- package/lib/invoice/pipes/number-plus.pipe.d.ts +0 -11
- package/lib/invoice/pipes/percent-plus.pipe.d.ts +0 -11
- package/lib/invoice/services/configuration-invoice.service.d.ts +0 -26
- package/lib/version.d.ts +0 -8
- package/public-api.d.ts +0 -7
|
@@ -1,527 +0,0 @@
|
|
|
1
|
-
import { ProjectDto } from '../../ava-tree/model';
|
|
2
|
-
/** This class represents an invoice */
|
|
3
|
-
export interface Invoice {
|
|
4
|
-
/** The number of the invoice */
|
|
5
|
-
invoiceNumber?: string | undefined;
|
|
6
|
-
/** The date of the invoice */
|
|
7
|
-
invoiceDate?: Date | undefined;
|
|
8
|
-
/** The type of the invoice */
|
|
9
|
-
invoiceType?: InvoiceType | undefined;
|
|
10
|
-
/** The three letter ISO currency code */
|
|
11
|
-
currencyCode?: string | undefined;
|
|
12
|
-
/** Until when the payment is due */
|
|
13
|
-
paymentDueDate?: Date | undefined;
|
|
14
|
-
/** An object holding reference used in this invoice */
|
|
15
|
-
references?: References | undefined;
|
|
16
|
-
/** A text description of payment terms, e.g. cash discounts or payment conditions */
|
|
17
|
-
paymentTerms?: string | undefined;
|
|
18
|
-
/** In case of partial or final invoices, it's possible to reference the previous invoice numbers */
|
|
19
|
-
previousInvoices?: PreviousInvoice[] | undefined;
|
|
20
|
-
/** Information about the buyer */
|
|
21
|
-
buyer?: Organization | undefined;
|
|
22
|
-
/** Information about the seller */
|
|
23
|
-
seller?: Organization | undefined;
|
|
24
|
-
/** A payee is someone who receives the payment that is different from the seller */
|
|
25
|
-
payee?: Payee | undefined;
|
|
26
|
-
/** If present, this is an unstructured text that can be used to give additional information
|
|
27
|
-
about the invoice. */
|
|
28
|
-
invoiceNotes?: InvoiceNote[] | undefined;
|
|
29
|
-
/** The period during which the services or goods were delivered */
|
|
30
|
-
invoicePeriod?: InvoicePeriod | undefined;
|
|
31
|
-
/** Information about the delivery
|
|
32
|
-
BG-13 in XRechnung */
|
|
33
|
-
deliveryInformation?: DeliveryInformation | undefined;
|
|
34
|
-
/** Totals for the invoice */
|
|
35
|
-
totals?: InvoiceTotals | undefined;
|
|
36
|
-
/** Instructions how to perform the payment */
|
|
37
|
-
paymentInstructions?: PaymentInstructions | undefined;
|
|
38
|
-
/** Attached documents to the invoice */
|
|
39
|
-
documents?: SupportingDocument[] | undefined;
|
|
40
|
-
/** This is used to list VAT by category, e.g. for invoices where parts are in different VAT categories */
|
|
41
|
-
vatBreakdown?: VatBreakdown[] | undefined;
|
|
42
|
-
/** Allowances / deductions on the invoice */
|
|
43
|
-
allowances?: InvoiceAllowance[] | undefined;
|
|
44
|
-
/** Charges / additional costs on the invoice */
|
|
45
|
-
charges?: InvoiceCharge[] | undefined;
|
|
46
|
-
/** Single line items in the invoice */
|
|
47
|
-
lineItems?: InvoiceLineItem[] | undefined;
|
|
48
|
-
/** The source type from which the invoice was created */
|
|
49
|
-
sourceType?: SourceType | undefined;
|
|
50
|
-
}
|
|
51
|
-
/** Type of the invoice */
|
|
52
|
-
export declare enum InvoiceType {
|
|
53
|
-
PartialInvoice = 326,
|
|
54
|
-
CommercialInvoice = 380,
|
|
55
|
-
CreditNote = 381,
|
|
56
|
-
CorrectedInvoice = 384,
|
|
57
|
-
SelfBilledInvoice = 389,
|
|
58
|
-
PartialConstructionInvoice = 875,
|
|
59
|
-
PartialFinalConstructionInvoice = 876,
|
|
60
|
-
FinalConstructionInvoice = 877
|
|
61
|
-
}
|
|
62
|
-
/** This class holds typical references used in an invoice */
|
|
63
|
-
export interface References {
|
|
64
|
-
/** An internal reference used by the buyer, this can also be used as the
|
|
65
|
-
'Leitweg-ID' in Germany
|
|
66
|
-
BT-10 in XRechnung. */
|
|
67
|
-
buyerReference?: string | undefined;
|
|
68
|
-
/** Reference to a project
|
|
69
|
-
BT-11 in XRechnung. */
|
|
70
|
-
projectReference?: string | undefined;
|
|
71
|
-
/** Reference to a contract
|
|
72
|
-
BT-12 in XRechnung. */
|
|
73
|
-
contractReference?: string | undefined;
|
|
74
|
-
/** Reference to a purchase order created by the buyer
|
|
75
|
-
BT-13 in XRechnung. */
|
|
76
|
-
purchaseOrderReference?: string | undefined;
|
|
77
|
-
/** Reference to a sales order created by the seller
|
|
78
|
-
BT-14 in XRechnung. */
|
|
79
|
-
salesOrderReference?: string | undefined;
|
|
80
|
-
/** Reference to a delivery note
|
|
81
|
-
BT-15 in XRechnung. */
|
|
82
|
-
receivingAdviceReference?: string | undefined;
|
|
83
|
-
/** Reference to a dispatch advice
|
|
84
|
-
BT-16 in XRechnung. */
|
|
85
|
-
dispatchAdviceReference?: string | undefined;
|
|
86
|
-
/** Reference to a tender or lot
|
|
87
|
-
BT-17 in XRechnung. */
|
|
88
|
-
tenderOrLotReference?: string | undefined;
|
|
89
|
-
/** Reference to a custom item, e.g. a phone number, person,
|
|
90
|
-
contract or anything that would identify the invoice in the buyer's system
|
|
91
|
-
BT-18 in XRechnung. */
|
|
92
|
-
invoicedObjectIdentifier?: string | undefined;
|
|
93
|
-
/** This is a reference for accounting, like a cost center or similar. In German,
|
|
94
|
-
this would be a "Kostenstelle".
|
|
95
|
-
BT-19 in XRechnung. */
|
|
96
|
-
accountingReference?: string | undefined;
|
|
97
|
-
}
|
|
98
|
-
/** References to previous invoices */
|
|
99
|
-
export interface PreviousInvoice {
|
|
100
|
-
/** The date of the previous invoice */
|
|
101
|
-
invoiceDate?: Date | undefined;
|
|
102
|
-
/** The number of the previous invoice */
|
|
103
|
-
invoiceNumber?: string | undefined;
|
|
104
|
-
}
|
|
105
|
-
/** Represents an organization, e.g. a buyer or a seller */
|
|
106
|
-
export interface Organization {
|
|
107
|
-
/** The identifier of the organization */
|
|
108
|
-
identifier?: string | undefined;
|
|
109
|
-
/** The name of the organization */
|
|
110
|
-
name?: string | undefined;
|
|
111
|
-
/** A registration number, e.g. a Handelsregisternummer in Germany */
|
|
112
|
-
registrationNumber?: string | undefined;
|
|
113
|
-
/** The VAT ID for the organization */
|
|
114
|
-
vatId?: string | undefined;
|
|
115
|
-
/** The tax ID for the organization */
|
|
116
|
-
taxId?: string | undefined;
|
|
117
|
-
/** An email address for the organization */
|
|
118
|
-
email?: string | undefined;
|
|
119
|
-
/** The name of a contact person */
|
|
120
|
-
contactPersonName?: string | undefined;
|
|
121
|
-
/** The phone of a contact person */
|
|
122
|
-
contactPersonPhone?: string | undefined;
|
|
123
|
-
/** The email of a contact person */
|
|
124
|
-
contactPersonEmail?: string | undefined;
|
|
125
|
-
/** The address of the organization */
|
|
126
|
-
address?: string | undefined;
|
|
127
|
-
/** The city of the organization */
|
|
128
|
-
city?: string | undefined;
|
|
129
|
-
/** The zip code of the organization */
|
|
130
|
-
zipCode?: string | undefined;
|
|
131
|
-
/** The ISO 3166-1 2 letter country code */
|
|
132
|
-
countryCode?: string | undefined;
|
|
133
|
-
/** The state of the organization, e.g. a federal state in Germany */
|
|
134
|
-
state?: string | undefined;
|
|
135
|
-
/** This provides some additional legal information.
|
|
136
|
-
BT-33 in XRechnung, and this is only used for the seller. */
|
|
137
|
-
additionalLegalInformation?: string | undefined;
|
|
138
|
-
}
|
|
139
|
-
/** Represents a payee, meaning someone that receives the payment */
|
|
140
|
-
export interface Payee {
|
|
141
|
-
/** The name of the payee */
|
|
142
|
-
name?: string | undefined;
|
|
143
|
-
/** The identifier of the payee */
|
|
144
|
-
identifier?: string | undefined;
|
|
145
|
-
/** A registered identifier for the payee, e.g. a VAT ID
|
|
146
|
-
or Tax ID */
|
|
147
|
-
legalRegistrationIdentifier?: string | undefined;
|
|
148
|
-
}
|
|
149
|
-
/** Represents a note / text in an invoice */
|
|
150
|
-
export interface InvoiceNote {
|
|
151
|
-
/** Short summary / heading. Should be a text code from this list:
|
|
152
|
-
https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred4451.htm */
|
|
153
|
-
shortText?: string | undefined;
|
|
154
|
-
/** Explanation of this note */
|
|
155
|
-
longText?: string | undefined;
|
|
156
|
-
}
|
|
157
|
-
/** Represents an invoice period with start and end dates */
|
|
158
|
-
export interface InvoicePeriod {
|
|
159
|
-
/** The start date */
|
|
160
|
-
start?: Date | undefined;
|
|
161
|
-
/** The end date */
|
|
162
|
-
end?: Date | undefined;
|
|
163
|
-
}
|
|
164
|
-
/** Information about the delivery */
|
|
165
|
-
export interface DeliveryInformation {
|
|
166
|
-
/** BT-70 in XRechnung */
|
|
167
|
-
deliverToName?: string | undefined;
|
|
168
|
-
/** BT-71 in XRechnung */
|
|
169
|
-
deliverToLocationIdentifier?: string | undefined;
|
|
170
|
-
/** BT-72 in XRechnung */
|
|
171
|
-
deliveryDate?: Date | undefined;
|
|
172
|
-
/** BG-15 in XRechnung */
|
|
173
|
-
deliveryAddress?: DeliveryAddress | undefined;
|
|
174
|
-
}
|
|
175
|
-
/** Address for deliveries */
|
|
176
|
-
export interface DeliveryAddress {
|
|
177
|
-
/** The address. BT-75, BT-76 and BT-165 in XRechnung. */
|
|
178
|
-
address?: string | undefined;
|
|
179
|
-
/** The city. BT-77 in XRechnung. */
|
|
180
|
-
city?: string | undefined;
|
|
181
|
-
/** The zip code. BT-78 in XRechnung. */
|
|
182
|
-
zipCode?: string | undefined;
|
|
183
|
-
/** The ISO 3166-1 2 letter country code. BT-80 in XRechnung. */
|
|
184
|
-
countryCode?: string | undefined;
|
|
185
|
-
}
|
|
186
|
-
/** Totals for the invoice */
|
|
187
|
-
export interface InvoiceTotals {
|
|
188
|
-
/** Sum of all invoice items in net.
|
|
189
|
-
BT-106 in XRechnung. */
|
|
190
|
-
totalNet?: number | undefined;
|
|
191
|
-
/** This is the sum of all allowances (e.g. deductions or withheld tax) in the invoice
|
|
192
|
-
BT-107 in XRechnung. */
|
|
193
|
-
totalAllowances?: number | undefined;
|
|
194
|
-
/** This is the sum of all charges in the invoice, except VAT. For example, late
|
|
195
|
-
fees or surcharges.
|
|
196
|
-
BT-108 in XRechnung. */
|
|
197
|
-
totalCharges?: number | undefined;
|
|
198
|
-
/** This is the total net value of the invoice after applied allowances and charges,
|
|
199
|
-
meaning the actual net sum to be paid.
|
|
200
|
-
BT-109 in XRechnung. */
|
|
201
|
-
totalAfterDeductions?: number | undefined;
|
|
202
|
-
/** The total amount of VAT in the invoice.
|
|
203
|
-
BT-110 in XRechnung. */
|
|
204
|
-
totalVatAmount?: number | undefined;
|
|
205
|
-
/** The total gross amount of the invoice, including all taxes and deductions.
|
|
206
|
-
BT-112 in XRechnung. */
|
|
207
|
-
totalGross?: number | undefined;
|
|
208
|
-
/** The total amount that has already been paid for this invoice, e.g. used when
|
|
209
|
-
previous invoice sums are included here that have already been paid.
|
|
210
|
-
BT-113 in XRechnung. */
|
|
211
|
-
alreadyPaidTotal?: number | undefined;
|
|
212
|
-
/** If this is given, this specifies if any rounding amount is applied to the invoice,
|
|
213
|
-
before calculating the TotalToBePaid value.
|
|
214
|
-
BT-114 in XRechnung. */
|
|
215
|
-
payableRoundingAmount?: number | undefined;
|
|
216
|
-
/** The sum that needs to be paid for this invoice. This is the total gross amount
|
|
217
|
-
minus the already paid amount.
|
|
218
|
-
BT-115 in XRechnung. */
|
|
219
|
-
totalToBePaid?: number | undefined;
|
|
220
|
-
}
|
|
221
|
-
/** Instructions how payment for an invoice should be provided. */
|
|
222
|
-
export interface PaymentInstructions {
|
|
223
|
-
/** Additional text to describe the payment instructions. */
|
|
224
|
-
description?: string | undefined;
|
|
225
|
-
/** This should be a code according to UN/ECE 4461
|
|
226
|
-
to identify the type of payment. For example, code "58" means SEPA Credit Transfer,
|
|
227
|
-
and code "30" means non-SEPA Credit Transfer.
|
|
228
|
-
See this list: https://unece.org/fileadmin/DAM/trade/edifact/code/4461cl.htm */
|
|
229
|
-
paymentTypeCode?: string | undefined;
|
|
230
|
-
/** If a SEPA direct debit payment mean is used, then this reference should be provided.
|
|
231
|
-
It's the creditor identifier in SEPA, in German "Gläubiger-Identifikationsnummer".
|
|
232
|
-
Field BT-90 in XRechnung. */
|
|
233
|
-
paymentCreditorIdentifier?: string | undefined;
|
|
234
|
-
/** A list of payment means that can be used to pay the invoice. */
|
|
235
|
-
paymentMeans?: PaymentMeans[] | undefined;
|
|
236
|
-
}
|
|
237
|
-
/** Represents a payment means for an invoice */
|
|
238
|
-
export interface PaymentMeans {
|
|
239
|
-
/** This is typically the IBAN or account number
|
|
240
|
-
BT-84 in XRechnung. */
|
|
241
|
-
accountIdentifier?: string | undefined;
|
|
242
|
-
/** The name for the account, typically the name of the owner for
|
|
243
|
-
a bank account.
|
|
244
|
-
BT-85 in XRechnung. */
|
|
245
|
-
accountName?: string | undefined;
|
|
246
|
-
/** This can be the BIC
|
|
247
|
-
BT-86 in XRechnung. */
|
|
248
|
-
serviceProviderIdentifier?: string | undefined;
|
|
249
|
-
/** If used, this is the mandate id for direct debit under which
|
|
250
|
-
the direct debit will be performed
|
|
251
|
-
BT-89 in XRechnung. */
|
|
252
|
-
directDebitMandateId?: string | undefined;
|
|
253
|
-
/** If used, this is the IBAN for direct debit
|
|
254
|
-
BT-91 in XRechnung. */
|
|
255
|
-
directDebitIban?: string | undefined;
|
|
256
|
-
/** The payment id, e.g. a reference number for the payment. In German,
|
|
257
|
-
this would be called "Verwendungszweck".
|
|
258
|
-
BT-83 in XRechnung. */
|
|
259
|
-
paymentId?: string | undefined;
|
|
260
|
-
}
|
|
261
|
-
/** Represents a document / attachment that is included with the invoice */
|
|
262
|
-
export interface SupportingDocument {
|
|
263
|
-
/** This is typically an id or a name */
|
|
264
|
-
documentReference?: string | undefined;
|
|
265
|
-
/** A description of the document */
|
|
266
|
-
description?: string | undefined;
|
|
267
|
-
/** A link to the document in case this is an external reference */
|
|
268
|
-
externalDocumentUrl?: string | undefined;
|
|
269
|
-
/** The document in base64 encoded form as binary data */
|
|
270
|
-
documentBase64?: string | undefined;
|
|
271
|
-
/** This should be present if DocumentBase64 is set. */
|
|
272
|
-
fileName?: string | undefined;
|
|
273
|
-
/** The type of the document */
|
|
274
|
-
documentMimeType?: AttachmentMimeType | undefined;
|
|
275
|
-
}
|
|
276
|
-
/** Describes a mime type of a document */
|
|
277
|
-
export declare enum AttachmentMimeType {
|
|
278
|
-
Unknown = 0,
|
|
279
|
-
Pdf = 1,
|
|
280
|
-
Png = 2,
|
|
281
|
-
Jpeg = 3,
|
|
282
|
-
Csv = 4,
|
|
283
|
-
Excel = 5,
|
|
284
|
-
OpenOfficeSpreadsheet = 6
|
|
285
|
-
}
|
|
286
|
-
/** Describes the VAT breakdown for an invoice in a single VAT category */
|
|
287
|
-
export interface VatBreakdown {
|
|
288
|
-
/** The total net amount of this VAT category */
|
|
289
|
-
netTaxableAmount?: number | undefined;
|
|
290
|
-
/** The total VAT */
|
|
291
|
-
vatAmount?: number | undefined;
|
|
292
|
-
/** The category of the VAT */
|
|
293
|
-
vatCategory?: VatCategory | undefined;
|
|
294
|
-
/** The actual tax rate as a decimal value,
|
|
295
|
-
e.g. 19% would be 0.19 */
|
|
296
|
-
taxRate?: number | undefined;
|
|
297
|
-
/** If the VAT is exempt, there should be a description here.
|
|
298
|
-
For example, in reverse charge scenarios, this text
|
|
299
|
-
should contain a reference to "Reverse charge according to ...". */
|
|
300
|
-
vatExemptionReasonText?: string | undefined;
|
|
301
|
-
/** A code from the VAT exemption reason code list(VATEX)“ */
|
|
302
|
-
vatExemptionReasonCode?: string | undefined;
|
|
303
|
-
}
|
|
304
|
-
/** The category used in a VatBreakdown"/> */
|
|
305
|
-
export declare enum VatCategory {
|
|
306
|
-
Unknown = 0,
|
|
307
|
-
StandardRate = 1,
|
|
308
|
-
ZeroRatedGoods = 2,
|
|
309
|
-
ExemptFromTax = 3,
|
|
310
|
-
VatReverseCharge = 4,
|
|
311
|
-
VatExemptReverseCharge = 5,
|
|
312
|
-
FreeExportItem = 6,
|
|
313
|
-
ServicesOutsideScopeOfTaxation = 7,
|
|
314
|
-
CanaryIslandsGeneralIndirectTax = 8,
|
|
315
|
-
TaxInCeutaAndMelilla = 9
|
|
316
|
-
}
|
|
317
|
-
/** This describes an allowance in an invoice, which is a deduction from the total amount */
|
|
318
|
-
export interface InvoiceAllowance {
|
|
319
|
-
/** The net amount of the allowance */
|
|
320
|
-
netAmount?: number | undefined;
|
|
321
|
-
/** If this is a relative / percentage allowance, this should be set
|
|
322
|
-
and give the base amount that is being used for the calculation */
|
|
323
|
-
relativeAllowanceBaseAmount?: number | undefined;
|
|
324
|
-
/** If this is a relative / percentage allowance, this should be set
|
|
325
|
-
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
326
|
-
relativeAllowancePercentage?: number | undefined;
|
|
327
|
-
/** The VAT category for the allowance */
|
|
328
|
-
vatCategory?: VatCategory | undefined;
|
|
329
|
-
/** The actual tax rate as a decimal value,
|
|
330
|
-
meaning 19% would be 0.19 */
|
|
331
|
-
vatRate?: number | undefined;
|
|
332
|
-
/** A description of the allowance. This should not be set it ReasonCode
|
|
333
|
-
is provided, otherwise this one takes precedence. */
|
|
334
|
-
reason?: string | undefined;
|
|
335
|
-
/** A reason code for the allowance according to UNTDID 5189.
|
|
336
|
-
See this list: https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm */
|
|
337
|
-
reasonCode?: string | undefined;
|
|
338
|
-
}
|
|
339
|
-
/** This describes an charge in an invoice, which is a surcharge to the total amount */
|
|
340
|
-
export interface InvoiceCharge {
|
|
341
|
-
/** The net amount of the charge */
|
|
342
|
-
netAmount?: number | undefined;
|
|
343
|
-
/** If this is a relative / percentage charge, this should be set
|
|
344
|
-
and give the base amount that is being used for the calculation */
|
|
345
|
-
relativeChargeBaseAmount?: number | undefined;
|
|
346
|
-
/** If this is a relative / percentage charge, this should be set
|
|
347
|
-
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
348
|
-
relativeChargePercentage?: number | undefined;
|
|
349
|
-
/** The VAT category for the charge */
|
|
350
|
-
vatCategory?: VatCategory | undefined;
|
|
351
|
-
/** The actual tax rate as a decimal value,
|
|
352
|
-
meaning 19% would be 0.19 */
|
|
353
|
-
vatRate?: number | undefined;
|
|
354
|
-
/** A description of the charge. This should not be set it ReasonCode
|
|
355
|
-
is provided, otherwise this one takes precedence. */
|
|
356
|
-
reason?: string | undefined;
|
|
357
|
-
/** A reason code for the charge according to UNTDID 7161.
|
|
358
|
-
See this list: https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5189.htm */
|
|
359
|
-
reasonCode?: string | undefined;
|
|
360
|
-
}
|
|
361
|
-
/** Represents a single invoice line item */
|
|
362
|
-
export interface InvoiceLineItem {
|
|
363
|
-
/** An unique identifier for the line item */
|
|
364
|
-
identifier?: string | undefined;
|
|
365
|
-
/** An unstructured note to classify line items */
|
|
366
|
-
note?: string | undefined;
|
|
367
|
-
/** A seller-defined object identifier for this line item,
|
|
368
|
-
meaning an identifier for the actual line. This could be
|
|
369
|
-
a numbering sequence or a reference to a product. */
|
|
370
|
-
objectIdentifier?: string | undefined;
|
|
371
|
-
/** The actual invoiced quantity of the line item */
|
|
372
|
-
quantity?: number | undefined;
|
|
373
|
-
/** A code for the unit of the quantity. This should be a code as defined
|
|
374
|
-
in UN/ECE Recommendation No. 20 „Codes for Units of Measure Used in
|
|
375
|
-
International Trade“ und UN/ECE Recommendation No 21 „Codes for Passengers,
|
|
376
|
-
Types of Cargo, Packages and Packaging Materials(with Complementary Codes for Package Names) */
|
|
377
|
-
unitCode?: string | undefined;
|
|
378
|
-
/** The net amount for this line item. This is the total price for positions */
|
|
379
|
-
netAmount?: number | undefined;
|
|
380
|
-
/** A reference to an item in the buyers purachase order */
|
|
381
|
-
purchaseOrderReference?: string | undefined;
|
|
382
|
-
/** Information about the invoice period for this line item. */
|
|
383
|
-
lineItemPeriod?: InvoicePeriod | undefined;
|
|
384
|
-
/** Allowances specific to this line item */
|
|
385
|
-
allowances?: LineItemAllowance[] | undefined;
|
|
386
|
-
/** charges specific to this line item */
|
|
387
|
-
charges?: LineItemCharge[] | undefined;
|
|
388
|
-
/** Price details for this line item. */
|
|
389
|
-
priceDetails?: LineItemPriceDetail | undefined;
|
|
390
|
-
/** VAT information for this line item */
|
|
391
|
-
vatInformation?: LineItemVatInformation[] | undefined;
|
|
392
|
-
/** Information about this line item */
|
|
393
|
-
itemInformation?: LineItemInformation | undefined;
|
|
394
|
-
/** Line items can be nested, in which case this property holds the sub items */
|
|
395
|
-
subItems?: InvoiceLineItem[] | undefined;
|
|
396
|
-
}
|
|
397
|
-
/** Allowance for a single line item */
|
|
398
|
-
export interface LineItemAllowance {
|
|
399
|
-
/** The net amount of the allowance */
|
|
400
|
-
netAmount?: number | undefined;
|
|
401
|
-
/** If this is a relative / percentage allowance, this should be set
|
|
402
|
-
and give the base amount that is being used for the calculation */
|
|
403
|
-
relativeAllowanceBaseAmount?: number | undefined;
|
|
404
|
-
/** If this is a relative / percentage allowance, this should be set
|
|
405
|
-
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
406
|
-
relativeAllowancePercentage?: number | undefined;
|
|
407
|
-
/** A description of the allowance. */
|
|
408
|
-
reason?: string | undefined;
|
|
409
|
-
/** A reason code for the allowance according to UNTDID 5189. */
|
|
410
|
-
reasonCode?: string | undefined;
|
|
411
|
-
}
|
|
412
|
-
/** Charge for a single line item */
|
|
413
|
-
export interface LineItemCharge {
|
|
414
|
-
/** The net amount of the charge */
|
|
415
|
-
netAmount?: number | undefined;
|
|
416
|
-
/** If this is a relative / percentage charge, this should be set
|
|
417
|
-
and give the base amount that is being used for the calculation */
|
|
418
|
-
relativeChargeBaseAmount?: number | undefined;
|
|
419
|
-
/** If this is a relative / percentage charge, this should be set
|
|
420
|
-
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
421
|
-
relativeChargePercentage?: number | undefined;
|
|
422
|
-
/** A description of the charge. */
|
|
423
|
-
reason?: string | undefined;
|
|
424
|
-
/** A reason code for the charge according to UNTDID 7161. */
|
|
425
|
-
reasonCode?: string | undefined;
|
|
426
|
-
}
|
|
427
|
-
/** Price details about a line item */
|
|
428
|
-
export interface LineItemPriceDetail {
|
|
429
|
-
/** The net price of this line item. This is the unit price */
|
|
430
|
-
netPrice?: number | undefined;
|
|
431
|
-
/** A discount for this line item, given as an absolute value. It is essentially the difference between NetPrice (or the list price)
|
|
432
|
-
and the actual invoiced price GrossPrice. */
|
|
433
|
-
absoluteDiscountPerItem?: number | undefined;
|
|
434
|
-
/** The gross price of this line item, meaning the price without taxes
|
|
435
|
-
that will be invoiced */
|
|
436
|
-
grossPrice?: number | undefined;
|
|
437
|
-
/** The quantity for which this price is valid. In combination with the NetPrice,
|
|
438
|
-
you basically specify the denominator of the unit price for a line item. */
|
|
439
|
-
baseQuantity?: number | undefined;
|
|
440
|
-
/** A code representing the unit for the base quantity */
|
|
441
|
-
baseQuantityUnitCode?: string | undefined;
|
|
442
|
-
}
|
|
443
|
-
/** VAT information for a single line item */
|
|
444
|
-
export interface LineItemVatInformation {
|
|
445
|
-
/** The VAT category for the charge */
|
|
446
|
-
vatCategory?: VatCategory | undefined;
|
|
447
|
-
/** The actual tax rate as a decimal value,
|
|
448
|
-
meaning 19% would be 0.19 */
|
|
449
|
-
vatRate?: number | undefined;
|
|
450
|
-
}
|
|
451
|
-
/** Information about a single line item */
|
|
452
|
-
export interface LineItemInformation {
|
|
453
|
-
/** A name for the line item */
|
|
454
|
-
name?: string | undefined;
|
|
455
|
-
/** A description for the line item */
|
|
456
|
-
description?: string | undefined;
|
|
457
|
-
/** An identifier assigned by the seller, e.g. an internal article number */
|
|
458
|
-
sellerIdentifier?: string | undefined;
|
|
459
|
-
/** An identifier assigned by the buyer, e.g. an internal article number */
|
|
460
|
-
buyerIdentifier?: string | undefined;
|
|
461
|
-
/** A standard identifier for the line item, e.g. an EAN or a GTIN */
|
|
462
|
-
standardIdentifier?: string | undefined;
|
|
463
|
-
/** If used together with StandardIdentifier, this is the scheme identifier
|
|
464
|
-
for which standard is used. */
|
|
465
|
-
standardSchemeId?: string | undefined;
|
|
466
|
-
/** A list of classification identifiers for the line item */
|
|
467
|
-
classificationIdentifiers?: string[] | undefined;
|
|
468
|
-
/** The origin country code according to ISO 3166-1 in 2 letter format */
|
|
469
|
-
countryOfOrigin?: string | undefined;
|
|
470
|
-
/** Optional additional attributes for this line item */
|
|
471
|
-
attributes?: LineItemAttribute[] | undefined;
|
|
472
|
-
}
|
|
473
|
-
/** A key-value pair for additional information */
|
|
474
|
-
export interface LineItemAttribute {
|
|
475
|
-
/** The key / name of the attribute */
|
|
476
|
-
name?: string | undefined;
|
|
477
|
-
/** The value of the attribute */
|
|
478
|
-
value?: string | undefined;
|
|
479
|
-
}
|
|
480
|
-
/** This enum represents the source of an invoice, e.g. from which format it was imported */
|
|
481
|
-
export declare enum SourceType {
|
|
482
|
-
Self = 0,
|
|
483
|
-
Ubl = 1,
|
|
484
|
-
Cii = 2
|
|
485
|
-
}
|
|
486
|
-
/** This is a wrapper class that maps Dangl.AVA projects along with additional required information to create invoices */
|
|
487
|
-
export interface AvaProjectWrapper {
|
|
488
|
-
/** The Dangl.AVA.Project from which to convert */
|
|
489
|
-
project?: ProjectDto | undefined;
|
|
490
|
-
/** The number of the invoice */
|
|
491
|
-
invoiceNumber?: string | undefined;
|
|
492
|
-
/** Attached documents to the invoice */
|
|
493
|
-
documents?: SupportingDocument[] | undefined;
|
|
494
|
-
/** The period during which the services or goods were delivered */
|
|
495
|
-
invoicePeriod?: InvoicePeriod | undefined;
|
|
496
|
-
/** Instructions how to perform the payment */
|
|
497
|
-
paymentInstructions?: PaymentInstructions | undefined;
|
|
498
|
-
/** The type of the invoice */
|
|
499
|
-
invoiceType?: InvoiceType | undefined;
|
|
500
|
-
/** If this is set to true, the invoice will be marked as a reverse charge invoice
|
|
501
|
-
in all VAT rates. You still need to ensure that the actual tax rates are set
|
|
502
|
-
to zero in all elements */
|
|
503
|
-
isEuReverseChargeInvoice?: boolean | undefined;
|
|
504
|
-
/** Until when the payment is due */
|
|
505
|
-
paymentDueDate?: Date | undefined;
|
|
506
|
-
/** A text description of payment terms, e.g. cash discounts or payment conditions */
|
|
507
|
-
paymentTerms?: string | undefined;
|
|
508
|
-
/** In case of partial of final invoices, it's possible to reference the previous invoice numbers */
|
|
509
|
-
previousInvoices?: PreviousInvoice[] | undefined;
|
|
510
|
-
/** If parts of this invoice (or of previous invoices) have already been paid,
|
|
511
|
-
then this property can be used to specify that some parts of the invoice
|
|
512
|
-
are already paid and this will be deducted from the to be paid amount. */
|
|
513
|
-
alreadyPaidTotalGross?: number | undefined;
|
|
514
|
-
/** An object holding reference used in this invoice */
|
|
515
|
-
references?: References | undefined;
|
|
516
|
-
/** Optional document level allowances. For example, those can be used to supply
|
|
517
|
-
global discounts e.g. for security deposits. When using this property, please
|
|
518
|
-
pay attention that a deduction factor on the exported ServiceSpecification
|
|
519
|
-
will also be exported as an allowance, in this case the total price of the
|
|
520
|
-
invoice might be different from the total price of the ServiceSpecification. */
|
|
521
|
-
allowances?: InvoiceAllowance[] | undefined;
|
|
522
|
-
/** Optional document level charges, e.g. for shipping or handling. When using this property,
|
|
523
|
-
please pay attention that the charges given here will be applied to the already calculated
|
|
524
|
-
total price of the ServiceSpecification, in this case the total price of the invoice
|
|
525
|
-
might be different from the total price of the ServiceSpecification. */
|
|
526
|
-
charges?: InvoiceCharge[] | undefined;
|
|
527
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export interface ITextWordInvoice {
|
|
2
|
-
invoiceTitle: string;
|
|
3
|
-
invoiceBuyerTitle: string;
|
|
4
|
-
invoiceSellerTitle: string;
|
|
5
|
-
vatId: string;
|
|
6
|
-
detailsInvoiceNumber: string;
|
|
7
|
-
detailsInvoiceDate: string;
|
|
8
|
-
detailsPaymentDueDate: string;
|
|
9
|
-
detailsCurrencyCode: string;
|
|
10
|
-
detailsPaymentTerms: string;
|
|
11
|
-
referencesTopic: string;
|
|
12
|
-
referencesBuyerReference: string;
|
|
13
|
-
referencesProjectReference: string;
|
|
14
|
-
referencesContractReference: string;
|
|
15
|
-
referencesPurchaseOrderReference: string;
|
|
16
|
-
referencesSalesOrderReference: string;
|
|
17
|
-
referencesReceivingAdviceReference: string;
|
|
18
|
-
referencesDispatchAdviceReference: string;
|
|
19
|
-
referencesTenderOrLotReference: string;
|
|
20
|
-
referencesInvoicedObjectIdentifier: string;
|
|
21
|
-
tableHeadDescription: string;
|
|
22
|
-
tableHeadQuantity: string;
|
|
23
|
-
tableHeadUnit: string;
|
|
24
|
-
tableHeadNetPrice: string;
|
|
25
|
-
tableHeadNetAmount: string;
|
|
26
|
-
totalsTopic: string;
|
|
27
|
-
totalsTotalNet: string;
|
|
28
|
-
totalsTotalAllowances: string;
|
|
29
|
-
totalsTotalCharges: string;
|
|
30
|
-
totalsTotalAfterDeductions: string;
|
|
31
|
-
totalsTotalVatAmount: string;
|
|
32
|
-
totalsTotalGross: string;
|
|
33
|
-
totalsAlreadyPaidTotal: string;
|
|
34
|
-
totalsTotalToBePaid: string;
|
|
35
|
-
instructionsTopic: string;
|
|
36
|
-
instructionsAccountIdentifier: string;
|
|
37
|
-
instructionsAccountName: string;
|
|
38
|
-
instructionsServiceProviderIdentifier: string;
|
|
39
|
-
notesTopic: string;
|
|
40
|
-
attachmentsHeading: string;
|
|
41
|
-
attachmentsName: string;
|
|
42
|
-
attachmentsDescription: string;
|
|
43
|
-
attachmentsUrl: string;
|
|
44
|
-
attachmentsDataSize: string;
|
|
45
|
-
attachmentsMimeType: string;
|
|
46
|
-
attachmentsFileName: string;
|
|
47
|
-
attachmentsDownloadButton: string;
|
|
48
|
-
contactPersonName: string;
|
|
49
|
-
contactPersonPhone: string;
|
|
50
|
-
contactPersonEmail: string;
|
|
51
|
-
vat: string;
|
|
52
|
-
taxRate: string;
|
|
53
|
-
taxesHeading: string;
|
|
54
|
-
deliveryInformationTitle: string;
|
|
55
|
-
deliverToName: string;
|
|
56
|
-
deliverToLocationIdentifier: string;
|
|
57
|
-
deliveryDate: string;
|
|
58
|
-
deliveryAddress: string;
|
|
59
|
-
invoiceAllowancesHeader: string;
|
|
60
|
-
invoiceAllowancesTableHeaderSum: string;
|
|
61
|
-
invoiceAllowancesTableHeaderVatRate: string;
|
|
62
|
-
invoiceAllowancesTableHeaderAllowance: string;
|
|
63
|
-
invoiceAllowancesTableHeaderBase: string;
|
|
64
|
-
invoiceChargesHeader: string;
|
|
65
|
-
invoiceChargesTableHeaderSum: string;
|
|
66
|
-
invoiceChargesTableHeaderVatRate: string;
|
|
67
|
-
invoiceChargesTableHeaderCharge: string;
|
|
68
|
-
invoiceChargesTableHeaderBase: string;
|
|
69
|
-
lineItemDiscount: string;
|
|
70
|
-
lineItemCharges: string;
|
|
71
|
-
lineItemAllowances: string;
|
|
72
|
-
lineItemReason: string;
|
|
73
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CurrencyPipe } from '@angular/common';
|
|
2
|
-
import { PipeTransform } from '@angular/core';
|
|
3
|
-
import { ConfigurationInvoiceService } from '../services/configuration-invoice.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CurrencyPlusPipe implements PipeTransform {
|
|
6
|
-
currencyPipe: CurrencyPipe;
|
|
7
|
-
configurationInvoiceService: ConfigurationInvoiceService;
|
|
8
|
-
transform(money?: number): string | null;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPlusPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyPlusPipe, "currencyPlus", true>;
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { AttachmentMimeType } from '../model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class InvoiceAttachmentMimeTypePipe implements PipeTransform {
|
|
5
|
-
transform(attachmentMimeType: AttachmentMimeType): string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceAttachmentMimeTypePipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<InvoiceAttachmentMimeTypePipe, "invoiceAttachmentMimeType", true>;
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DecimalPipe } from '@angular/common';
|
|
2
|
-
import { PipeTransform } from '@angular/core';
|
|
3
|
-
import { ConfigurationInvoiceService } from '../services/configuration-invoice.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NumberPlusPipe implements PipeTransform {
|
|
6
|
-
currencyPipe: DecimalPipe;
|
|
7
|
-
configurationInvoiceService: ConfigurationInvoiceService;
|
|
8
|
-
transform(value?: number): string | null;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumberPlusPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NumberPlusPipe, "numberPlus", true>;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PercentPipe } from '@angular/common';
|
|
2
|
-
import { PipeTransform } from '@angular/core';
|
|
3
|
-
import { ConfigurationInvoiceService } from '../services/configuration-invoice.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PercentPlusPipe implements PipeTransform {
|
|
6
|
-
percentPipe: PercentPipe;
|
|
7
|
-
configurationInvoiceService: ConfigurationInvoiceService;
|
|
8
|
-
transform(value?: number, digitsInfo?: string): string | null;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PercentPlusPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<PercentPlusPipe, "percentPlus", true>;
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { IConfigurationInvoice, ITextWordInvoice, LanguageType } from '../model';
|
|
3
|
-
import { IColorSettings } from '../model/configInvoice.model';
|
|
4
|
-
export declare class ConfigurationInvoiceService {
|
|
5
|
-
private _language;
|
|
6
|
-
private _textWords;
|
|
7
|
-
private _pdfViewEnabled;
|
|
8
|
-
private _quantityDecimalPlaces;
|
|
9
|
-
private _currencyCode;
|
|
10
|
-
private _colorSettings;
|
|
11
|
-
private invoiceConfigSource;
|
|
12
|
-
invoiceConfig$: Observable<IConfigurationInvoice>;
|
|
13
|
-
constructor();
|
|
14
|
-
setInvoiceConfig(value: IConfigurationInvoice): void;
|
|
15
|
-
getCurrentInvoiceConfig(): IConfigurationInvoice;
|
|
16
|
-
getTextWordsFromConfig(): Observable<ITextWordInvoice | null>;
|
|
17
|
-
getPdfViewEnabledFromConfig(): Observable<boolean>;
|
|
18
|
-
private getDefaultInvoiceConfiguration;
|
|
19
|
-
getColorSettingsFromConfig(): Observable<IColorSettings | null>;
|
|
20
|
-
getDefaultTextWords(languageWord: LanguageType): ITextWordInvoice;
|
|
21
|
-
get locale(): string;
|
|
22
|
-
set quantityDecimalPlaces(value: string);
|
|
23
|
-
get quantityDecimalPlaces(): string;
|
|
24
|
-
set currencyCode(value: string);
|
|
25
|
-
get currencyCode(): string;
|
|
26
|
-
}
|