@unimaze/billing 0.1.2-rc.10 → 0.1.2-rc.2
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 -11
- package/lib/common/components/attachments/Attachment.d.ts +2 -8
- package/lib/common/components/attachments/Attachment.js +8 -33
- package/lib/common/components/attachments/index.d.ts +2 -9
- package/lib/common/components/attachments/index.js +6 -15
- package/lib/common/components/base-information/index.d.ts +3 -6
- package/lib/common/components/base-information/index.js +81 -100
- package/lib/common/components/billing-lines/index.d.ts +23 -9
- package/lib/common/components/billing-lines/index.js +38 -116
- package/lib/common/components/delivery-location/index.d.ts +2 -5
- package/lib/common/components/delivery-location/index.js +11 -43
- package/lib/common/components/editable-cell/index.d.ts +1 -1
- package/lib/common/components/editable-cell/index.js +10 -76
- package/lib/common/components/editable-row/index.d.ts +5 -5
- package/lib/common/components/editable-row/index.js +6 -8
- package/lib/common/components/index.d.ts +5 -10
- package/lib/common/components/index.js +8 -20
- package/lib/common/components/issuer/index.d.ts +7 -0
- package/lib/common/components/{customer/hardCoddedCustomer.js → issuer/index.js} +8 -5
- package/lib/common/components/payer/index.d.ts +3 -0
- package/lib/common/components/payer/index.js +50 -0
- package/lib/common/components/payment-method/index.d.ts +3 -6
- package/lib/common/components/payment-method/index.js +17 -57
- package/lib/common/consts/validationRules.d.ts +3 -2
- package/lib/common/consts/validationRules.js +7 -0
- package/lib/common/enums/index.d.ts +1 -1
- package/lib/common/enums/index.js +4 -2
- package/lib/common/types/BillingLineMetadataOverride.d.ts +0 -1
- package/lib/create-credit-note/index.d.ts +2 -1
- package/lib/create-credit-note/index.js +14 -6
- package/lib/create-invoice/index.d.ts +2 -1
- package/lib/create-invoice/index.js +21 -79
- package/lib/example/src/index.d.ts +1 -1
- package/lib/index.js +0 -5
- package/lib/src/common/components/attachments/Attachment.d.ts +2 -8
- package/lib/src/common/components/attachments/index.d.ts +2 -9
- package/lib/src/common/components/base-information/index.d.ts +3 -6
- package/lib/src/common/components/billing-lines/index.d.ts +23 -9
- package/lib/src/common/components/delivery-location/index.d.ts +2 -5
- package/lib/src/common/components/editable-cell/index.d.ts +1 -1
- package/lib/src/common/components/editable-row/index.d.ts +5 -5
- package/lib/src/common/components/issuer/index.d.ts +7 -0
- package/lib/src/common/components/payer/index.d.ts +3 -0
- package/lib/src/common/components/payment-method/index.d.ts +3 -6
- package/lib/src/common/consts/validationRules.d.ts +3 -2
- package/lib/src/create-credit-note/index.d.ts +9 -0
- package/lib/src/create-invoice/index.d.ts +2 -1
- package/lib/src/index.d.ts +4 -0
- package/lib/style/index.css +1222 -0
- package/lib/utils/ApiUtility.d.ts +1 -8
- package/lib/utils/ApiUtility.js +1 -17
- package/lib/utils/ConversionUtility.d.ts +4 -5
- package/lib/utils/ConversionUtility.js +133 -121
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/index.js +2 -2
- package/package.json +7 -12
- package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +0 -6
- package/lib/common/components/base-information/ReferenceIdentifiers.js +0 -40
- package/lib/common/components/billing-lines/BillingCalculations.d.ts +0 -11
- package/lib/common/components/billing-lines/BillingCalculations.js +0 -61
- package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +0 -10
- package/lib/common/components/billing-lines/BillingTaxSummary.js +0 -51
- package/lib/common/components/billing-lines/billingLIneFormData.d.ts +0 -7
- package/lib/common/components/billing-lines/billingLIneFormData.js +0 -63
- package/lib/common/components/customer/hardCoddedCustomer.d.ts +0 -7
- package/lib/common/components/customer/index.d.ts +0 -6
- package/lib/common/components/customer/index.js +0 -93
- package/lib/common/components/form-item/index.d.ts +0 -21
- package/lib/common/components/form-item/index.js +0 -27
- package/lib/common/components/locale-intl/index.d.ts +0 -10
- package/lib/common/components/locale-intl/index.js +0 -45
- package/lib/common/components/supplier/index.d.ts +0 -6
- package/lib/common/components/supplier/index.js +0 -93
- package/lib/common/types/ReceiverRequirements.d.ts +0 -81
- package/lib/common/types/ReceiverRequirements.js +0 -379
- package/lib/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -6
- package/lib/src/common/components/billing-lines/BillingCalculations.d.ts +0 -11
- package/lib/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -10
- package/lib/src/common/components/billing-lines/billingLIneFormData.d.ts +0 -7
- package/lib/src/common/components/customer/index.d.ts +0 -6
- package/lib/src/common/components/form-item/index.d.ts +0 -21
- package/lib/src/common/components/index.d.ts +0 -10
- package/lib/src/common/components/locale-intl/index.d.ts +0 -10
- package/lib/src/common/components/supplier/index.d.ts +0 -6
- package/lib/src/common/types/ReceiverRequirements.d.ts +0 -81
- package/lib/src/translations/locales.d.ts +0 -74
- package/lib/src/utils/ApiUtility.d.ts +0 -21
- package/lib/src/utils/BillingLineUtility.d.ts +0 -8
- package/lib/src/utils/ConversionUtility.d.ts +0 -5
- package/lib/src/utils/RequirementsUtility.d.ts +0 -5
- package/lib/src/utils/billingLineFormData.d.ts +0 -7
- package/lib/src/utils/index.d.ts +0 -2
- package/lib/translations/locales/is.json +0 -70
- package/lib/translations/locales.d.ts +0 -74
- package/lib/translations/locales.js +0 -10
- package/lib/utils/BillingLineUtility.d.ts +0 -8
- package/lib/utils/BillingLineUtility.js +0 -66
- package/lib/utils/RequirementsUtility.d.ts +0 -5
- package/lib/utils/RequirementsUtility.js +0 -23
- package/lib/utils/billingLineFormData.d.ts +0 -7
- package/lib/utils/billingLineFormData.js +0 -63
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var AvailableFields;
|
|
4
|
-
(function (AvailableFields) {
|
|
5
|
-
AvailableFields["invoiceNo"] = "invoiceNo";
|
|
6
|
-
AvailableFields["issueDate"] = "issueDate";
|
|
7
|
-
AvailableFields["dueDate"] = "dueDate";
|
|
8
|
-
AvailableFields["graceDate"] = "graceDate";
|
|
9
|
-
AvailableFields["currencyCode"] = "currencyCode";
|
|
10
|
-
AvailableFields["notes"] = "notes";
|
|
11
|
-
AvailableFields["accountingCost"] = "accountingCost";
|
|
12
|
-
AvailableFields["buyerReference"] = "buyerReference";
|
|
13
|
-
AvailableFields["orderReference.documentNo"] = "orderReference.documentNo";
|
|
14
|
-
AvailableFields["billingReferences.invoices"] = "billingReferences.invoices";
|
|
15
|
-
AvailableFields["billingReferences.documentNo"] = "billingReferences.documentNo";
|
|
16
|
-
AvailableFields["billingReferences.issueDate"] = "billingReferences.issueDate";
|
|
17
|
-
AvailableFields["billingReferences.creditNotes"] = "billingReferences.creditNotes";
|
|
18
|
-
AvailableFields["referenceIdentifiers.type"] = "referenceIdentifiers.type";
|
|
19
|
-
AvailableFields["referenceIdentifiers.code"] = "referenceIdentifiers.code";
|
|
20
|
-
AvailableFields["referenceIdentifiers.value"] = "referenceIdentifiers.value";
|
|
21
|
-
AvailableFields["referenceIdentifiers"] = "referenceIdentifiers";
|
|
22
|
-
AvailableFields["supplier.vatNumber"] = "supplier.vatNumber";
|
|
23
|
-
AvailableFields["supplier.address.streetNameAndNumber"] = "supplier.address.streetNameAndNumber";
|
|
24
|
-
AvailableFields["supplier.address.city"] = "supplier.address.city";
|
|
25
|
-
AvailableFields["supplier.address.postalZone"] = "supplier.address.postalZone";
|
|
26
|
-
AvailableFields["supplier.address.countryCode"] = "supplier.address.countryCode";
|
|
27
|
-
AvailableFields["supplier.contact.name"] = "supplier.contact.name";
|
|
28
|
-
AvailableFields["supplier.contact.electronicMail"] = "supplier.contact.electronicMail";
|
|
29
|
-
AvailableFields["supplier.contact.telephone"] = "supplier.contact.telephone";
|
|
30
|
-
AvailableFields["supplier.name"] = "supplier.name";
|
|
31
|
-
AvailableFields["supplier.identifier"] = "supplier.identifier";
|
|
32
|
-
AvailableFields["customer.address.streetNameAndNumber"] = "customer.address.streetNameAndNumber";
|
|
33
|
-
AvailableFields["customer.address.city"] = "customer.address.city";
|
|
34
|
-
AvailableFields["customer.address.postalZone"] = "customer.address.postalZone";
|
|
35
|
-
AvailableFields["customer.address.countryCode"] = "customer.address.countryCode";
|
|
36
|
-
AvailableFields["customer.contact.name"] = "customer.contact.name";
|
|
37
|
-
AvailableFields["customer.contact.electronicMail"] = "customer.contact.electronicMail";
|
|
38
|
-
AvailableFields["customer.contact.telephone"] = "customer.contact.telephone";
|
|
39
|
-
AvailableFields["customer.name"] = "customer.name";
|
|
40
|
-
AvailableFields["customer.identifier"] = "customer.identifier";
|
|
41
|
-
AvailableFields["customer.locationIdentifier"] = "customer.locationIdentifier";
|
|
42
|
-
AvailableFields["payee.name"] = "payee.name";
|
|
43
|
-
AvailableFields["payee.identifier"] = "payee.identifier";
|
|
44
|
-
AvailableFields["payee.sepaBankIdentification"] = "payee.sepaBankIdentification";
|
|
45
|
-
AvailableFields["invoiceLines.itemNo"] = "invoiceLines.itemNo";
|
|
46
|
-
AvailableFields["invoiceLines.name"] = "invoiceLines.name";
|
|
47
|
-
AvailableFields["invoiceLines.quantity"] = "invoiceLines.quantity";
|
|
48
|
-
AvailableFields["invoiceLines.uniteOfMeasure.unit"] = "invoiceLines.unitOfMeasure.unit";
|
|
49
|
-
AvailableFields["invoiceLines.uniteOfMeasure.code"] = "invoiceLines.unitOfMeasure.code";
|
|
50
|
-
AvailableFields["invoiceLines.priceAmount"] = "invoiceLines.priceAmount";
|
|
51
|
-
AvailableFields["invoiceLines.taxCategoryType"] = "invoiceLines.taxCategoryType";
|
|
52
|
-
AvailableFields["invoiceLines.taxableAmount"] = "invoiceLines.taxableAmount";
|
|
53
|
-
AvailableFields["invoiceLines.taxAmount"] = "invoiceLines.taxAmount";
|
|
54
|
-
AvailableFields["invoiceLines.taxPercentage"] = "invoiceLines.taxPercentage";
|
|
55
|
-
AvailableFields["invoiceLines.discountValue"] = "invoiceLines.discountValue";
|
|
56
|
-
AvailableFields["paymentTerms.note"] = "paymentTerms.note";
|
|
57
|
-
AvailableFields["paymentMeans.type"] = "paymentMeans.type";
|
|
58
|
-
AvailableFields["paymentMeans.internationalTransfer"] = "paymentMeans.internationalTransfer";
|
|
59
|
-
AvailableFields["paymentMeans.domesticTransfer"] = "paymentMeans.domesticTransfer";
|
|
60
|
-
AvailableFields["paymentMeans.domesticClaim"] = "paymentMeans.domesticClaim";
|
|
61
|
-
AvailableFields["delivery.partyName"] = "delivery.partyName";
|
|
62
|
-
AvailableFields["delivery.locationIdentifier"] = "delivery.locationIdentifier";
|
|
63
|
-
AvailableFields["delivery.address.streetNameAndNumber"] = "delivery.address.streetNameAndNumber";
|
|
64
|
-
AvailableFields["delivery.address.city"] = "delivery.address.city";
|
|
65
|
-
AvailableFields["delivery.address.postalZone"] = "delivery.address.postalZone";
|
|
66
|
-
AvailableFields["delivery.address.countryCode"] = "delivery.address.countryCode";
|
|
67
|
-
AvailableFields["delivery.actualDeliveryDate"] = "delivery.actualDeliveryDate";
|
|
68
|
-
AvailableFields["prepaidAmount"] = "prepaidAmount";
|
|
69
|
-
AvailableFields["payableAmount"] = "payableAmount";
|
|
70
|
-
AvailableFields["payableRoundingAmount"] = "payableRoundingAmount";
|
|
71
|
-
})(AvailableFields = exports.AvailableFields || (exports.AvailableFields = {}));
|
|
72
|
-
exports.receiverRequirementsObject = {
|
|
73
|
-
invoiceNo: {
|
|
74
|
-
isRequired: true,
|
|
75
|
-
key: "",
|
|
76
|
-
},
|
|
77
|
-
issueDate: {
|
|
78
|
-
isRequired: true,
|
|
79
|
-
key: "",
|
|
80
|
-
},
|
|
81
|
-
dueDate: {
|
|
82
|
-
isRequired: true,
|
|
83
|
-
key: "",
|
|
84
|
-
},
|
|
85
|
-
graceDate: {
|
|
86
|
-
isRequired: false,
|
|
87
|
-
key: "",
|
|
88
|
-
},
|
|
89
|
-
currencyCode: {
|
|
90
|
-
isRequired: true,
|
|
91
|
-
key: "",
|
|
92
|
-
values: [{
|
|
93
|
-
key: "ISK",
|
|
94
|
-
label: "Icelandic krona (ISK)"
|
|
95
|
-
}]
|
|
96
|
-
},
|
|
97
|
-
notes: {
|
|
98
|
-
isRequired: false,
|
|
99
|
-
key: "",
|
|
100
|
-
},
|
|
101
|
-
accountingCost: {
|
|
102
|
-
isRequired: false,
|
|
103
|
-
key: "",
|
|
104
|
-
},
|
|
105
|
-
buyerReference: {
|
|
106
|
-
isRequired: false,
|
|
107
|
-
key: "",
|
|
108
|
-
},
|
|
109
|
-
"orderReference.documentNo": {
|
|
110
|
-
isRequired: true,
|
|
111
|
-
key: "",
|
|
112
|
-
},
|
|
113
|
-
"billingReferences.invoices": {
|
|
114
|
-
isRequired: false,
|
|
115
|
-
key: "",
|
|
116
|
-
},
|
|
117
|
-
"billingReferences.documentNo": {
|
|
118
|
-
isRequired: true,
|
|
119
|
-
key: "",
|
|
120
|
-
},
|
|
121
|
-
"billingReferences.issueDate": {
|
|
122
|
-
isRequired: false,
|
|
123
|
-
key: "",
|
|
124
|
-
},
|
|
125
|
-
"billingReferences.creditNotes": {
|
|
126
|
-
isRequired: false,
|
|
127
|
-
key: "",
|
|
128
|
-
},
|
|
129
|
-
// "referenceIdentifiers.type": {
|
|
130
|
-
// isRequired: false,
|
|
131
|
-
// key: "",
|
|
132
|
-
// label: "Reference identifier type"
|
|
133
|
-
// },
|
|
134
|
-
// "referenceIdentifiers.code": {
|
|
135
|
-
// isRequired: false,
|
|
136
|
-
// key: "",
|
|
137
|
-
// label: "Reference identifier code"
|
|
138
|
-
// },
|
|
139
|
-
// "referenceIdentifiers.value": {
|
|
140
|
-
// isRequired: true,
|
|
141
|
-
// key: "",
|
|
142
|
-
// label: "Reference identifier value"
|
|
143
|
-
// },
|
|
144
|
-
"referenceIdentifiers": {
|
|
145
|
-
"isRequired": true,
|
|
146
|
-
"key": "",
|
|
147
|
-
"values": [
|
|
148
|
-
{
|
|
149
|
-
"key": "AKY",
|
|
150
|
-
"label": "Bílnúmer",
|
|
151
|
-
"values": [
|
|
152
|
-
{
|
|
153
|
-
"key": "NY753",
|
|
154
|
-
"label": "NY753"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"key": "IS123"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"key": "RR888"
|
|
161
|
-
},
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"key": "SSN",
|
|
166
|
-
"label": "Kennitala" // "Social security number"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"key": "LOC",
|
|
170
|
-
"label": "Fasteignanúmer",
|
|
171
|
-
"values": [{
|
|
172
|
-
"key": "30909",
|
|
173
|
-
"label": "Mýrargata 26 (30909)"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"key": "34344",
|
|
177
|
-
"label": "Aragata 1 (34344)"
|
|
178
|
-
},
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
},
|
|
183
|
-
"supplier.vatNumber": {
|
|
184
|
-
isRequired: true,
|
|
185
|
-
key: "",
|
|
186
|
-
},
|
|
187
|
-
"supplier.address.streetNameAndNumber": {
|
|
188
|
-
isRequired: true,
|
|
189
|
-
key: "",
|
|
190
|
-
},
|
|
191
|
-
"supplier.address.city": {
|
|
192
|
-
isRequired: false,
|
|
193
|
-
key: "",
|
|
194
|
-
},
|
|
195
|
-
"supplier.address.postalZone": {
|
|
196
|
-
isRequired: false,
|
|
197
|
-
key: "",
|
|
198
|
-
},
|
|
199
|
-
"supplier.address.countryCode": {
|
|
200
|
-
isRequired: true,
|
|
201
|
-
key: "",
|
|
202
|
-
},
|
|
203
|
-
"supplier.contact.name": {
|
|
204
|
-
isRequired: false,
|
|
205
|
-
key: "",
|
|
206
|
-
},
|
|
207
|
-
"supplier.contact.electronicMail": {
|
|
208
|
-
isRequired: false,
|
|
209
|
-
key: "",
|
|
210
|
-
},
|
|
211
|
-
"supplier.contact.telephone": {
|
|
212
|
-
isRequired: false,
|
|
213
|
-
key: "",
|
|
214
|
-
},
|
|
215
|
-
"supplier.name": {
|
|
216
|
-
isRequired: true,
|
|
217
|
-
key: "",
|
|
218
|
-
},
|
|
219
|
-
"supplier.identifier": {
|
|
220
|
-
isRequired: true,
|
|
221
|
-
key: "",
|
|
222
|
-
},
|
|
223
|
-
"customer.address.streetNameAndNumber": {
|
|
224
|
-
isRequired: true,
|
|
225
|
-
key: "",
|
|
226
|
-
},
|
|
227
|
-
"customer.address.city": {
|
|
228
|
-
isRequired: false,
|
|
229
|
-
key: "",
|
|
230
|
-
},
|
|
231
|
-
"customer.address.postalZone": {
|
|
232
|
-
isRequired: false,
|
|
233
|
-
key: "",
|
|
234
|
-
},
|
|
235
|
-
"customer.address.countryCode": {
|
|
236
|
-
isRequired: true,
|
|
237
|
-
key: "",
|
|
238
|
-
},
|
|
239
|
-
"customer.contact.name": {
|
|
240
|
-
isRequired: false,
|
|
241
|
-
key: "",
|
|
242
|
-
},
|
|
243
|
-
"customer.contact.electronicMail": {
|
|
244
|
-
isRequired: false,
|
|
245
|
-
key: "",
|
|
246
|
-
},
|
|
247
|
-
"customer.contact.telephone": {
|
|
248
|
-
isRequired: false,
|
|
249
|
-
key: "",
|
|
250
|
-
},
|
|
251
|
-
"customer.name": {
|
|
252
|
-
isRequired: true,
|
|
253
|
-
key: "",
|
|
254
|
-
},
|
|
255
|
-
"customer.identifier": {
|
|
256
|
-
isRequired: true,
|
|
257
|
-
key: "",
|
|
258
|
-
},
|
|
259
|
-
"customer.locationIdentifier": {
|
|
260
|
-
isRequired: false,
|
|
261
|
-
key: "",
|
|
262
|
-
},
|
|
263
|
-
"payee.name": {
|
|
264
|
-
isRequired: true,
|
|
265
|
-
key: "",
|
|
266
|
-
},
|
|
267
|
-
"payee.identifier": {
|
|
268
|
-
isRequired: true,
|
|
269
|
-
key: "",
|
|
270
|
-
},
|
|
271
|
-
"payee.sepaBankIdentification": {
|
|
272
|
-
isRequired: false,
|
|
273
|
-
key: "",
|
|
274
|
-
},
|
|
275
|
-
"invoiceLines.itemNo": {
|
|
276
|
-
isRequired: true,
|
|
277
|
-
key: "",
|
|
278
|
-
},
|
|
279
|
-
"invoiceLines.name": {
|
|
280
|
-
isRequired: true,
|
|
281
|
-
key: "",
|
|
282
|
-
},
|
|
283
|
-
"invoiceLines.quantity": {
|
|
284
|
-
isRequired: true,
|
|
285
|
-
key: "",
|
|
286
|
-
},
|
|
287
|
-
"invoiceLines.unitOfMeasure.unit": {
|
|
288
|
-
isRequired: true,
|
|
289
|
-
key: "",
|
|
290
|
-
},
|
|
291
|
-
"invoiceLines.unitOfMeasure.code": {
|
|
292
|
-
isRequired: true,
|
|
293
|
-
key: "",
|
|
294
|
-
},
|
|
295
|
-
"invoiceLines.priceAmount": {
|
|
296
|
-
isRequired: true,
|
|
297
|
-
key: "",
|
|
298
|
-
},
|
|
299
|
-
"invoiceLines.taxCategoryType": {
|
|
300
|
-
isRequired: true,
|
|
301
|
-
key: "",
|
|
302
|
-
},
|
|
303
|
-
"invoiceLines.taxAmount": {
|
|
304
|
-
isRequired: true,
|
|
305
|
-
key: "",
|
|
306
|
-
},
|
|
307
|
-
"invoiceLines.taxableAmount": {
|
|
308
|
-
isRequired: true,
|
|
309
|
-
key: "",
|
|
310
|
-
},
|
|
311
|
-
"invoiceLines.taxPercentage": {
|
|
312
|
-
isRequired: true,
|
|
313
|
-
key: "",
|
|
314
|
-
},
|
|
315
|
-
"invoiceLines.discountValue": {
|
|
316
|
-
isRequired: true,
|
|
317
|
-
key: "",
|
|
318
|
-
},
|
|
319
|
-
"paymentTerms.note": {
|
|
320
|
-
isRequired: false,
|
|
321
|
-
key: "",
|
|
322
|
-
},
|
|
323
|
-
"paymentMeans.type": {
|
|
324
|
-
isRequired: true,
|
|
325
|
-
key: "",
|
|
326
|
-
},
|
|
327
|
-
"paymentMeans.internationalTransfer": {
|
|
328
|
-
isRequired: false,
|
|
329
|
-
key: "",
|
|
330
|
-
},
|
|
331
|
-
"paymentMeans.domesticTransfer": {
|
|
332
|
-
isRequired: false,
|
|
333
|
-
key: "",
|
|
334
|
-
},
|
|
335
|
-
"paymentMeans.domesticClaim": {
|
|
336
|
-
isRequired: false,
|
|
337
|
-
key: "",
|
|
338
|
-
},
|
|
339
|
-
"delivery.partyName": {
|
|
340
|
-
isRequired: false,
|
|
341
|
-
key: "",
|
|
342
|
-
},
|
|
343
|
-
"delivery.locationIdentifier": {
|
|
344
|
-
isRequired: false,
|
|
345
|
-
key: "",
|
|
346
|
-
},
|
|
347
|
-
"delivery.address.streetNameAndNumber": {
|
|
348
|
-
isRequired: false,
|
|
349
|
-
key: "",
|
|
350
|
-
},
|
|
351
|
-
"delivery.address.city": {
|
|
352
|
-
isRequired: false,
|
|
353
|
-
key: "",
|
|
354
|
-
},
|
|
355
|
-
"delivery.address.postalZone": {
|
|
356
|
-
isRequired: false,
|
|
357
|
-
key: "",
|
|
358
|
-
},
|
|
359
|
-
"delivery.address.countryCode": {
|
|
360
|
-
isRequired: false,
|
|
361
|
-
key: "",
|
|
362
|
-
},
|
|
363
|
-
"delivery.actualDeliveryDate": {
|
|
364
|
-
isRequired: false,
|
|
365
|
-
key: "",
|
|
366
|
-
},
|
|
367
|
-
prepaidAmount: {
|
|
368
|
-
isRequired: false,
|
|
369
|
-
key: "",
|
|
370
|
-
},
|
|
371
|
-
payableAmount: {
|
|
372
|
-
isRequired: false,
|
|
373
|
-
key: "",
|
|
374
|
-
},
|
|
375
|
-
payableRoundingAmount: {
|
|
376
|
-
isRequired: false,
|
|
377
|
-
key: "",
|
|
378
|
-
}
|
|
379
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BillingLineMetadataOverride } from "../../types/BillingLineMetadataOverride";
|
|
3
|
-
import { InjectedIntlProps } from "react-intl";
|
|
4
|
-
interface Props extends InjectedIntlProps {
|
|
5
|
-
billingLinesMetadata: BillingLineMetadataOverride[];
|
|
6
|
-
renderCurrencyColumn: (text: string | number) => string;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: React.ComponentClass<Pick<Props, "billingLinesMetadata" | "renderCurrencyColumn">, any> & {
|
|
9
|
-
WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BillingLineMetadataOverride } from "../../types/BillingLineMetadataOverride";
|
|
3
|
-
import { InjectedIntlProps } from "react-intl";
|
|
4
|
-
interface Props extends InjectedIntlProps {
|
|
5
|
-
billingLines: BillingLineMetadataOverride[];
|
|
6
|
-
}
|
|
7
|
-
declare const _default: React.ComponentClass<Pick<Props, "billingLines">, any> & {
|
|
8
|
-
WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BillingLineMetadata } from '@unimaze/api-clients/lib/mapi';
|
|
2
|
-
import { FormInstance } from "antd/es/form";
|
|
3
|
-
import { TaxCategoryTypeEnum } from "@unimaze/api-clients/lib/mapi/api";
|
|
4
|
-
export declare const billingLinesFieldsMetadata: (formInstance: FormInstance) => BillingLineMetadata[];
|
|
5
|
-
export declare const calculateTaxableAmount: (discountValue: string | null | undefined, quantity: number | null, unitPriceAmount: number | null) => number;
|
|
6
|
-
export declare const calculateTaxAmount: (taxableAmount: number, taxPercentage: number) => number;
|
|
7
|
-
export declare const calculateTaxPercentage: (taxCategoryType: TaxCategoryTypeEnum) => number;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AvailableFields, ReceiverRequirements } from "../../types/ReceiverRequirements";
|
|
3
|
-
import { Rule } from "rc-field-form/lib/interface";
|
|
4
|
-
import { InjectedIntlProps } from "react-intl";
|
|
5
|
-
interface StringMap {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
}
|
|
8
|
-
interface Props extends InjectedIntlProps {
|
|
9
|
-
receiverRequirements: ReceiverRequirements;
|
|
10
|
-
receiverRequirementsKey: AvailableFields;
|
|
11
|
-
defaultLabel: React.ReactNode;
|
|
12
|
-
defaultIsRequired: boolean;
|
|
13
|
-
fieldName: string | string[];
|
|
14
|
-
additionalRules?: Rule[];
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
initialValue?: StringMap;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: React.ComponentClass<Pick<Props, "style" | "initialValue" | "fieldName" | "receiverRequirements" | "receiverRequirementsKey" | "defaultLabel" | "defaultIsRequired" | "additionalRules">, any> & {
|
|
19
|
-
WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { default as Attachments } from "./attachments";
|
|
2
|
-
export { default as BaseInformation } from "./base-information";
|
|
3
|
-
export { default as BillingLines } from "./billing-lines";
|
|
4
|
-
export { default as ComponentContainer } from "./component-container";
|
|
5
|
-
export { default as Customer } from "./customer";
|
|
6
|
-
export { default as DeliveryLocation } from "./delivery-location";
|
|
7
|
-
export { default as EditableCell } from "./editable-cell";
|
|
8
|
-
export { default as EditableRow } from "./editable-row";
|
|
9
|
-
export { default as PaymentMethod } from "./payment-method";
|
|
10
|
-
export { default as Supplier } from "./supplier";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import "moment/locale/is";
|
|
3
|
-
import "moment/locale/sr";
|
|
4
|
-
interface IHotSwappingIntlProviderOwnProps {
|
|
5
|
-
initialLocale: string;
|
|
6
|
-
initialMessages: any;
|
|
7
|
-
languageString?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const HotIntlProvider: React.FC<IHotSwappingIntlProviderOwnProps>;
|
|
10
|
-
export default HotIntlProvider;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
interface Values {
|
|
2
|
-
key?: string;
|
|
3
|
-
label?: string;
|
|
4
|
-
values?: Values[];
|
|
5
|
-
}
|
|
6
|
-
interface FieldRequirement extends Values {
|
|
7
|
-
isRequired: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare type ReceiverRequirements = {
|
|
10
|
-
[key in AvailableFields]?: FieldRequirement;
|
|
11
|
-
};
|
|
12
|
-
export declare enum AvailableFields {
|
|
13
|
-
"invoiceNo" = "invoiceNo",
|
|
14
|
-
"issueDate" = "issueDate",
|
|
15
|
-
"dueDate" = "dueDate",
|
|
16
|
-
"graceDate" = "graceDate",
|
|
17
|
-
"currencyCode" = "currencyCode",
|
|
18
|
-
"notes" = "notes",
|
|
19
|
-
"accountingCost" = "accountingCost",
|
|
20
|
-
"buyerReference" = "buyerReference",
|
|
21
|
-
"orderReference.documentNo" = "orderReference.documentNo",
|
|
22
|
-
"billingReferences.invoices" = "billingReferences.invoices",
|
|
23
|
-
"billingReferences.documentNo" = "billingReferences.documentNo",
|
|
24
|
-
"billingReferences.issueDate" = "billingReferences.issueDate",
|
|
25
|
-
"billingReferences.creditNotes" = "billingReferences.creditNotes",
|
|
26
|
-
"referenceIdentifiers.type" = "referenceIdentifiers.type",
|
|
27
|
-
"referenceIdentifiers.code" = "referenceIdentifiers.code",
|
|
28
|
-
"referenceIdentifiers.value" = "referenceIdentifiers.value",
|
|
29
|
-
"referenceIdentifiers" = "referenceIdentifiers",
|
|
30
|
-
"supplier.vatNumber" = "supplier.vatNumber",
|
|
31
|
-
"supplier.address.streetNameAndNumber" = "supplier.address.streetNameAndNumber",
|
|
32
|
-
"supplier.address.city" = "supplier.address.city",
|
|
33
|
-
"supplier.address.postalZone" = "supplier.address.postalZone",
|
|
34
|
-
"supplier.address.countryCode" = "supplier.address.countryCode",
|
|
35
|
-
"supplier.contact.name" = "supplier.contact.name",
|
|
36
|
-
"supplier.contact.electronicMail" = "supplier.contact.electronicMail",
|
|
37
|
-
"supplier.contact.telephone" = "supplier.contact.telephone",
|
|
38
|
-
"supplier.name" = "supplier.name",
|
|
39
|
-
"supplier.identifier" = "supplier.identifier",
|
|
40
|
-
"customer.address.streetNameAndNumber" = "customer.address.streetNameAndNumber",
|
|
41
|
-
"customer.address.city" = "customer.address.city",
|
|
42
|
-
"customer.address.postalZone" = "customer.address.postalZone",
|
|
43
|
-
"customer.address.countryCode" = "customer.address.countryCode",
|
|
44
|
-
"customer.contact.name" = "customer.contact.name",
|
|
45
|
-
"customer.contact.electronicMail" = "customer.contact.electronicMail",
|
|
46
|
-
"customer.contact.telephone" = "customer.contact.telephone",
|
|
47
|
-
"customer.name" = "customer.name",
|
|
48
|
-
"customer.identifier" = "customer.identifier",
|
|
49
|
-
"customer.locationIdentifier" = "customer.locationIdentifier",
|
|
50
|
-
"payee.name" = "payee.name",
|
|
51
|
-
"payee.identifier" = "payee.identifier",
|
|
52
|
-
"payee.sepaBankIdentification" = "payee.sepaBankIdentification",
|
|
53
|
-
"invoiceLines.itemNo" = "invoiceLines.itemNo",
|
|
54
|
-
"invoiceLines.name" = "invoiceLines.name",
|
|
55
|
-
"invoiceLines.quantity" = "invoiceLines.quantity",
|
|
56
|
-
"invoiceLines.uniteOfMeasure.unit" = "invoiceLines.unitOfMeasure.unit",
|
|
57
|
-
"invoiceLines.uniteOfMeasure.code" = "invoiceLines.unitOfMeasure.code",
|
|
58
|
-
"invoiceLines.priceAmount" = "invoiceLines.priceAmount",
|
|
59
|
-
"invoiceLines.taxCategoryType" = "invoiceLines.taxCategoryType",
|
|
60
|
-
"invoiceLines.taxableAmount" = "invoiceLines.taxableAmount",
|
|
61
|
-
"invoiceLines.taxAmount" = "invoiceLines.taxAmount",
|
|
62
|
-
"invoiceLines.taxPercentage" = "invoiceLines.taxPercentage",
|
|
63
|
-
"invoiceLines.discountValue" = "invoiceLines.discountValue",
|
|
64
|
-
"paymentTerms.note" = "paymentTerms.note",
|
|
65
|
-
"paymentMeans.type" = "paymentMeans.type",
|
|
66
|
-
"paymentMeans.internationalTransfer" = "paymentMeans.internationalTransfer",
|
|
67
|
-
"paymentMeans.domesticTransfer" = "paymentMeans.domesticTransfer",
|
|
68
|
-
"paymentMeans.domesticClaim" = "paymentMeans.domesticClaim",
|
|
69
|
-
"delivery.partyName" = "delivery.partyName",
|
|
70
|
-
"delivery.locationIdentifier" = "delivery.locationIdentifier",
|
|
71
|
-
"delivery.address.streetNameAndNumber" = "delivery.address.streetNameAndNumber",
|
|
72
|
-
"delivery.address.city" = "delivery.address.city",
|
|
73
|
-
"delivery.address.postalZone" = "delivery.address.postalZone",
|
|
74
|
-
"delivery.address.countryCode" = "delivery.address.countryCode",
|
|
75
|
-
"delivery.actualDeliveryDate" = "delivery.actualDeliveryDate",
|
|
76
|
-
"prepaidAmount" = "prepaidAmount",
|
|
77
|
-
"payableAmount" = "payableAmount",
|
|
78
|
-
"payableRoundingAmount" = "payableRoundingAmount"
|
|
79
|
-
}
|
|
80
|
-
export { ReceiverRequirements, FieldRequirement };
|
|
81
|
-
export declare const receiverRequirementsObject: ReceiverRequirements;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {};
|
|
3
|
-
is: {
|
|
4
|
-
"attachment_labels_Reference": string;
|
|
5
|
-
"attachment_labels_Reference_requiredMessage": string;
|
|
6
|
-
"attachment_labels_Description": string;
|
|
7
|
-
"attachment_labels_Description_requiredMessage": string;
|
|
8
|
-
"attachment_labels_File": string;
|
|
9
|
-
"attachment_title": string;
|
|
10
|
-
"baseInformation_title": string;
|
|
11
|
-
"baseInformation_invoiceNo": string;
|
|
12
|
-
"baseInformation_issueDate": string;
|
|
13
|
-
"baseInformation_dueDate": string;
|
|
14
|
-
"baseInformation_orderReference_documentNo": string;
|
|
15
|
-
"baseInformation_notes": string;
|
|
16
|
-
"baseInformation_currencyCode": string;
|
|
17
|
-
"billingCalculations_labels_TaxAmountWithoutVat": string;
|
|
18
|
-
"billingCalculations_labels_TotalVatAmount": string;
|
|
19
|
-
"billingCalculations_labels_TotalAmountWithVat": string;
|
|
20
|
-
"billingTaxSummary_taxOverview": string;
|
|
21
|
-
"billingTaxSummary_taxableAmount": string;
|
|
22
|
-
"billingTaxSummary_taxAmount": string;
|
|
23
|
-
"billingLines_title": string;
|
|
24
|
-
"billingLines_itemNo": string;
|
|
25
|
-
"billingLines_name": string;
|
|
26
|
-
"billingLines_quantity": string;
|
|
27
|
-
"billingLines_unitOfMeasure": string;
|
|
28
|
-
"billingLines_unitPriceAmount": string;
|
|
29
|
-
"billingLines_taxCategoryType": string;
|
|
30
|
-
"billingLines_taxCategoryPercentage": string;
|
|
31
|
-
"billingLines_discount": string;
|
|
32
|
-
"billingLines_lineAmount": string;
|
|
33
|
-
"billingLines_taxAmount": string;
|
|
34
|
-
"billingLines_button_addRow": string;
|
|
35
|
-
"deliveryLocation_title": string;
|
|
36
|
-
"deliveryLocation_partyName": string;
|
|
37
|
-
"deliveryLocation_streetNameAndNumber": string;
|
|
38
|
-
"deliveryLocation_postalZone": string;
|
|
39
|
-
"deliveryLocation_city": string;
|
|
40
|
-
"deliveryLocation_countryCode": string;
|
|
41
|
-
"formItem_required_errorMessage": string;
|
|
42
|
-
"paymentMethod_labels_domesticTransfer_bankNo": string;
|
|
43
|
-
"paymentMethod_labels_domesticTransfer_typeNo": string;
|
|
44
|
-
"paymentMethod_labels_domesticTransfer_accountNo": string;
|
|
45
|
-
"paymentMethod_labels_domesticTransfer_paymentReference": string;
|
|
46
|
-
"paymentMethod_labels_icelandicClaim_bankNo": string;
|
|
47
|
-
"paymentMethod_labels_icelandicClaim_claimNo": string;
|
|
48
|
-
"paymentMethod_labels_methods_undefined": string;
|
|
49
|
-
"paymentMethod_labels_methods_mutuallyAgreed": string;
|
|
50
|
-
"paymentMethod_labels_methods_domesticTransfer": string;
|
|
51
|
-
"paymentMethod_labels_methods_domesticClaim": string;
|
|
52
|
-
"supplier_title": string;
|
|
53
|
-
"supplier_name": string;
|
|
54
|
-
"supplier_identifier": string;
|
|
55
|
-
"supplier_vatNumber": string;
|
|
56
|
-
"supplier_address_streetNameAndNumber": string;
|
|
57
|
-
"supplier_address_zip_postalCode": string;
|
|
58
|
-
"supplier_address_city": string;
|
|
59
|
-
"supplier_address_countryCode": string;
|
|
60
|
-
"supplier_contact_email": string;
|
|
61
|
-
"supplier_contact_name": string;
|
|
62
|
-
"supplier_notValidEmail": string;
|
|
63
|
-
"customer_title": string;
|
|
64
|
-
"customer_name": string;
|
|
65
|
-
"customer_identifier": string;
|
|
66
|
-
"customer_address_streetNameAndNumber": string;
|
|
67
|
-
"customer_address_zip_postalCode": string;
|
|
68
|
-
"customer_address_city": string;
|
|
69
|
-
"customer_address_countryCode": string;
|
|
70
|
-
"customer_contact_email": string;
|
|
71
|
-
"customer_contact_name": string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { mapi } from "@unimaze/api-clients";
|
|
2
|
-
import { InvoiceMetadataInput, TransactionProcessingMode } from "@unimaze/api-clients/lib/mapi/api";
|
|
3
|
-
import { AxiosPromise } from "axios";
|
|
4
|
-
import { LanguageProp } from "../common/types/CommonProps";
|
|
5
|
-
interface CreateSubmitInvoice {
|
|
6
|
-
messageId: string;
|
|
7
|
-
more: boolean;
|
|
8
|
-
conversationIdentifier?: string;
|
|
9
|
-
processingMode?: TransactionProcessingMode;
|
|
10
|
-
services?: string[];
|
|
11
|
-
invoiceMetadataInput?: InvoiceMetadataInput;
|
|
12
|
-
}
|
|
13
|
-
interface AttachDocument {
|
|
14
|
-
messageId: string;
|
|
15
|
-
name: string;
|
|
16
|
-
contentType: string;
|
|
17
|
-
more: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const submitDocument: (data: any, attachDocument: AttachDocument, mapiBaseUrl: string, apiKey?: string | undefined) => AxiosPromise<mapi.MessageOutput>;
|
|
20
|
-
declare const submitInvoice: (createSubmitInvoice: CreateSubmitInvoice, mapiBaseUrl: string, apiKey?: string | undefined, callName?: string | undefined, language?: LanguageProp) => AxiosPromise<mapi.MessageOutput>;
|
|
21
|
-
export { submitInvoice, CreateSubmitInvoice, submitDocument, AttachDocument };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BillingLineMetadata } from '@unimaze/api-clients/lib/mapi';
|
|
2
|
-
import { FormInstance } from "antd/es/form";
|
|
3
|
-
import { TaxCategoryTypeEnum } from "@unimaze/api-clients/lib/mapi/api";
|
|
4
|
-
export declare const billingLinesFieldsMetadata: (formInstance: FormInstance) => BillingLineMetadata[];
|
|
5
|
-
export declare const calculateTaxableAmount: (discountValue: string | null | undefined, quantity: number | null, unitPriceAmount: number | null) => number;
|
|
6
|
-
export declare const calculateTaxAmount: (taxableAmount: number, taxPercentage: number) => number;
|
|
7
|
-
export declare const calculateTaxPercentage: (taxCategoryType: TaxCategoryTypeEnum) => number;
|
|
8
|
-
export declare const generateTaxCategoryLabel: (taxCategoryType: TaxCategoryTypeEnum) => string;
|