@dangl/angular-ava 1.1.2-beta0019 → 1.1.2-beta0029
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/ava-tree/invoice/invoice-display/invoice-display.component.mjs +44 -3
- package/esm2022/lib/ava-tree/tree/model/ava-models.mjs +8 -1
- package/esm2022/lib/ava-tree/tree/model/invoice-models.mjs +9 -10
- package/esm2022/lib/ava-tree/tree/pipes/invoice-attachment-mime-type.pipe.mjs +34 -0
- package/esm2022/lib/version.mjs +7 -7
- package/fesm2022/dangl-angular-ava.mjs +92 -17
- package/fesm2022/dangl-angular-ava.mjs.map +1 -1
- package/lib/ava-tree/invoice/invoice-display/invoice-display.component.d.ts +5 -1
- package/lib/ava-tree/tree/model/ava-models.d.ts +10 -19
- package/lib/ava-tree/tree/model/invoice-models.d.ts +113 -70
- package/lib/ava-tree/tree/pipes/invoice-attachment-mime-type.pipe.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ITextWordInvoice } from '../../tree/model';
|
|
2
|
-
import { Invoice } from '../../tree/model/invoice-models';
|
|
2
|
+
import { Invoice, SupportingDocument } from '../../tree/model/invoice-models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class InvoiceDisplayComponent {
|
|
5
5
|
invoice: import("@angular/core").InputSignal<Invoice>;
|
|
@@ -49,6 +49,10 @@ export declare class InvoiceDisplayComponent {
|
|
|
49
49
|
set textWords(words: ITextWordInvoice | null);
|
|
50
50
|
get textWords(): ITextWordInvoice | null;
|
|
51
51
|
constructor();
|
|
52
|
+
download(documentValue: SupportingDocument): void;
|
|
53
|
+
downloadAny(documentValue: SupportingDocument): void;
|
|
54
|
+
downloadLink(documentValue: SupportingDocument): Promise<void>;
|
|
55
|
+
saveAs(blob: Blob, fileName: string): void;
|
|
52
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceDisplayComponent, never>;
|
|
53
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<InvoiceDisplayComponent, "ava-invoice-display", never, { "invoice": { "alias": "invoice"; "required": true; "isSignal": true; }; "textWords": { "alias": "textWords"; "required": false; }; }, {}, never, never, true, never>;
|
|
54
58
|
}
|
|
@@ -121,6 +121,8 @@ export interface ItemNumberSchemaDto {
|
|
|
121
121
|
readonly schemaIsCorrectlyDefined?: boolean | undefined;
|
|
122
122
|
/** Defaults to false. If this is disabled, all letters in the ItemNumber string representations will be transformed to their lowercase representation. */
|
|
123
123
|
allowUpperCaseLettering?: boolean | undefined;
|
|
124
|
+
/** If this is set to true, single identifiers in an item number will not be left padded to fill the length of the tier. This is useful for allowing custom formats in item numbers, without following the GAEB standard. Defaults to false. */
|
|
125
|
+
disableLeftPaddingTiersWithFiller?: boolean | undefined;
|
|
124
126
|
}
|
|
125
127
|
/** Represents information about a single Tier in an ItemNumber. */
|
|
126
128
|
export interface ItemNumberSchemaTierDto {
|
|
@@ -128,6 +130,8 @@ export interface ItemNumberSchemaTierDto {
|
|
|
128
130
|
length?: number | undefined;
|
|
129
131
|
/** This ItemNumberSchemaTier's type. */
|
|
130
132
|
type?: ItemNumberTypeDto | undefined;
|
|
133
|
+
/** This enum represents the alignment value for a tier in an ItemNumberSchema. It is not used anywhere for computations at the moment, and is mostly an informational value. */
|
|
134
|
+
alignment?: ItemNumberSchemaTierAlignmentDto | undefined;
|
|
131
135
|
/** This specifies which ItemNumberSchemaTierType this tier represents. This can be, for example, a group tier / level, a position level or a lot level. */
|
|
132
136
|
tierType?: ItemNumberSchemaTierTypeDto | undefined;
|
|
133
137
|
/** Indicates if this tier represents a lot. See the documentation for more information about lots. */
|
|
@@ -142,6 +146,12 @@ export declare enum ItemNumberTypeDto {
|
|
|
142
146
|
Numeric = "Numeric",
|
|
143
147
|
Alphanumeric = "Alphanumeric"
|
|
144
148
|
}
|
|
149
|
+
/** This enum represents the alignment value for a tier in an ItemNumberSchema. It is not used anywhere for computations at the moment, and is mostly an informational value. */
|
|
150
|
+
export declare enum ItemNumberSchemaTierAlignmentDto {
|
|
151
|
+
Undefined = "Undefined",
|
|
152
|
+
Left = "Left",
|
|
153
|
+
Right = "Right"
|
|
154
|
+
}
|
|
145
155
|
/** Specifies the type an ItemNumberSchemaTier represents. For example, a tier may indicate to be used for positions or for groups. */
|
|
146
156
|
export declare enum ItemNumberSchemaTierTypeDto {
|
|
147
157
|
Undefined = "Undefined",
|
|
@@ -283,10 +293,6 @@ export interface ServiceSpecificationDto {
|
|
|
283
293
|
addendumStatus?: AddendumStatusDto | undefined;
|
|
284
294
|
/** This property holds additional information that's only valid in commerce exchange phases. */
|
|
285
295
|
commerceProperties?: ServiceSpecificationCommercePropertiesDto | undefined;
|
|
286
|
-
/** This is internally used during mapping operations to temporarily hold information about removed ItemNumberSchemas. Those schemas are set to null during the mapping process to ensure that schemas in elements higher up in the hierarchy are correctly passed down to child elements. */
|
|
287
|
-
itemNumberSchemaMappingOperation?: ItemNumberSchemaMappingOperation | undefined;
|
|
288
|
-
/** This is internally used during mapping operations to temporarily hold information about complementing positions */
|
|
289
|
-
complementingPositionData?: ComplementingPositionData | undefined;
|
|
290
296
|
}
|
|
291
297
|
/** Base interface definition for elements within an ElementContainerBase. */
|
|
292
298
|
export interface IElementDto {
|
|
@@ -876,15 +882,12 @@ export interface ServiceSpecificationGroupDto extends IElementDto {
|
|
|
876
882
|
readonly isLot?: boolean | undefined;
|
|
877
883
|
/** If this group is an alternative for a base group, then this property should point to the id of the group in this service specification that it can replace. If this is an alternative group to a base group, the PriceType should typically be set to "WithoutTotal" so this group does not factor into total costs. The PriceType is not changed when this property is set */
|
|
878
884
|
alternativeTo?: string | undefined;
|
|
879
|
-
v1CompatibilityPriceType?: string | undefined;
|
|
880
885
|
/** This class models special properties that only apply to some exchange scenarios where ÖNorm is used. */
|
|
881
886
|
oenormProperties?: OenormPropertiesDto | undefined;
|
|
882
887
|
/** This is a zero based hierarchy level. It's set automatically when used in the context of a Project, and can be used to identify the hierarchy level of the current element. */
|
|
883
888
|
hierarchyLevel?: number | undefined;
|
|
884
889
|
/** This indicates, if this element is part of an addendum an, if yes, with what status. */
|
|
885
890
|
addendumStatus?: AddendumStatusDto | undefined;
|
|
886
|
-
/** This is internally used during mapping operations to temporarily hold information about removed ItemNumberSchemas. Those schemas are set to null during the mapping process to ensure that schemas in elements higher up in the hierarchy are correctly passed down to child elements. */
|
|
887
|
-
itemNumberSchemaMappingOperation?: ItemNumberSchemaMappingOperation | undefined;
|
|
888
891
|
/** This is an optional property that can be used together with AlternativeTo. If this is set, you can indicate which alternative group a specific group is assigned to. That way, if you specifiy multiple alternative ServiceSpecificationGroups with the same AlternativeIdentifier, you can indicate that to replace a single base ServiceSpecificationGroup, multiple alternative ServiceSpecificationGroups should be used. This property is not checked or managed automatically, so it is possible for this property to become invalid, by for example setting this property but not setting a base group via AlternativeTo. */
|
|
889
892
|
alternativeIdentifier?: number | undefined;
|
|
890
893
|
/** This is an optional property that can be used together with AlternativeTo and AlternativeGroupIdentifier. If this is set, you can indicate which alternative group a specific group is assigned to. That way, you can specify the id (in integer format) for the alternative group this group belongs to. It's different to AlternativeIdentifier in that the other property describes the id of the group, while this property here describes the group itself. If a group only has set AlternativeGroupIdentifier but not AlternativeIdentifier, then it likely is a base group for a specific group. This property is not checked or managed automatically, so it is possible for this property to become invalid, by for example setting this property but not setting a base group via AlternativeTo. */
|
|
@@ -916,9 +919,6 @@ export interface OenormPropertiesDto {
|
|
|
916
919
|
/** This marks if the opening texts within this element are considered free text. It corresponds to 'vorbemerkungskennzeichen' in ÖNorm. */
|
|
917
920
|
openingTextIsFreeText?: boolean | undefined;
|
|
918
921
|
}
|
|
919
|
-
/** This abstract class is used internally to hold results about an item number schema removal operation. Item number schemas are removed during the mapping process to allow top-down propagation after conversion, but are then added back to the DTOs to preserve the original source. */
|
|
920
|
-
export interface ItemNumberSchemaMappingOperation {
|
|
921
|
-
}
|
|
922
922
|
/** Indicates a ServiceSpecification's exchange phase, based on the GAEB exchange phases. */
|
|
923
923
|
export declare enum ExchangePhaseDto {
|
|
924
924
|
Undefined = "Undefined",
|
|
@@ -1011,15 +1011,6 @@ export declare enum CommerceInquiryTypeDto {
|
|
|
1011
1011
|
Immediate = "Immediate",
|
|
1012
1012
|
Exhibition = "Exhibition"
|
|
1013
1013
|
}
|
|
1014
|
-
export interface ComplementingPositionData {
|
|
1015
|
-
positionsById?: {
|
|
1016
|
-
[key: string]: PositionDto;
|
|
1017
|
-
} | undefined;
|
|
1018
|
-
basePositions?: {
|
|
1019
|
-
[key: string]: PositionDto;
|
|
1020
|
-
} | undefined;
|
|
1021
|
-
complementingPositionIds?: string[] | undefined;
|
|
1022
|
-
}
|
|
1023
1014
|
/** A Project contains all relevant information for a construction project. */
|
|
1024
1015
|
export interface ProjectDto {
|
|
1025
1016
|
/** Elements GUID identifier. */
|
|
@@ -1,3 +1,51 @@
|
|
|
1
|
+
import { ProjectDto } from "./ava-models";
|
|
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 of 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
|
+
/** Totals for the invoice */
|
|
32
|
+
totals?: InvoiceTotals | undefined;
|
|
33
|
+
/** Instructions how to perform the payment */
|
|
34
|
+
paymentInstructions?: PaymentInstructions | undefined;
|
|
35
|
+
/** Attached documents to the invoice */
|
|
36
|
+
documents?: SupportingDocument[] | undefined;
|
|
37
|
+
/** This is used to list VAT by category, e.g. for invoices
|
|
38
|
+
where parts are in different VAT categories */
|
|
39
|
+
vatBreakdown?: VatBreakdown[] | undefined;
|
|
40
|
+
/** Allowances / deductions on the invoice */
|
|
41
|
+
allowances?: InvoiceAllowance[] | undefined;
|
|
42
|
+
/** Charges / additional costs on the invoice */
|
|
43
|
+
charges?: InvoiceCharge[] | undefined;
|
|
44
|
+
/** Single line items in the invoice */
|
|
45
|
+
lineItems?: InvoiceLineItem[] | undefined;
|
|
46
|
+
/** The source type from which the invoice was created */
|
|
47
|
+
sourceType?: SourceType | undefined;
|
|
48
|
+
}
|
|
1
49
|
/** Type of the invoice */
|
|
2
50
|
export declare enum InvoiceType {
|
|
3
51
|
PartialInvoice = 326,
|
|
@@ -11,7 +59,8 @@ export declare enum InvoiceType {
|
|
|
11
59
|
}
|
|
12
60
|
/** This class holds typical references used in an invoice */
|
|
13
61
|
export interface References {
|
|
14
|
-
/** An internal reference used by the buyer
|
|
62
|
+
/** An internal reference used by the buyer, this can also be used as the
|
|
63
|
+
'Leitweg-ID' in Germany */
|
|
15
64
|
buyerReference?: string | undefined;
|
|
16
65
|
/** Reference to a project */
|
|
17
66
|
projectReference?: string | undefined;
|
|
@@ -28,7 +77,7 @@ export interface References {
|
|
|
28
77
|
/** Reference to a tender or lot */
|
|
29
78
|
tenderOrLotReference?: string | undefined;
|
|
30
79
|
/** Reference to a custom item, e.g. a phone number, person,
|
|
31
|
-
|
|
80
|
+
contract or anything that would identify the invoice in the buyer's system */
|
|
32
81
|
invoicedObjectIdentifier?: string | undefined;
|
|
33
82
|
}
|
|
34
83
|
/** References to previous invoices */
|
|
@@ -40,10 +89,16 @@ export interface PreviousInvoice {
|
|
|
40
89
|
}
|
|
41
90
|
/** Represents an organization, e.g. a buyer or a seller */
|
|
42
91
|
export interface Organization {
|
|
92
|
+
/** The identifier of the organization */
|
|
93
|
+
identifier?: string | undefined;
|
|
43
94
|
/** The name of the organization */
|
|
44
95
|
name?: string | undefined;
|
|
96
|
+
/** A registration number, e.g. a Handelsregisternummer in Germany */
|
|
97
|
+
registrationNumber?: string | undefined;
|
|
45
98
|
/** The VAT ID for the organization */
|
|
46
99
|
vatId?: string | undefined;
|
|
100
|
+
/** The tax ID for the organization */
|
|
101
|
+
taxId?: string | undefined;
|
|
47
102
|
/** An email address for the organization */
|
|
48
103
|
email?: string | undefined;
|
|
49
104
|
/** The name of a contact person */
|
|
@@ -70,7 +125,7 @@ export interface Payee {
|
|
|
70
125
|
/** The identifier of the payee */
|
|
71
126
|
identifier?: string | undefined;
|
|
72
127
|
/** A registered identifier for the payee, e.g. a VAT ID
|
|
73
|
-
|
|
128
|
+
or Tax ID */
|
|
74
129
|
legalRegistrationIdentifier?: string | undefined;
|
|
75
130
|
}
|
|
76
131
|
/** Represents a note / text in an invoice */
|
|
@@ -94,20 +149,20 @@ export interface InvoiceTotals {
|
|
|
94
149
|
/** This is the sum of all allowances (e.g. deductions or withheld tax) in the invoice */
|
|
95
150
|
totalAllowances?: number | undefined;
|
|
96
151
|
/** This is the sum of all charges in the invoice, except VAT. For example, late
|
|
97
|
-
|
|
152
|
+
fees or surcharges. */
|
|
98
153
|
totalCharges?: number | undefined;
|
|
99
154
|
/** This is the total net value of the invoice after applied allowances and charges,
|
|
100
|
-
|
|
155
|
+
meaning the actual net sum to be paid. */
|
|
101
156
|
totalAfterDeductions?: number | undefined;
|
|
102
157
|
/** The total amount of VAT in the invoice. */
|
|
103
158
|
totalVatAmount?: number | undefined;
|
|
104
159
|
/** The total gross amount of the invoice, including all taxes and deductions. */
|
|
105
160
|
totalGross?: number | undefined;
|
|
106
161
|
/** The total amount that has already been paid for this invoice, e.g. used when
|
|
107
|
-
|
|
162
|
+
previous invoice sums are included here that have already been paid. */
|
|
108
163
|
alreadyPaidTotal?: number | undefined;
|
|
109
164
|
/** The sum that needs to be paid for this invoice. This is the total gross amount
|
|
110
|
-
|
|
165
|
+
minus the already paid amount. */
|
|
111
166
|
totalToBePaid?: number | undefined;
|
|
112
167
|
}
|
|
113
168
|
/** Instructions how payment for an invoice should be provided. */
|
|
@@ -115,8 +170,8 @@ export interface PaymentInstructions {
|
|
|
115
170
|
/** Additional text to describe the payment instructions. */
|
|
116
171
|
description?: string | undefined;
|
|
117
172
|
/** This should be a code according to UN/ECE 4461
|
|
118
|
-
|
|
119
|
-
|
|
173
|
+
to identify the type of payment. For example, code "58" means SEPA Credit Transfer,
|
|
174
|
+
and code "30" means non-SEPA Credit Transfer. */
|
|
120
175
|
paymentTypeCode?: string | undefined;
|
|
121
176
|
/** A list of payment means that can be used to pay the invoice. */
|
|
122
177
|
paymentMeans?: PaymentMeans[] | undefined;
|
|
@@ -126,7 +181,7 @@ export interface PaymentMeans {
|
|
|
126
181
|
/** This is typically the IBAN or account number */
|
|
127
182
|
accountIdentifier?: string | undefined;
|
|
128
183
|
/** The name for the account, typically the name of the owner for
|
|
129
|
-
|
|
184
|
+
a bank account. */
|
|
130
185
|
accountName?: string | undefined;
|
|
131
186
|
/** This can be the BIC */
|
|
132
187
|
serviceProviderIdentifier?: string | undefined;
|
|
@@ -146,7 +201,7 @@ export interface SupportingDocument {
|
|
|
146
201
|
/** The type of the document */
|
|
147
202
|
documentMimeType?: AttachmentMimeType | undefined;
|
|
148
203
|
}
|
|
149
|
-
/** Describes a
|
|
204
|
+
/** Describes a mime type of a document */
|
|
150
205
|
export declare enum AttachmentMimeType {
|
|
151
206
|
Unknown = 0,
|
|
152
207
|
Pdf = 1,
|
|
@@ -165,14 +220,14 @@ export interface VatBreakdown {
|
|
|
165
220
|
/** The category of the VAT */
|
|
166
221
|
vatCategory?: VatCategory | undefined;
|
|
167
222
|
/** The actual tax rate as a decimal value,
|
|
168
|
-
|
|
223
|
+
e.g. 19% would be 0.19 */
|
|
169
224
|
taxRate?: number | undefined;
|
|
170
225
|
/** If the VAT is exempt, there should be a description here.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
226
|
+
For example, in reverse charge scenarios, this text
|
|
227
|
+
should contain a reference to "Reverse charge according to ...". */
|
|
228
|
+
vatExemptionReasonText?: string | undefined;
|
|
174
229
|
/** A code from the VAT exemption reason code list(VATEX)“ */
|
|
175
|
-
|
|
230
|
+
vatExemptionReasonCode?: string | undefined;
|
|
176
231
|
}
|
|
177
232
|
/** The category used in a VatBreakdown"/> */
|
|
178
233
|
export declare enum VatCategory {
|
|
@@ -192,15 +247,15 @@ export interface InvoiceAllowance {
|
|
|
192
247
|
/** The net amount of the allowance */
|
|
193
248
|
netAmount?: number | undefined;
|
|
194
249
|
/** If this is a relative / percentage allowance, this should be set
|
|
195
|
-
|
|
250
|
+
and give the base amount that is being used for the calculation */
|
|
196
251
|
relativeAllowanceBaseAmount?: number | undefined;
|
|
197
252
|
/** If this is a relative / percentage allowance, this should be set
|
|
198
|
-
|
|
253
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
199
254
|
relativeAllowancePercentage?: number | undefined;
|
|
200
255
|
/** The VAT category for the allowance */
|
|
201
256
|
vatCategory?: VatCategory | undefined;
|
|
202
257
|
/** The actual tax rate as a decimal value,
|
|
203
|
-
|
|
258
|
+
meaning 19% would be 0.19 */
|
|
204
259
|
vatRate?: number | undefined;
|
|
205
260
|
/** A description of the allowance. */
|
|
206
261
|
reason?: string | undefined;
|
|
@@ -212,15 +267,15 @@ export interface InvoiceCharge {
|
|
|
212
267
|
/** The net amount of the charge */
|
|
213
268
|
netAmount?: number | undefined;
|
|
214
269
|
/** If this is a relative / percentage charge, this should be set
|
|
215
|
-
|
|
270
|
+
and give the base amount that is being used for the calculation */
|
|
216
271
|
relativeChargeBaseAmount?: number | undefined;
|
|
217
272
|
/** If this is a relative / percentage charge, this should be set
|
|
218
|
-
|
|
273
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
219
274
|
relativeChargePercentage?: number | undefined;
|
|
220
275
|
/** The VAT category for the charge */
|
|
221
276
|
vatCategory?: VatCategory | undefined;
|
|
222
277
|
/** The actual tax rate as a decimal value,
|
|
223
|
-
|
|
278
|
+
meaning 19% would be 0.19 */
|
|
224
279
|
vatRate?: number | undefined;
|
|
225
280
|
/** A description of the charge. */
|
|
226
281
|
reason?: string | undefined;
|
|
@@ -234,15 +289,15 @@ export interface InvoiceLineItem {
|
|
|
234
289
|
/** An unstructured note to classify line items */
|
|
235
290
|
note?: string | undefined;
|
|
236
291
|
/** A seller-defined object identifier for this line item,
|
|
237
|
-
|
|
238
|
-
|
|
292
|
+
meaning an identifier for the actual line. This could be
|
|
293
|
+
a numbering sequence or a reference to a product. */
|
|
239
294
|
objectIdentifier?: string | undefined;
|
|
240
295
|
/** The actual invoiced quantity of the line item */
|
|
241
296
|
quantity?: number | undefined;
|
|
242
297
|
/** A code for the unit of the quantity. This should be a code as defined
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
298
|
+
in UN/ECE Recommendation No. 20 „Codes for Units of Measure Used in
|
|
299
|
+
International Trade“ und UN/ECE Recommendation No 21 „Codes for Passengers,
|
|
300
|
+
Types of Cargo, Packages and Packaging Materials(with Complementary Codes for Package Names) */
|
|
246
301
|
unitCode?: string | undefined;
|
|
247
302
|
/** The net amount for this line item */
|
|
248
303
|
netAmount?: number | undefined;
|
|
@@ -268,10 +323,10 @@ export interface LineItemAllowance {
|
|
|
268
323
|
/** The net amount of the allowance */
|
|
269
324
|
netAmount?: number | undefined;
|
|
270
325
|
/** If this is a relative / percentage allowance, this should be set
|
|
271
|
-
|
|
326
|
+
and give the base amount that is being used for the calculation */
|
|
272
327
|
relativeAllowanceBaseAmount?: number | undefined;
|
|
273
328
|
/** If this is a relative / percentage allowance, this should be set
|
|
274
|
-
|
|
329
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
275
330
|
relativeAllowancePercentage?: number | undefined;
|
|
276
331
|
/** A description of the allowance. */
|
|
277
332
|
reason?: string | undefined;
|
|
@@ -283,10 +338,10 @@ export interface LineItemCharge {
|
|
|
283
338
|
/** The net amount of the charge */
|
|
284
339
|
netAmount?: number | undefined;
|
|
285
340
|
/** If this is a relative / percentage charge, this should be set
|
|
286
|
-
|
|
341
|
+
and give the base amount that is being used for the calculation */
|
|
287
342
|
relativeChargeBaseAmount?: number | undefined;
|
|
288
343
|
/** If this is a relative / percentage charge, this should be set
|
|
289
|
-
|
|
344
|
+
and be given in decimal representation, meaning 19% would be 0.19 */
|
|
290
345
|
relativeChargePercentage?: number | undefined;
|
|
291
346
|
/** A description of the charge. */
|
|
292
347
|
reason?: string | undefined;
|
|
@@ -297,11 +352,11 @@ export interface LineItemCharge {
|
|
|
297
352
|
export interface LineItemPriceDetail {
|
|
298
353
|
/** The net price of this line item */
|
|
299
354
|
netPrice?: number | undefined;
|
|
300
|
-
/** A discount for this line item, given
|
|
301
|
-
|
|
302
|
-
|
|
355
|
+
/** A discount for this line item, given as an absolute value. It is essentially the difference between NetPrice (or the list price)
|
|
356
|
+
and the actual invoiced price GrossPrice. */
|
|
357
|
+
absoluteDiscountPerItem?: number | undefined;
|
|
303
358
|
/** The gross price of this line item, meaning the price without taxes
|
|
304
|
-
|
|
359
|
+
that will be invoiced */
|
|
305
360
|
grossPrice?: number | undefined;
|
|
306
361
|
/** The quantity for which this price is valid */
|
|
307
362
|
baseQuantity?: number | undefined;
|
|
@@ -313,7 +368,7 @@ export interface LineItemVatInformation {
|
|
|
313
368
|
/** The VAT category for the charge */
|
|
314
369
|
vatCategory?: VatCategory | undefined;
|
|
315
370
|
/** The actual tax rate as a decimal value,
|
|
316
|
-
|
|
371
|
+
meaning 19% would be 0.19 */
|
|
317
372
|
vatRate?: number | undefined;
|
|
318
373
|
}
|
|
319
374
|
/** Information about a single line item */
|
|
@@ -342,48 +397,36 @@ export interface LineItemAttribute {
|
|
|
342
397
|
/** The value of the attribute */
|
|
343
398
|
value?: string | undefined;
|
|
344
399
|
}
|
|
345
|
-
/** This
|
|
346
|
-
export
|
|
400
|
+
/** This enum represents the source of an invoice, e.g. from which format it was imported */
|
|
401
|
+
export declare enum SourceType {
|
|
402
|
+
Self = 0,
|
|
403
|
+
Ubl = 1,
|
|
404
|
+
Cii = 2
|
|
405
|
+
}
|
|
406
|
+
/** This is a wrapper class that maps Dangl.AVA projects along with additional required information to create invoices */
|
|
407
|
+
export interface AvaProjectWrapper {
|
|
408
|
+
/** The Dangl.AVA.Project from which to convert */
|
|
409
|
+
project?: ProjectDto | undefined;
|
|
347
410
|
/** The number of the invoice */
|
|
348
411
|
invoiceNumber?: string | undefined;
|
|
349
|
-
/**
|
|
350
|
-
|
|
412
|
+
/** Attached documents to the invoice */
|
|
413
|
+
documents?: SupportingDocument[] | undefined;
|
|
414
|
+
/** The period during which the services or goods were delivered */
|
|
415
|
+
invoicePeriod?: InvoicePeriod | undefined;
|
|
416
|
+
/** Instructions how to perform the payment */
|
|
417
|
+
paymentInstructions?: PaymentInstructions | undefined;
|
|
351
418
|
/** The type of the invoice */
|
|
352
419
|
invoiceType?: InvoiceType | undefined;
|
|
353
|
-
/** The three letter ISO currency code */
|
|
354
|
-
currencyCode?: string | undefined;
|
|
355
420
|
/** Until when the payment is due */
|
|
356
421
|
paymentDueDate?: Date | undefined;
|
|
357
|
-
/** An object holding reference used in this invoice */
|
|
358
|
-
references?: References | undefined;
|
|
359
422
|
/** A text description of payment terms, e.g. cash discounts or payment conditions */
|
|
360
423
|
paymentTerms?: string | undefined;
|
|
361
424
|
/** In case of partial of final invoices, it's possible to reference the previous invoice numbers */
|
|
362
425
|
previousInvoices?: PreviousInvoice[] | undefined;
|
|
363
|
-
/**
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
|
|
369
|
-
/** If present, this is an unstructured text that can be used to give additional information
|
|
370
|
-
about the invoice. */
|
|
371
|
-
invoiceNotes?: InvoiceNote[] | undefined;
|
|
372
|
-
/** The period during which the services or goods were delivered */
|
|
373
|
-
invoicePeriod?: InvoicePeriod | undefined;
|
|
374
|
-
/** Totals for the invoice */
|
|
375
|
-
totals?: InvoiceTotals | undefined;
|
|
376
|
-
/** Instructions how to perform the payment */
|
|
377
|
-
paymentInstructions?: PaymentInstructions | undefined;
|
|
378
|
-
/** Attached documents to the invoice */
|
|
379
|
-
documents?: SupportingDocument[] | undefined;
|
|
380
|
-
/** This is used to list VAT by category, e.g. for invoices
|
|
381
|
-
where parts are in different VAT categories */
|
|
382
|
-
vatBreakdown?: VatBreakdown[] | undefined;
|
|
383
|
-
/** Allowances / deductions on the invoice */
|
|
384
|
-
allowances?: InvoiceAllowance[] | undefined;
|
|
385
|
-
/** Charges / additional costs on the invoice */
|
|
386
|
-
charges?: InvoiceCharge[] | undefined;
|
|
387
|
-
/** Single line items in the invoice */
|
|
388
|
-
lineItems?: InvoiceLineItem[] | undefined;
|
|
426
|
+
/** If parts of this invoice (or of previous invoices) have already been paid,
|
|
427
|
+
then this property can be used to specify that some parts of the invoice
|
|
428
|
+
are already paid and this will be deducted from the to be paid amount. */
|
|
429
|
+
alreadyPaidTotalGross?: number | undefined;
|
|
430
|
+
/** An object holding reference used in this invoice */
|
|
431
|
+
references?: References | undefined;
|
|
389
432
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|