@unimaze/billing 0.1.2-rc.9 → 0.2.0
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/lib/common/components/attachments/Attachment.d.ts +6 -5
- package/lib/common/components/attachments/Attachment.js +75 -18
- package/lib/common/components/attachments/index.d.ts +5 -6
- package/lib/common/components/attachments/index.js +20 -6
- package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +17 -0
- package/lib/common/components/base-information/ReferenceIdentifiers.js +58 -0
- package/lib/common/components/base-information/index.d.ts +6 -3
- package/lib/common/components/base-information/index.js +86 -10
- package/lib/common/components/billing-lines/BillingCalculations.d.ts +11 -0
- package/lib/common/components/billing-lines/BillingCalculations.js +63 -0
- package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +10 -0
- package/lib/common/components/billing-lines/BillingTaxSummary.js +53 -0
- package/lib/common/components/billing-lines/NewBillingLines.d.ts +10 -0
- package/lib/common/components/billing-lines/NewBillingLines.js +77 -0
- package/lib/common/components/billing-lines/index.d.ts +7 -15
- package/lib/common/components/billing-lines/index.js +177 -62
- package/lib/common/components/customer/hardCoddedCustomer.d.ts +7 -0
- package/lib/common/components/customer/hardCoddedCustomer.js +25 -0
- package/lib/common/components/customer/index.d.ts +5 -6
- package/lib/common/components/customer/index.js +125 -12
- package/lib/common/components/delivery-location/index.d.ts +5 -2
- package/lib/common/components/delivery-location/index.js +69 -8
- package/lib/common/components/editable-cell/index.js +7 -9
- package/lib/common/components/form-item/index.d.ts +12 -7
- package/lib/common/components/form-item/index.js +31 -7
- package/lib/common/components/locale-intl/index.d.ts +10 -0
- package/lib/common/components/locale-intl/index.js +45 -0
- package/lib/common/components/payment-method/index.d.ts +6 -3
- package/lib/common/components/payment-method/index.js +136 -16
- package/lib/common/components/payment-method/paymentMethodForConversion.d.ts +9 -0
- package/lib/common/components/payment-method/paymentMethodForConversion.js +44 -0
- package/lib/common/components/supplier/index.d.ts +9 -2
- package/lib/common/components/supplier/index.js +125 -24
- package/lib/common/consts/formLayout.d.ts +44 -0
- package/lib/common/consts/formLayout.js +35 -0
- package/lib/common/consts/validationRules.js +0 -7
- package/lib/common/types/ReceiverRequirements.d.ts +1 -1
- package/lib/common/types/ReceiverRequirements.js +8 -69
- package/lib/create-credit-note/index.js +3 -5
- package/lib/create-invoice/index.js +107 -43
- package/lib/src/common/components/attachments/Attachment.d.ts +6 -5
- package/lib/src/common/components/attachments/index.d.ts +5 -6
- package/lib/src/common/components/base-information/ReferenceIdentifiers.d.ts +17 -0
- package/lib/src/common/components/base-information/index.d.ts +6 -3
- package/lib/src/common/components/billing-lines/BillingCalculations.d.ts +11 -0
- package/lib/src/common/components/billing-lines/BillingTaxSummary.d.ts +10 -0
- package/lib/src/common/components/billing-lines/NewBillingLines.d.ts +10 -0
- package/lib/src/common/components/billing-lines/index.d.ts +7 -15
- package/lib/src/common/components/customer/index.d.ts +5 -6
- package/lib/src/common/components/delivery-location/index.d.ts +5 -2
- package/lib/src/common/components/form-item/index.d.ts +12 -7
- package/lib/src/common/components/locale-intl/index.d.ts +10 -0
- package/lib/src/common/components/payment-method/index.d.ts +6 -3
- package/lib/src/common/components/payment-method/paymentMethodForConversion.d.ts +9 -0
- package/lib/src/common/components/supplier/index.d.ts +9 -2
- package/lib/src/common/consts/formLayout.d.ts +44 -0
- package/lib/src/common/types/ReceiverRequirements.d.ts +1 -1
- package/lib/src/translations/locales.d.ts +77 -0
- package/lib/src/utils/BillingLineUtility.d.ts +10 -0
- package/lib/src/utils/ConversionUtility.d.ts +4 -4
- package/lib/translations/locales/is.json +73 -0
- package/lib/translations/locales.d.ts +77 -0
- package/lib/translations/locales.js +10 -0
- package/lib/utils/ApiUtility.js +1 -1
- package/lib/utils/BillingLineUtility.d.ts +10 -0
- package/lib/utils/BillingLineUtility.js +90 -0
- package/lib/utils/ConversionUtility.d.ts +4 -4
- package/lib/utils/ConversionUtility.js +39 -55
- package/lib/utils/RequirementsUtility.js +1 -1
- package/package.json +9 -6
- package/lib/common/components/billing-lines/BillingLIneFormData.d.ts +0 -6
- package/lib/common/components/billing-lines/BillingLIneFormData.js +0 -6
- package/lib/src/common/components/billing-lines/BillingLIneFormData.d.ts +0 -6
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const formItemLayout: {
|
|
2
|
+
labelCol: {
|
|
3
|
+
xs: {
|
|
4
|
+
span: number;
|
|
5
|
+
};
|
|
6
|
+
sm: {
|
|
7
|
+
span: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
wrapperCol: {
|
|
11
|
+
xs: {
|
|
12
|
+
span: number;
|
|
13
|
+
};
|
|
14
|
+
sm: {
|
|
15
|
+
span: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare const formItemVerticalLayout: {
|
|
20
|
+
labelCol: {
|
|
21
|
+
span: number;
|
|
22
|
+
};
|
|
23
|
+
wrapperCol: {
|
|
24
|
+
span: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare const fullWidthInput: {
|
|
28
|
+
wrapperCol: {
|
|
29
|
+
span: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
declare const formItemLayoutWithOutLabel: {
|
|
33
|
+
wrapperCol: {
|
|
34
|
+
xs: {
|
|
35
|
+
span: number;
|
|
36
|
+
offset: number;
|
|
37
|
+
};
|
|
38
|
+
sm: {
|
|
39
|
+
span: number;
|
|
40
|
+
offset: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export { formItemLayout, formItemVerticalLayout, fullWidthInput, formItemLayoutWithOutLabel };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var formItemLayout = {
|
|
4
|
+
labelCol: {
|
|
5
|
+
xs: { span: 24 },
|
|
6
|
+
sm: { span: 8 },
|
|
7
|
+
},
|
|
8
|
+
wrapperCol: {
|
|
9
|
+
xs: { span: 24 },
|
|
10
|
+
sm: { span: 16 },
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
exports.formItemLayout = formItemLayout;
|
|
14
|
+
var formItemVerticalLayout = {
|
|
15
|
+
labelCol: {
|
|
16
|
+
span: 24,
|
|
17
|
+
},
|
|
18
|
+
wrapperCol: {
|
|
19
|
+
span: 24,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
exports.formItemVerticalLayout = formItemVerticalLayout;
|
|
23
|
+
var fullWidthInput = {
|
|
24
|
+
wrapperCol: {
|
|
25
|
+
span: 24,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
exports.fullWidthInput = fullWidthInput;
|
|
29
|
+
var formItemLayoutWithOutLabel = {
|
|
30
|
+
wrapperCol: {
|
|
31
|
+
xs: { span: 24, offset: 0 },
|
|
32
|
+
sm: { span: 16, offset: 8 },
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
exports.formItemLayoutWithOutLabel = formItemLayoutWithOutLabel;
|
|
@@ -10,37 +10,30 @@ exports.validationRules = {
|
|
|
10
10
|
name: [
|
|
11
11
|
{
|
|
12
12
|
required: true,
|
|
13
|
-
message: "Please insert item name",
|
|
14
13
|
}
|
|
15
14
|
],
|
|
16
15
|
unitOfMeasure: [
|
|
17
16
|
{
|
|
18
17
|
required: true,
|
|
19
|
-
message: "Please choose unit of measure",
|
|
20
18
|
},
|
|
21
19
|
{
|
|
22
20
|
enum: Object.keys(models_1.UnitOfMeasureMetadataUnitEnum),
|
|
23
|
-
message: "Unit of measure must be one of the accepted values",
|
|
24
21
|
},
|
|
25
22
|
],
|
|
26
23
|
unitPriceAmount: [
|
|
27
24
|
{
|
|
28
25
|
required: true,
|
|
29
|
-
message: "Please fill in unit price amount",
|
|
30
26
|
},
|
|
31
27
|
{
|
|
32
28
|
type: "number",
|
|
33
|
-
message: "Unit price amount mu st be a number",
|
|
34
29
|
}
|
|
35
30
|
],
|
|
36
31
|
taxCategoryType: [
|
|
37
32
|
{
|
|
38
33
|
required: true,
|
|
39
|
-
message: "Please choose tax category type",
|
|
40
34
|
},
|
|
41
35
|
{
|
|
42
36
|
enum: Object.keys(models_1.BillingLineMetadataTaxCategoryTypeEnum),
|
|
43
|
-
message: "Tax category must be one of the accepted values",
|
|
44
37
|
},
|
|
45
38
|
],
|
|
46
39
|
discountValue: [],
|
|
@@ -55,7 +55,7 @@ export declare enum AvailableFields {
|
|
|
55
55
|
"invoiceLines.quantity" = "invoiceLines.quantity",
|
|
56
56
|
"invoiceLines.uniteOfMeasure.unit" = "invoiceLines.unitOfMeasure.unit",
|
|
57
57
|
"invoiceLines.uniteOfMeasure.code" = "invoiceLines.unitOfMeasure.code",
|
|
58
|
-
"invoiceLines.
|
|
58
|
+
"invoiceLines.unitPriceAmount" = "invoiceLines.unitPriceAmount",
|
|
59
59
|
"invoiceLines.taxCategoryType" = "invoiceLines.taxCategoryType",
|
|
60
60
|
"invoiceLines.taxableAmount" = "invoiceLines.taxableAmount",
|
|
61
61
|
"invoiceLines.taxAmount" = "invoiceLines.taxAmount",
|
|
@@ -47,7 +47,7 @@ var AvailableFields;
|
|
|
47
47
|
AvailableFields["invoiceLines.quantity"] = "invoiceLines.quantity";
|
|
48
48
|
AvailableFields["invoiceLines.uniteOfMeasure.unit"] = "invoiceLines.unitOfMeasure.unit";
|
|
49
49
|
AvailableFields["invoiceLines.uniteOfMeasure.code"] = "invoiceLines.unitOfMeasure.code";
|
|
50
|
-
AvailableFields["invoiceLines.
|
|
50
|
+
AvailableFields["invoiceLines.unitPriceAmount"] = "invoiceLines.unitPriceAmount";
|
|
51
51
|
AvailableFields["invoiceLines.taxCategoryType"] = "invoiceLines.taxCategoryType";
|
|
52
52
|
AvailableFields["invoiceLines.taxableAmount"] = "invoiceLines.taxableAmount";
|
|
53
53
|
AvailableFields["invoiceLines.taxAmount"] = "invoiceLines.taxAmount";
|
|
@@ -73,72 +73,60 @@ exports.receiverRequirementsObject = {
|
|
|
73
73
|
invoiceNo: {
|
|
74
74
|
isRequired: true,
|
|
75
75
|
key: "",
|
|
76
|
-
label: "Invoice number"
|
|
77
76
|
},
|
|
78
77
|
issueDate: {
|
|
79
78
|
isRequired: true,
|
|
80
79
|
key: "",
|
|
81
|
-
label: "Issue date"
|
|
82
80
|
},
|
|
83
81
|
dueDate: {
|
|
84
82
|
isRequired: true,
|
|
85
83
|
key: "",
|
|
86
|
-
label: "Due date"
|
|
87
84
|
},
|
|
88
85
|
graceDate: {
|
|
89
86
|
isRequired: false,
|
|
90
87
|
key: "",
|
|
91
|
-
label: "Grace date"
|
|
92
88
|
},
|
|
93
89
|
currencyCode: {
|
|
94
90
|
isRequired: true,
|
|
95
91
|
key: "",
|
|
96
|
-
label: "Currency code",
|
|
97
92
|
values: [{
|
|
98
93
|
key: "ISK",
|
|
99
|
-
label: "Icelandic krona (ISK)"
|
|
94
|
+
// label: "Icelandic krona (ISK)"
|
|
95
|
+
label: "Íslensk króna (ISK)"
|
|
100
96
|
}]
|
|
101
97
|
},
|
|
102
98
|
notes: {
|
|
103
99
|
isRequired: false,
|
|
104
100
|
key: "",
|
|
105
|
-
label: "Notes"
|
|
106
101
|
},
|
|
107
102
|
accountingCost: {
|
|
108
103
|
isRequired: false,
|
|
109
104
|
key: "",
|
|
110
|
-
label: "Accounting cost",
|
|
111
|
-
values: [{ key: "asdfasd", label: "asdf" },]
|
|
112
105
|
},
|
|
113
106
|
buyerReference: {
|
|
114
|
-
isRequired:
|
|
107
|
+
isRequired: true,
|
|
115
108
|
key: "",
|
|
116
|
-
label: "
|
|
109
|
+
label: "Claim number"
|
|
117
110
|
},
|
|
118
111
|
"orderReference.documentNo": {
|
|
119
112
|
isRequired: true,
|
|
120
113
|
key: "",
|
|
121
|
-
label: "Order no"
|
|
122
114
|
},
|
|
123
115
|
"billingReferences.invoices": {
|
|
124
116
|
isRequired: false,
|
|
125
117
|
key: "",
|
|
126
|
-
label: "Billing references Invoice"
|
|
127
118
|
},
|
|
128
119
|
"billingReferences.documentNo": {
|
|
129
120
|
isRequired: true,
|
|
130
121
|
key: "",
|
|
131
|
-
label: "Billing references Document number"
|
|
132
122
|
},
|
|
133
123
|
"billingReferences.issueDate": {
|
|
134
124
|
isRequired: false,
|
|
135
125
|
key: "",
|
|
136
|
-
label: "Billing references Issue Date"
|
|
137
126
|
},
|
|
138
127
|
"billingReferences.creditNotes": {
|
|
139
128
|
isRequired: false,
|
|
140
129
|
key: "",
|
|
141
|
-
label: "Billing References Credit notes"
|
|
142
130
|
},
|
|
143
131
|
// "referenceIdentifiers.type": {
|
|
144
132
|
// isRequired: false,
|
|
@@ -176,7 +164,7 @@ exports.receiverRequirementsObject = {
|
|
|
176
164
|
]
|
|
177
165
|
},
|
|
178
166
|
{
|
|
179
|
-
"key": "
|
|
167
|
+
"key": "ARR",
|
|
180
168
|
"label": "Kennitala" // "Social security number"
|
|
181
169
|
},
|
|
182
170
|
{
|
|
@@ -195,248 +183,199 @@ exports.receiverRequirementsObject = {
|
|
|
195
183
|
]
|
|
196
184
|
},
|
|
197
185
|
"supplier.vatNumber": {
|
|
198
|
-
isRequired:
|
|
186
|
+
isRequired: false,
|
|
199
187
|
key: "",
|
|
200
|
-
label: "VAT number"
|
|
201
188
|
},
|
|
202
189
|
"supplier.address.streetNameAndNumber": {
|
|
203
190
|
isRequired: true,
|
|
204
191
|
key: "",
|
|
205
|
-
label: "Street name and number"
|
|
206
192
|
},
|
|
207
193
|
"supplier.address.city": {
|
|
208
194
|
isRequired: false,
|
|
209
195
|
key: "",
|
|
210
|
-
label: "City"
|
|
211
196
|
},
|
|
212
197
|
"supplier.address.postalZone": {
|
|
213
198
|
isRequired: false,
|
|
214
199
|
key: "",
|
|
215
|
-
label: "Postal zone"
|
|
216
200
|
},
|
|
217
201
|
"supplier.address.countryCode": {
|
|
218
202
|
isRequired: true,
|
|
219
203
|
key: "",
|
|
220
|
-
label: "Country code"
|
|
221
204
|
},
|
|
222
205
|
"supplier.contact.name": {
|
|
223
206
|
isRequired: false,
|
|
224
207
|
key: "",
|
|
225
|
-
label: "Contact name"
|
|
226
208
|
},
|
|
227
209
|
"supplier.contact.electronicMail": {
|
|
228
210
|
isRequired: false,
|
|
229
211
|
key: "",
|
|
230
|
-
label: "E-mail"
|
|
231
212
|
},
|
|
232
213
|
"supplier.contact.telephone": {
|
|
233
214
|
isRequired: false,
|
|
234
215
|
key: "",
|
|
235
|
-
label: "Contact phone"
|
|
236
216
|
},
|
|
237
217
|
"supplier.name": {
|
|
238
218
|
isRequired: true,
|
|
239
219
|
key: "",
|
|
240
|
-
label: "Name"
|
|
241
220
|
},
|
|
242
221
|
"supplier.identifier": {
|
|
243
222
|
isRequired: true,
|
|
244
223
|
key: "",
|
|
245
|
-
label: "Identifier"
|
|
246
224
|
},
|
|
247
225
|
"customer.address.streetNameAndNumber": {
|
|
248
226
|
isRequired: true,
|
|
249
227
|
key: "",
|
|
250
|
-
label: "Customer street name and number"
|
|
251
228
|
},
|
|
252
229
|
"customer.address.city": {
|
|
253
230
|
isRequired: false,
|
|
254
231
|
key: "",
|
|
255
|
-
label: "Customer city"
|
|
256
232
|
},
|
|
257
233
|
"customer.address.postalZone": {
|
|
258
234
|
isRequired: false,
|
|
259
235
|
key: "",
|
|
260
|
-
label: "Customer postal zone"
|
|
261
236
|
},
|
|
262
237
|
"customer.address.countryCode": {
|
|
263
238
|
isRequired: true,
|
|
264
239
|
key: "",
|
|
265
|
-
label: "Customer country code"
|
|
266
240
|
},
|
|
267
241
|
"customer.contact.name": {
|
|
268
242
|
isRequired: false,
|
|
269
243
|
key: "",
|
|
270
|
-
label: "Customer contact name"
|
|
271
244
|
},
|
|
272
245
|
"customer.contact.electronicMail": {
|
|
273
246
|
isRequired: false,
|
|
274
247
|
key: "",
|
|
275
|
-
label: "Customer E-mail"
|
|
276
248
|
},
|
|
277
249
|
"customer.contact.telephone": {
|
|
278
250
|
isRequired: false,
|
|
279
251
|
key: "",
|
|
280
|
-
label: "Customer phone"
|
|
281
252
|
},
|
|
282
253
|
"customer.name": {
|
|
283
254
|
isRequired: true,
|
|
284
255
|
key: "",
|
|
285
|
-
label: "Name"
|
|
286
256
|
},
|
|
287
257
|
"customer.identifier": {
|
|
288
258
|
isRequired: true,
|
|
289
259
|
key: "",
|
|
290
|
-
label: "Identifier"
|
|
291
260
|
},
|
|
292
261
|
"customer.locationIdentifier": {
|
|
293
262
|
isRequired: false,
|
|
294
263
|
key: "",
|
|
295
|
-
label: "Customer location identifier"
|
|
296
264
|
},
|
|
297
265
|
"payee.name": {
|
|
298
266
|
isRequired: true,
|
|
299
267
|
key: "",
|
|
300
|
-
label: "Payee name"
|
|
301
268
|
},
|
|
302
269
|
"payee.identifier": {
|
|
303
270
|
isRequired: true,
|
|
304
271
|
key: "",
|
|
305
|
-
label: "Payee identifier"
|
|
306
272
|
},
|
|
307
273
|
"payee.sepaBankIdentification": {
|
|
308
274
|
isRequired: false,
|
|
309
275
|
key: "",
|
|
310
|
-
label: "Payee sepa bank identification"
|
|
311
276
|
},
|
|
312
277
|
"invoiceLines.itemNo": {
|
|
313
278
|
isRequired: true,
|
|
314
279
|
key: "",
|
|
315
|
-
label: "Item number"
|
|
316
280
|
},
|
|
317
281
|
"invoiceLines.name": {
|
|
318
282
|
isRequired: true,
|
|
319
283
|
key: "",
|
|
320
|
-
label: "Name"
|
|
321
284
|
},
|
|
322
285
|
"invoiceLines.quantity": {
|
|
323
286
|
isRequired: true,
|
|
324
287
|
key: "",
|
|
325
|
-
label: "Quantity"
|
|
326
288
|
},
|
|
327
289
|
"invoiceLines.unitOfMeasure.unit": {
|
|
328
290
|
isRequired: true,
|
|
329
291
|
key: "",
|
|
330
|
-
label: "Unit of measure - Unit"
|
|
331
292
|
},
|
|
332
293
|
"invoiceLines.unitOfMeasure.code": {
|
|
333
294
|
isRequired: true,
|
|
334
295
|
key: "",
|
|
335
|
-
label: "Unit of measure - Code"
|
|
336
296
|
},
|
|
337
|
-
"invoiceLines.
|
|
297
|
+
"invoiceLines.unitPriceAmount": {
|
|
338
298
|
isRequired: true,
|
|
339
299
|
key: "",
|
|
340
|
-
label: "Price amount"
|
|
341
300
|
},
|
|
342
301
|
"invoiceLines.taxCategoryType": {
|
|
343
302
|
isRequired: true,
|
|
344
303
|
key: "",
|
|
345
|
-
label: ""
|
|
346
304
|
},
|
|
347
305
|
"invoiceLines.taxAmount": {
|
|
348
306
|
isRequired: true,
|
|
349
307
|
key: "",
|
|
350
|
-
label: "Tax amount"
|
|
351
308
|
},
|
|
352
309
|
"invoiceLines.taxableAmount": {
|
|
353
310
|
isRequired: true,
|
|
354
311
|
key: "",
|
|
355
|
-
label: "Taxable amount"
|
|
356
312
|
},
|
|
357
313
|
"invoiceLines.taxPercentage": {
|
|
358
314
|
isRequired: true,
|
|
359
315
|
key: "",
|
|
360
|
-
label: "Tax percentage"
|
|
361
316
|
},
|
|
362
317
|
"invoiceLines.discountValue": {
|
|
363
318
|
isRequired: true,
|
|
364
319
|
key: "",
|
|
365
|
-
label: "Discount value"
|
|
366
320
|
},
|
|
367
321
|
"paymentTerms.note": {
|
|
368
322
|
isRequired: false,
|
|
369
323
|
key: "",
|
|
370
|
-
label: "Note"
|
|
371
324
|
},
|
|
372
325
|
"paymentMeans.type": {
|
|
373
326
|
isRequired: true,
|
|
374
327
|
key: "",
|
|
375
|
-
label: "Type"
|
|
376
328
|
},
|
|
377
329
|
"paymentMeans.internationalTransfer": {
|
|
378
330
|
isRequired: false,
|
|
379
331
|
key: "",
|
|
380
|
-
label: "International transfer"
|
|
381
332
|
},
|
|
382
333
|
"paymentMeans.domesticTransfer": {
|
|
383
334
|
isRequired: false,
|
|
384
335
|
key: "",
|
|
385
|
-
label: "Domestic transfer"
|
|
386
336
|
},
|
|
387
337
|
"paymentMeans.domesticClaim": {
|
|
388
338
|
isRequired: false,
|
|
389
339
|
key: "",
|
|
390
|
-
label: "Domestic Claim"
|
|
391
340
|
},
|
|
392
341
|
"delivery.partyName": {
|
|
393
342
|
isRequired: false,
|
|
394
343
|
key: "",
|
|
395
|
-
label: "Party Name"
|
|
396
344
|
},
|
|
397
345
|
"delivery.locationIdentifier": {
|
|
398
346
|
isRequired: false,
|
|
399
347
|
key: "",
|
|
400
|
-
label: "Location Identifier"
|
|
401
348
|
},
|
|
402
349
|
"delivery.address.streetNameAndNumber": {
|
|
403
350
|
isRequired: false,
|
|
404
351
|
key: "",
|
|
405
|
-
label: "Street name and number"
|
|
406
352
|
},
|
|
407
353
|
"delivery.address.city": {
|
|
408
354
|
isRequired: false,
|
|
409
355
|
key: "",
|
|
410
|
-
label: "Town/city"
|
|
411
356
|
},
|
|
412
357
|
"delivery.address.postalZone": {
|
|
413
358
|
isRequired: false,
|
|
414
359
|
key: "",
|
|
415
|
-
label: "Postal zone"
|
|
416
360
|
},
|
|
417
361
|
"delivery.address.countryCode": {
|
|
418
362
|
isRequired: false,
|
|
419
363
|
key: "",
|
|
420
|
-
label: "Country code"
|
|
421
364
|
},
|
|
422
365
|
"delivery.actualDeliveryDate": {
|
|
423
366
|
isRequired: false,
|
|
424
367
|
key: "",
|
|
425
|
-
label: "Delivery Date"
|
|
426
368
|
},
|
|
427
369
|
prepaidAmount: {
|
|
428
370
|
isRequired: false,
|
|
429
371
|
key: "",
|
|
430
|
-
label: "Prepaid amount"
|
|
431
372
|
},
|
|
432
373
|
payableAmount: {
|
|
433
374
|
isRequired: false,
|
|
434
375
|
key: "",
|
|
435
|
-
label: "Payable amount"
|
|
436
376
|
},
|
|
437
377
|
payableRoundingAmount: {
|
|
438
378
|
isRequired: false,
|
|
439
379
|
key: "",
|
|
440
|
-
label: "Payable rounding amount"
|
|
441
380
|
}
|
|
442
381
|
};
|
|
@@ -51,15 +51,13 @@ var CreateInvoice = function (props) {
|
|
|
51
51
|
return (react_1.default.createElement(antd_1.Form, __assign({}, formItemLayout, { onFinish: handleSubmit }),
|
|
52
52
|
react_1.default.createElement("h1", null, "Credit note"),
|
|
53
53
|
react_1.default.createElement(antd_1.Row, { gutter: [16, 16] },
|
|
54
|
-
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } },
|
|
55
|
-
|
|
56
|
-
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } },
|
|
57
|
-
react_1.default.createElement(components_1.Customer, { customer: props.customer })),
|
|
54
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } }),
|
|
55
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } }),
|
|
58
56
|
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 8 } },
|
|
59
57
|
react_1.default.createElement(components_1.BaseInformation, { form: form, documentType: "creditNote" })),
|
|
60
58
|
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 }, xl: { span: 16 } }),
|
|
61
59
|
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 }, xl: { span: 24 } }),
|
|
62
60
|
react_1.default.createElement(antd_1.Col, { span: 24 },
|
|
63
|
-
react_1.default.createElement(antd_1.Button, { type: "primary", htmlType: "submit" }, "
|
|
61
|
+
react_1.default.createElement(antd_1.Button, { type: "primary", htmlType: "submit" }, "Senda")))));
|
|
64
62
|
};
|
|
65
63
|
exports.default = CreateInvoice;
|