@unimaze/billing 0.3.3 → 0.3.5-sjova.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.js +15 -12
- package/lib/common/components/attachments/index.js +12 -11
- package/lib/common/components/base-information/ReferenceIdentifiers.js +24 -14
- package/lib/common/components/base-information/index.js +66 -39
- package/lib/common/components/billing-lines/BillingCalculations.d.ts +2 -2
- package/lib/common/components/billing-lines/BillingCalculations.js +8 -7
- package/lib/common/components/billing-lines/BillingTaxSummary.js +33 -5
- package/lib/common/components/billing-lines/index.d.ts +10 -1
- package/lib/common/components/billing-lines/index.js +74 -41
- package/lib/common/components/customer/index.d.ts +1 -1
- package/lib/common/components/customer/index.js +5 -11
- package/lib/common/components/editable-cell/index.d.ts +7 -3
- package/lib/common/components/editable-cell/index.js +131 -8
- package/lib/common/components/form-item/index.d.ts +4 -2
- package/lib/common/components/form-item/index.js +27 -7
- package/lib/common/components/payment-method/index.js +38 -62
- package/lib/common/components/payment-method/paymentMethodForConversion.js +2 -11
- package/lib/common/components/supplier/index.js +18 -35
- package/lib/common/consts/formLayout.d.ts +30 -0
- package/lib/common/consts/formLayout.js +9 -0
- package/lib/common/consts/validationRules.d.ts +2 -2
- package/lib/common/consts/validationRules.js +11 -8
- package/lib/common/types/AppConfiguration.d.ts +1 -1
- package/lib/common/types/BillingLineMetadataOverride.d.ts +5 -3
- package/lib/common/types/CommonProps.d.ts +1 -1
- package/lib/common/types/ReceiverRequirements.js +1 -1
- package/lib/create-invoice/IntlLoader.js +49 -0
- package/lib/create-invoice/index.d.ts +7 -10
- package/lib/create-invoice/index.js +110 -69
- package/lib/translations/locales/is.json +65 -4
- package/lib/translations/locales.d.ts +62 -1
- package/lib/utils/BillingLineUtility.d.ts +2 -2
- package/lib/utils/BillingLineUtility.js +2 -2
- package/lib/utils/FormatingUtility.d.ts +2 -0
- package/lib/utils/FormatingUtility.js +6 -0
- package/lib/utils/IntlUtility.d.ts +4 -0
- package/lib/utils/IntlUtility.js +54 -0
- package/package.json +3 -9
- package/lib/common/types/Configuration.d.ts +0 -14
- package/lib/common/types/Configuration.js +0 -2
- package/lib/example/src/index.d.ts +0 -1
- package/lib/src/common/components/attachments/Attachment.d.ts +0 -18
- package/lib/src/common/components/attachments/index.d.ts +0 -6
- package/lib/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -17
- package/lib/src/common/components/base-information/index.d.ts +0 -11
- 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/NewBillingLines.d.ts +0 -10
- package/lib/src/common/components/billing-lines/index.d.ts +0 -19
- package/lib/src/common/components/component-container/Content.d.ts +0 -7
- package/lib/src/common/components/component-container/Header.d.ts +0 -9
- package/lib/src/common/components/component-container/index.d.ts +0 -11
- package/lib/src/common/components/customer/index.d.ts +0 -16
- package/lib/src/common/components/delivery-location/index.d.ts +0 -6
- package/lib/src/common/components/editable-cell/index.d.ts +0 -11
- package/lib/src/common/components/editable-row/index.d.ts +0 -5
- package/lib/src/common/components/form-item/index.d.ts +0 -23
- 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/payment-method/index.d.ts +0 -6
- package/lib/src/common/components/payment-method/paymentMethodForConversion.d.ts +0 -9
- package/lib/src/common/components/supplier/index.d.ts +0 -10
- package/lib/src/common/consts/formLayout.d.ts +0 -44
- package/lib/src/common/consts/validationRules.d.ts +0 -6
- package/lib/src/common/types/ReceiverRequirements.d.ts +0 -81
- package/lib/src/translations/locales.d.ts +0 -78
- package/lib/src/utils/ApiUtility.d.ts +0 -21
- package/lib/src/utils/BillingLineUtility.d.ts +0 -10
- package/lib/src/utils/ConversionUtility.d.ts +0 -8
- package/lib/src/utils/RequirementsUtility.d.ts +0 -5
- package/lib/src/utils/index.d.ts +0 -2
- /package/lib/{src/create-invoice/index.d.ts → create-invoice/IntlLoader.d.ts} +0 -0
|
@@ -17,44 +17,67 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
17
17
|
result["default"] = mod;
|
|
18
18
|
return result;
|
|
19
19
|
};
|
|
20
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
-
};
|
|
23
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
require("
|
|
25
|
-
var react_1 = __importStar(require("react"));
|
|
26
|
-
var antd_1 = require("antd");
|
|
27
|
-
var is_IS_1 = __importDefault(require("antd/es/locale-provider/is_IS"));
|
|
28
|
-
var en_US_1 = __importDefault(require("antd/es/locale-provider/en_US"));
|
|
21
|
+
var mapi_1 = require("@unimaze/api-clients/lib/mapi");
|
|
29
22
|
var models_1 = require("@unimaze/api-clients/lib/mapi/models");
|
|
23
|
+
var antd_1 = require("antd");
|
|
24
|
+
var formLayout_1 = require("../common/consts/formLayout");
|
|
30
25
|
var components_1 = require("../common/components");
|
|
26
|
+
var react_1 = __importStar(require("react"));
|
|
27
|
+
var react_intl_1 = require("react-intl");
|
|
31
28
|
var utils_1 = require("../utils");
|
|
32
|
-
var uuid_1 = require("uuid");
|
|
33
29
|
var BillingLineUtility_1 = require("../utils/BillingLineUtility");
|
|
34
|
-
var mapi_1 = require("@unimaze/api-clients/lib/mapi");
|
|
35
|
-
var formLayout_1 = require("../common/consts/formLayout");
|
|
36
30
|
var paymentMethodForConversion_1 = require("../common/components/payment-method/paymentMethodForConversion");
|
|
31
|
+
var uuid_1 = require("uuid");
|
|
32
|
+
var editable_cell_1 = require("../common/components/editable-cell");
|
|
33
|
+
var billing_lines_1 = require("../common/components/billing-lines");
|
|
34
|
+
var translationMessages = react_intl_1.defineMessages({
|
|
35
|
+
createInvoice_addDocumentLineMsg: {
|
|
36
|
+
id: "createInvoice_addDocumentLineMsg",
|
|
37
|
+
defaultMessage: "Add at least one document line",
|
|
38
|
+
},
|
|
39
|
+
createInvoice_selectCustomerMsg: {
|
|
40
|
+
id: "createInvoice_selectCustomerMsg",
|
|
41
|
+
defaultMessage: "Customer must be selected",
|
|
42
|
+
},
|
|
43
|
+
createInvoice_successfullySubmittedInvoiceMsg: {
|
|
44
|
+
id: "createInvoice_successfullySubmittedInvoiceMsg",
|
|
45
|
+
defaultMessage: "Successfully submitted the invoice"
|
|
46
|
+
},
|
|
47
|
+
createInvoice_successfullyUploadedAttachmentMsg: {
|
|
48
|
+
id: "createInvoice_successfullyUploadedAttachmentMsg",
|
|
49
|
+
defaultMessage: "Successfully uploaded attachment {attachment}"
|
|
50
|
+
},
|
|
51
|
+
createInvoice_ErrorUploadedAttachmentMsg: {
|
|
52
|
+
id: "createInvoice_ErrorUploadedAttachmentMsg",
|
|
53
|
+
defaultMessage: "Error uploaded attachment {attachment}"
|
|
54
|
+
},
|
|
55
|
+
createInvoice_Submit: {
|
|
56
|
+
id: "createInvoice_Submit",
|
|
57
|
+
defaultMessage: "Submit"
|
|
58
|
+
},
|
|
59
|
+
});
|
|
37
60
|
/**
|
|
38
61
|
* Component for creating a form for creating an invoice and submitting it to the MAPI transaction services
|
|
39
62
|
*
|
|
40
63
|
* @component
|
|
41
64
|
*/
|
|
42
|
-
var
|
|
43
|
-
|
|
65
|
+
var CreateInvoiceConstructor = function (props) {
|
|
66
|
+
var intl = props.intl;
|
|
44
67
|
var form = antd_1.Form.useForm()[0];
|
|
45
68
|
var _a = react_1.useState(false), submitting = _a[0], setSubmitting = _a[1];
|
|
46
|
-
var _b = react_1.useState(/*profileOutputToPartyMetadata(
|
|
69
|
+
var _b = react_1.useState(/*profileOutputToPartyMetadata(customers[0])*/ undefined), chosenCustomer = _b[0], setChosenCustomer = _b[1];
|
|
47
70
|
var _c = react_1.useState(), chosenCustomerApiKey = _c[0], setChosenCustomerApiKey = _c[1];
|
|
48
71
|
var _d = react_1.useState(1), billingLinesEditableIndex = _d[0], setBillingLinesEditableIndex = _d[1];
|
|
49
72
|
var initialBillingLineData = {
|
|
50
73
|
key: billingLinesEditableIndex,
|
|
51
|
-
itemNo:
|
|
74
|
+
itemNo: props.intl.formatMessage(billing_lines_1.translationMessages.billingLines_placeholders_itemNo),
|
|
52
75
|
quantity: 0,
|
|
53
76
|
taxAmount: 0,
|
|
54
|
-
name:
|
|
55
|
-
unitOfMeasure: models_1.UnitOfMeasureMetadataUnitEnum.Piece,
|
|
77
|
+
name: props.intl.formatMessage(billing_lines_1.translationMessages.billingLines_placeholders_newItem),
|
|
78
|
+
unitOfMeasure: { value: models_1.UnitOfMeasureMetadataUnitEnum.Piece, label: props.intl.formatMessage(editable_cell_1.commonTranslationMessages.unitOfMeasure_labels_Piece) },
|
|
56
79
|
unitPriceAmount: 0,
|
|
57
|
-
taxCategoryType: models_1.BillingLineMetadataTaxCategoryTypeEnum.Exempt,
|
|
80
|
+
taxCategoryType: { value: models_1.BillingLineMetadataTaxCategoryTypeEnum.Exempt, label: props.intl.formatMessage(editable_cell_1.commonTranslationMessages.taxCategoryType_labels_Exempt) + " (0%)" },
|
|
58
81
|
discountValue: "0",
|
|
59
82
|
taxableAmount: 0,
|
|
60
83
|
taxPercentage: null
|
|
@@ -80,8 +103,8 @@ var CreateInvoice = function (props) {
|
|
|
80
103
|
newData.splice(index, 1, __assign({}, item, row));
|
|
81
104
|
var billingLineMetadata = newData.map(function (current) {
|
|
82
105
|
return __assign({}, current, { unitOfMeasure: {
|
|
83
|
-
unit: current.unitOfMeasure,
|
|
84
|
-
} });
|
|
106
|
+
unit: models_1.UnitOfMeasureMetadataUnitEnum[current.unitOfMeasure.value],
|
|
107
|
+
}, taxCategoryType: models_1.BillingLineMetadataTaxCategoryTypeEnum[current.taxCategoryType.value] });
|
|
85
108
|
});
|
|
86
109
|
setBillingLinesDataSource(newData);
|
|
87
110
|
handleSetBillingLineMetadata(formInstance, billingLineMetadata);
|
|
@@ -103,11 +126,11 @@ var CreateInvoice = function (props) {
|
|
|
103
126
|
attachments = attachments.filter(function (attachment) { return attachment.file !== undefined; });
|
|
104
127
|
var billingLinesArray = form.getFieldValue("billingLinesMetadata");
|
|
105
128
|
if (!billingLinesArray || billingLinesArray.length <= 0) {
|
|
106
|
-
antd_1.message.error(
|
|
129
|
+
antd_1.message.error(intl.formatMessage(translationMessages.createInvoice_addDocumentLineMsg));
|
|
107
130
|
return;
|
|
108
131
|
}
|
|
109
132
|
if (!chosenCustomer) {
|
|
110
|
-
antd_1.message.error(
|
|
133
|
+
antd_1.message.error(intl.formatMessage(translationMessages.createInvoice_selectCustomerMsg));
|
|
111
134
|
return;
|
|
112
135
|
}
|
|
113
136
|
var invoiceMetadataInput = utils_1.convertToInvoiceMetadataInput(values, BillingLineUtility_1.billingLinesFieldsMetadata(form), paymentMethodForConversion_1.PaymentMethodFormData(values), chosenCustomer);
|
|
@@ -120,7 +143,7 @@ var CreateInvoice = function (props) {
|
|
|
120
143
|
};
|
|
121
144
|
utils_1.submitInvoice(createSubmitInvoice, props.mapiBaseUrl, chosenCustomerApiKey, "submitInvoice", props.language)
|
|
122
145
|
.then(function (resp) {
|
|
123
|
-
antd_1.message.success(
|
|
146
|
+
antd_1.message.success(intl.formatMessage(translationMessages.createInvoice_successfullySubmittedInvoiceMsg));
|
|
124
147
|
var messageId = resp.data.uniqueId;
|
|
125
148
|
var _loop_1 = function () {
|
|
126
149
|
var nextFileArray = attachments.splice(0, 1);
|
|
@@ -135,11 +158,11 @@ var CreateInvoice = function (props) {
|
|
|
135
158
|
setSubmitting(true);
|
|
136
159
|
utils_1.submitDocument(nextFile, createAttachDocument, props.mapiBaseUrl, chosenCustomerApiKey)
|
|
137
160
|
.then(function (submitDocumentResponse) {
|
|
138
|
-
antd_1.message.success(
|
|
161
|
+
antd_1.message.success(intl.formatMessage(translationMessages.createInvoice_successfullyUploadedAttachmentMsg, { attachment: nextFileDescription }));
|
|
139
162
|
setSubmitting(false);
|
|
140
163
|
})
|
|
141
164
|
.catch(function (documentSendingErrorMessage) {
|
|
142
|
-
antd_1.message.error(
|
|
165
|
+
antd_1.message.error(intl.formatMessage(translationMessages.createInvoice_ErrorUploadedAttachmentMsg, { attachment: nextFileDescription }) + " - " + documentSendingErrorMessage.message);
|
|
143
166
|
setSubmitting(false);
|
|
144
167
|
});
|
|
145
168
|
};
|
|
@@ -153,55 +176,73 @@ var CreateInvoice = function (props) {
|
|
|
153
176
|
setChosenCustomerApiKey(undefined);
|
|
154
177
|
setBillingLinesDataSource([__assign({}, initialBillingLineData, { key: 0 })]);
|
|
155
178
|
setBillingLinesEditableIndex(0);
|
|
179
|
+
// TODO: remove this as soon as possible
|
|
156
180
|
location.reload();
|
|
157
181
|
})
|
|
158
182
|
.catch(function (error) {
|
|
159
183
|
setSubmitting(false);
|
|
160
|
-
|
|
184
|
+
if (error.response) {
|
|
185
|
+
// The request was made and the server responded with a status code
|
|
186
|
+
// that falls out of the range of 2xx
|
|
187
|
+
// console.log(error.response.data);
|
|
188
|
+
// console.log(error.response.status);
|
|
189
|
+
// console.log(error.response.headers);
|
|
190
|
+
antd_1.message.error(error.response.data.message);
|
|
191
|
+
}
|
|
192
|
+
else if (error.request) {
|
|
193
|
+
// The request was made but no response was received
|
|
194
|
+
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
|
195
|
+
// http.ClientRequest in node.js
|
|
196
|
+
var request = error.request;
|
|
197
|
+
// tslint:disable-next-line:no-console
|
|
198
|
+
console.log(error.request);
|
|
199
|
+
antd_1.message.error(request.responseText);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
// Something happened in setting up the request that triggered an Error
|
|
203
|
+
antd_1.message.error(error.message);
|
|
204
|
+
}
|
|
205
|
+
// tslint:disable-next-line:no-console
|
|
206
|
+
console.log(error.config);
|
|
161
207
|
});
|
|
162
208
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
countryCode: "IS"
|
|
181
|
-
}
|
|
209
|
+
return (react_1.default.createElement(antd_1.Spin, { spinning: submitting },
|
|
210
|
+
react_1.default.createElement(antd_1.Form, __assign({}, formLayout_1.formItemLayout, { form: form, onFinish: handleSubmit, initialValues: {
|
|
211
|
+
invoice: {
|
|
212
|
+
currencyCode: "ISK",
|
|
213
|
+
supplier: {
|
|
214
|
+
address: {
|
|
215
|
+
countryCode: "IS"
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
customer: {
|
|
219
|
+
address: {
|
|
220
|
+
countryCode: "IS"
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
paymentMeans: {
|
|
224
|
+
domesticTransfer: {
|
|
225
|
+
accountTypeNumber: "26"
|
|
182
226
|
},
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
react_1.default.createElement(antd_1.
|
|
191
|
-
react_1.default.createElement(
|
|
192
|
-
|
|
193
|
-
react_1.default.createElement(
|
|
194
|
-
|
|
195
|
-
react_1.default.createElement(
|
|
196
|
-
|
|
197
|
-
react_1.default.createElement(
|
|
198
|
-
|
|
199
|
-
react_1.default.createElement(
|
|
200
|
-
|
|
201
|
-
react_1.default.createElement(antd_1.Col,
|
|
202
|
-
react_1.default.createElement(
|
|
203
|
-
react_1.default.createElement(antd_1.Row, { style: { width: "100%", padding: "8px" }, justify: "end" },
|
|
204
|
-
react_1.default.createElement(antd_1.Col, null,
|
|
205
|
-
react_1.default.createElement(antd_1.Button, { type: "primary", htmlType: "submit", size: "large" }, "Senda"))))))));
|
|
227
|
+
type: "DomesticTransfer",
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
} }),
|
|
231
|
+
react_1.default.createElement(antd_1.Row, { gutter: [16, 16] },
|
|
232
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 8 } },
|
|
233
|
+
react_1.default.createElement(components_1.BaseInformation, { form: form, documentType: "invoice" })),
|
|
234
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 8 } },
|
|
235
|
+
react_1.default.createElement(components_1.Supplier, { billingLinesDataSource: billingLinesDataSource })),
|
|
236
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 8 } },
|
|
237
|
+
react_1.default.createElement(components_1.Customer, { formInstance: form, customers: props.customers, chosenCustomer: chosenCustomer, setChosenCustomer: setChosenCustomer, setChosenCustomerApiKey: setChosenCustomerApiKey })),
|
|
238
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 } },
|
|
239
|
+
react_1.default.createElement(components_1.BillingLines, { setBillingLineMetadata: handleSetBillingLineMetadata, formInstance: form, dataSource: billingLinesDataSource, editableIndex: billingLinesEditableIndex, handleAdd: handleBillingLinesAdd, initialBillingLineData: initialBillingLineData, handleDelete: handleBillingLinesDelete, handleSave: handleBillingLinesSave })),
|
|
240
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 8 } },
|
|
241
|
+
react_1.default.createElement(components_1.PaymentMethod, null)),
|
|
242
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 16 } },
|
|
243
|
+
react_1.default.createElement(components_1.Attachments, null)),
|
|
244
|
+
react_1.default.createElement(antd_1.Row, { style: { width: "100%", padding: "8px" }, justify: "end" },
|
|
245
|
+
react_1.default.createElement(antd_1.Col, null,
|
|
246
|
+
react_1.default.createElement(antd_1.Button, { type: "primary", htmlType: "submit", size: "large" }, intl.formatMessage(translationMessages.createInvoice_Submit))))))));
|
|
206
247
|
};
|
|
207
|
-
exports.default =
|
|
248
|
+
exports.default = react_intl_1.injectIntl(CreateInvoiceConstructor);
|
|
@@ -5,11 +5,15 @@
|
|
|
5
5
|
"attachment_labels_Description_requiredMessage": "Vinsamlega sláið inn lýsingu",
|
|
6
6
|
"attachment_labels_File": "Skrá",
|
|
7
7
|
"attachment_title": "Viðhengi",
|
|
8
|
+
"attachment_tooltip_title": "Hámarks stærð er ??MB. Fylgigögn reiknings geta verið afrit af upprunalega reikningnum eða fylgigögn, svo sem tímaskýrslur",
|
|
8
9
|
"baseInformation_title": "Grunnupplýsingar",
|
|
9
10
|
"baseInformation_invoiceNo": "Reikningsnr.",
|
|
10
11
|
"baseInformation_issueDate": "Útgáfudags.",
|
|
12
|
+
"baseInformation_issueDate_title": "Útgáfudagsetning stjórnar á hvaða uppgjörstímabili færslan skráist",
|
|
11
13
|
"baseInformation_dueDate": "Gjalddagi",
|
|
14
|
+
"baseInformation_dueDate_title": "Eindagi skal vera sá sami og gjalddagi",
|
|
12
15
|
"baseInformation_orderReference_documentNo": "Pöntunarnr.",
|
|
16
|
+
"baseInformation_orderReference_documentNo_title": "Tilvísun kaupanda getur t.d. verið starfsmannanúmer, kóti fyrir deild eða hóp, tjónanúmer. Ef kaupandi hefur ekki tilgreint tilvísun, má setja hér inn nafn þess aðila sem pantaði eða óskaði eftir þjónustunni.",
|
|
13
17
|
"baseInformation_notes": "Athugasemdir",
|
|
14
18
|
"baseInformation_currencyCode": "Gjaldmiðill",
|
|
15
19
|
"billingCalculations_labels_TaxAmountWithoutVat": "Samtals án VSK",
|
|
@@ -18,18 +22,26 @@
|
|
|
18
22
|
"billingTaxSummary_taxOverview": "Skattsyfirlit",
|
|
19
23
|
"billingTaxSummary_taxableAmount": "Skattskyld upphæð",
|
|
20
24
|
"billingTaxSummary_taxAmount": "Skattur",
|
|
25
|
+
"billingTaxSummary_taxCategoryType_labels_StandardRated": "Hefðbundinn skattur",
|
|
26
|
+
"billingTaxSummary_taxCategoryType_labels_ReducedRated": "Lækkaður skattur",
|
|
27
|
+
"billingTaxSummary_taxCategoryType_labels_ZeroRated": "Enginn skattur",
|
|
28
|
+
"billingTaxSummary_taxCategoryType_labels_Exempt": "Undaþeginn skatti",
|
|
21
29
|
"billingLines_title": "Reikningslínur",
|
|
30
|
+
"billingLines_tooltip_title": "Hér þarf að skilgreina Vörunr, Nafn, Fjölda, Mælieiningu, Verð pr. einingu og upphæð. Virðisauki reiknast sjálfkrafa. Smelltu á \"Bæta við röð\" til þess að bæta við vörulínu",
|
|
22
31
|
"billingLines_itemNo": "Vörunr.",
|
|
23
32
|
"billingLines_name": "Nafn",
|
|
24
33
|
"billingLines_quantity": "Fjöldi",
|
|
25
34
|
"billingLines_unitOfMeasure": "Mælieining",
|
|
26
35
|
"billingLines_unitPriceAmount": "Verð pr. einingu",
|
|
27
36
|
"billingLines_taxCategoryType": "Skattflokkur",
|
|
37
|
+
"billingLines_taxCategoryType_title": "Ekki er hægt að leggja virðisauka á vöru nema gefa upp VSK númer",
|
|
28
38
|
"billingLines_taxCategoryPercentage": "Skattprósenta",
|
|
29
39
|
"billingLines_discount": "Afsláttur",
|
|
30
40
|
"billingLines_lineAmount": "Upphæð",
|
|
31
41
|
"billingLines_taxAmount": "Upphæð með skatti",
|
|
32
42
|
"billingLines_button_addRow": "Bæta við röð",
|
|
43
|
+
"billingLines_placeholders_itemNo": "Vörunúmer",
|
|
44
|
+
"billingLines_placeholders_newItem": "Ný vara",
|
|
33
45
|
"deliveryLocation_title": "Afhendingarstaður",
|
|
34
46
|
"deliveryLocation_partyName": "Nafn aðila",
|
|
35
47
|
"deliveryLocation_streetNameAndNumber": "Heimilisfang",
|
|
@@ -37,17 +49,19 @@
|
|
|
37
49
|
"deliveryLocation_city": "Bær/Borg",
|
|
38
50
|
"deliveryLocation_countryCode": "Landsnúmer",
|
|
39
51
|
"formItem_required_errorMessage": "Það þarf að fylla út í þennan reit",
|
|
52
|
+
"paymentMethod_title": "Greiðsluháttur",
|
|
40
53
|
"paymentMethod_labels_domesticTransfer_bankNo": "Bankanúmer",
|
|
41
54
|
"paymentMethod_labels_domesticTransfer_typeNo": "Týpunúmer",
|
|
55
|
+
"paymentMethod_labels_domesticTransfer_accountType": "Tegund reiknings",
|
|
42
56
|
"paymentMethod_labels_domesticTransfer_accountNo": "Reikningsnúmer",
|
|
43
57
|
"paymentMethod_labels_domesticTransfer_paymentReference": "Greiðslutilvísun",
|
|
44
58
|
"paymentMethod_labels_icelandicClaim_bankNo": "Bankanúmer",
|
|
45
59
|
"paymentMethod_labels_icelandicClaim_claimNo": "Kröfunúmer",
|
|
46
60
|
"paymentMethod_labels_methods_undefined": "Óskilgreint",
|
|
47
61
|
"paymentMethod_labels_methods_mutuallyAgreed": "Skv. samkomulagi",
|
|
48
|
-
"paymentMethod_labels_methods_domesticTransfer": "Millifærsla
|
|
62
|
+
"paymentMethod_labels_methods_domesticTransfer": "Millifærsla",
|
|
49
63
|
"paymentMethod_labels_methods_domesticClaim": "Krafa",
|
|
50
|
-
"
|
|
64
|
+
"paymentMethod_rules_number": "Vinsamlega notið tölustafi",
|
|
51
65
|
"supplier_title": "Birgi",
|
|
52
66
|
"supplier_name": "Nafn birgja",
|
|
53
67
|
"supplier_identifier": "Kenni",
|
|
@@ -57,11 +71,12 @@
|
|
|
57
71
|
"supplier_address_city": "Borg",
|
|
58
72
|
"supplier_address_countryCode": "Landsnúmer",
|
|
59
73
|
"supplier_contact_email": "Netfang",
|
|
74
|
+
"supplier_contact_email_title": "Send verður greiðslutilkynning á þetta netfang",
|
|
60
75
|
"supplier_contact_name": "Nafn tengiliðs",
|
|
61
76
|
"supplier_notValidEmail": "Þetta er ekki gilt netfang",
|
|
62
77
|
"customer_title": "Viðskiptavinur",
|
|
63
78
|
"customer_selectTheCustomer": "Veldu viðskiptavini",
|
|
64
|
-
"customer_name": "Nafn
|
|
79
|
+
"customer_name": "Nafn",
|
|
65
80
|
"customer_identifier": "Kennitala",
|
|
66
81
|
"customer_address_streetNameAndNumber": "Heimilisfang",
|
|
67
82
|
"customer_address_zip_postalCode": "Póstnúmer",
|
|
@@ -70,5 +85,51 @@
|
|
|
70
85
|
"customer_contact_email": "Netfang",
|
|
71
86
|
"customer_contact_name": "Nafn tengiliðs",
|
|
72
87
|
"referenceIdentifiers_labels_addButton": "Bætið við tilvísunarnúmeri",
|
|
73
|
-
"referenceIdentifiers_labels_referenceIdentifier": "Tilvísunarnúmer"
|
|
88
|
+
"referenceIdentifiers_labels_referenceIdentifier": "Tilvísunarnúmer",
|
|
89
|
+
"referenceIdentifiers_labels_referenceIdentifier_title": "Númer er á við tjónið sem um ræðir (bílnúmer, fasteignanúmer eða kennitala)",
|
|
90
|
+
"attachment_labels_uploadFileMsg": "Smelltu eða dragðu inn skrá hér til að hlaða upp",
|
|
91
|
+
"attachment_labels_descriptionErrorMsg": "Lýsing má ekki samsvara annarri skráalýsing",
|
|
92
|
+
"baseInformation_currency_ISK": "Íslensk króna (ISK)",
|
|
93
|
+
"baseInformation_currency_DKK": "Dönsk króna (DKK)",
|
|
94
|
+
"baseInformation_currency_NOK": "Norsk króna (NOK)",
|
|
95
|
+
"baseInformation_currency_SEK": "Sænsk króna (SEK)",
|
|
96
|
+
"baseInformation_currency_EUR": "Evra (EUR)",
|
|
97
|
+
"baseInformation_currency_USD": "Bandaríkjadalur (USD)",
|
|
98
|
+
"baseInformation_currency_GBP": "Breskt pund (GBP)",
|
|
99
|
+
"baseInformation_dueDateErrorMsg": "Gjalddagi verður að vera eftir útgáfudag",
|
|
100
|
+
"taxCategoryType_labels_StandardRated": "Hefðbundinn skattur",
|
|
101
|
+
"taxCategoryType_labels_ReducedRated": "Lækkaður skattur",
|
|
102
|
+
"taxCategoryType_labels_ZeroRated": "Enginn skattur",
|
|
103
|
+
"taxCategoryType_labels_Exempt": "Undaþeginn skatti",
|
|
104
|
+
"unitOfMeasure_labels_Piece": "Stykki",
|
|
105
|
+
"unitOfMeasure_labels_Kilogram": "Kílógramm",
|
|
106
|
+
"unitOfMeasure_labels_Month": "Mánuður",
|
|
107
|
+
"unitOfMeasure_labels_Package": "Pakki",
|
|
108
|
+
"unitOfMeasure_labels_Year": "Ár",
|
|
109
|
+
"unitOfMeasure_labels_Day": "Dagur",
|
|
110
|
+
"unitOfMeasure_labels_Hour": "Klukkustund",
|
|
111
|
+
"unitOfMeasure_labels_Kilometre": "Kílómetri",
|
|
112
|
+
"unitOfMeasure_labels_Metre": "Metri",
|
|
113
|
+
"unitOfMeasure_labels_Litre": "Lítri",
|
|
114
|
+
"unitOfMeasure_labels_SquareMetre": "Fermetri",
|
|
115
|
+
"unitOfMeasure_labels_CubicMetre": "Rúmmetri",
|
|
116
|
+
"unitOfMeasure_labels_Tonne": "Tonn",
|
|
117
|
+
"unitOfMeasure_labels_KiloWattHour": "Kílóvattklukkustund",
|
|
118
|
+
"unitOfMeasure_labels_One": "Einn",
|
|
119
|
+
"createInvoice_addDocumentLineMsg": "Bætið við a.m.k einnig línu í skrá",
|
|
120
|
+
"createInvoice_selectCustomerMsg": "Viðskiptavinur verður að vera valinn",
|
|
121
|
+
"createInvoice_successfullySubmittedInvoiceMsg": "Sending reiknings tókst",
|
|
122
|
+
"createInvoice_successfullyUploadedAttachmentMsg": "Það tókst að hlaða upp viðhenginu {attachment}",
|
|
123
|
+
"createInvoice_ErrorUploadedAttachmentMsg": "Villa við að hlaða upp viðhenginu {attachment}",
|
|
124
|
+
"createInvoice_Submit": "Senda",
|
|
125
|
+
"billingLines_labels_addButton": "Bæta við línu",
|
|
126
|
+
"rulesMessages_name_required": "Vinsamlega sláið inn heiti hluts",
|
|
127
|
+
"rulesMessages_unitOfMeasure_required": "Vinsamlega veljið mælieiningu",
|
|
128
|
+
"rulesMessages_unitPriceAmount_required": "Vinsamlega sláið inn einingaverð",
|
|
129
|
+
"rulesMessages_unitPriceAmount_type": "Einingaverð þarf að vera tala",
|
|
130
|
+
"rulesMessages_taxCategoryType_required": "Vinsamlega veljið skattflokk",
|
|
131
|
+
"rulesMessages_discountValue_pattern": "Vinsamlega notið einungis tölustafi og prósentumerki í lokin",
|
|
132
|
+
"referenceIdentifiers_labels_carNumber": "Bílnúmer",
|
|
133
|
+
"referenceIdentifiers_labels_identifier": "Kennitala",
|
|
134
|
+
"referenceIdentifiers_labels_propertyNumber": "Fasteignanúmer"
|
|
74
135
|
}
|
|
@@ -7,11 +7,15 @@ declare const _default: {
|
|
|
7
7
|
"attachment_labels_Description_requiredMessage": string;
|
|
8
8
|
"attachment_labels_File": string;
|
|
9
9
|
"attachment_title": string;
|
|
10
|
+
"attachment_tooltip_title": string;
|
|
10
11
|
"baseInformation_title": string;
|
|
11
12
|
"baseInformation_invoiceNo": string;
|
|
12
13
|
"baseInformation_issueDate": string;
|
|
14
|
+
"baseInformation_issueDate_title": string;
|
|
13
15
|
"baseInformation_dueDate": string;
|
|
16
|
+
"baseInformation_dueDate_title": string;
|
|
14
17
|
"baseInformation_orderReference_documentNo": string;
|
|
18
|
+
"baseInformation_orderReference_documentNo_title": string;
|
|
15
19
|
"baseInformation_notes": string;
|
|
16
20
|
"baseInformation_currencyCode": string;
|
|
17
21
|
"billingCalculations_labels_TaxAmountWithoutVat": string;
|
|
@@ -20,18 +24,26 @@ declare const _default: {
|
|
|
20
24
|
"billingTaxSummary_taxOverview": string;
|
|
21
25
|
"billingTaxSummary_taxableAmount": string;
|
|
22
26
|
"billingTaxSummary_taxAmount": string;
|
|
27
|
+
"billingTaxSummary_taxCategoryType_labels_StandardRated": string;
|
|
28
|
+
"billingTaxSummary_taxCategoryType_labels_ReducedRated": string;
|
|
29
|
+
"billingTaxSummary_taxCategoryType_labels_ZeroRated": string;
|
|
30
|
+
"billingTaxSummary_taxCategoryType_labels_Exempt": string;
|
|
23
31
|
"billingLines_title": string;
|
|
32
|
+
"billingLines_tooltip_title": string;
|
|
24
33
|
"billingLines_itemNo": string;
|
|
25
34
|
"billingLines_name": string;
|
|
26
35
|
"billingLines_quantity": string;
|
|
27
36
|
"billingLines_unitOfMeasure": string;
|
|
28
37
|
"billingLines_unitPriceAmount": string;
|
|
29
38
|
"billingLines_taxCategoryType": string;
|
|
39
|
+
"billingLines_taxCategoryType_title": string;
|
|
30
40
|
"billingLines_taxCategoryPercentage": string;
|
|
31
41
|
"billingLines_discount": string;
|
|
32
42
|
"billingLines_lineAmount": string;
|
|
33
43
|
"billingLines_taxAmount": string;
|
|
34
44
|
"billingLines_button_addRow": string;
|
|
45
|
+
"billingLines_placeholders_itemNo": string;
|
|
46
|
+
"billingLines_placeholders_newItem": string;
|
|
35
47
|
"deliveryLocation_title": string;
|
|
36
48
|
"deliveryLocation_partyName": string;
|
|
37
49
|
"deliveryLocation_streetNameAndNumber": string;
|
|
@@ -39,8 +51,10 @@ declare const _default: {
|
|
|
39
51
|
"deliveryLocation_city": string;
|
|
40
52
|
"deliveryLocation_countryCode": string;
|
|
41
53
|
"formItem_required_errorMessage": string;
|
|
54
|
+
"paymentMethod_title": string;
|
|
42
55
|
"paymentMethod_labels_domesticTransfer_bankNo": string;
|
|
43
56
|
"paymentMethod_labels_domesticTransfer_typeNo": string;
|
|
57
|
+
"paymentMethod_labels_domesticTransfer_accountType": string;
|
|
44
58
|
"paymentMethod_labels_domesticTransfer_accountNo": string;
|
|
45
59
|
"paymentMethod_labels_domesticTransfer_paymentReference": string;
|
|
46
60
|
"paymentMethod_labels_icelandicClaim_bankNo": string;
|
|
@@ -49,7 +63,7 @@ declare const _default: {
|
|
|
49
63
|
"paymentMethod_labels_methods_mutuallyAgreed": string;
|
|
50
64
|
"paymentMethod_labels_methods_domesticTransfer": string;
|
|
51
65
|
"paymentMethod_labels_methods_domesticClaim": string;
|
|
52
|
-
"
|
|
66
|
+
"paymentMethod_rules_number": string;
|
|
53
67
|
"supplier_title": string;
|
|
54
68
|
"supplier_name": string;
|
|
55
69
|
"supplier_identifier": string;
|
|
@@ -59,6 +73,7 @@ declare const _default: {
|
|
|
59
73
|
"supplier_address_city": string;
|
|
60
74
|
"supplier_address_countryCode": string;
|
|
61
75
|
"supplier_contact_email": string;
|
|
76
|
+
"supplier_contact_email_title": string;
|
|
62
77
|
"supplier_contact_name": string;
|
|
63
78
|
"supplier_notValidEmail": string;
|
|
64
79
|
"customer_title": string;
|
|
@@ -73,6 +88,52 @@ declare const _default: {
|
|
|
73
88
|
"customer_contact_name": string;
|
|
74
89
|
"referenceIdentifiers_labels_addButton": string;
|
|
75
90
|
"referenceIdentifiers_labels_referenceIdentifier": string;
|
|
91
|
+
"referenceIdentifiers_labels_referenceIdentifier_title": string;
|
|
92
|
+
"attachment_labels_uploadFileMsg": string;
|
|
93
|
+
"attachment_labels_descriptionErrorMsg": string;
|
|
94
|
+
"baseInformation_currency_ISK": string;
|
|
95
|
+
"baseInformation_currency_DKK": string;
|
|
96
|
+
"baseInformation_currency_NOK": string;
|
|
97
|
+
"baseInformation_currency_SEK": string;
|
|
98
|
+
"baseInformation_currency_EUR": string;
|
|
99
|
+
"baseInformation_currency_USD": string;
|
|
100
|
+
"baseInformation_currency_GBP": string;
|
|
101
|
+
"baseInformation_dueDateErrorMsg": string;
|
|
102
|
+
"taxCategoryType_labels_StandardRated": string;
|
|
103
|
+
"taxCategoryType_labels_ReducedRated": string;
|
|
104
|
+
"taxCategoryType_labels_ZeroRated": string;
|
|
105
|
+
"taxCategoryType_labels_Exempt": string;
|
|
106
|
+
"unitOfMeasure_labels_Piece": string;
|
|
107
|
+
"unitOfMeasure_labels_Kilogram": string;
|
|
108
|
+
"unitOfMeasure_labels_Month": string;
|
|
109
|
+
"unitOfMeasure_labels_Package": string;
|
|
110
|
+
"unitOfMeasure_labels_Year": string;
|
|
111
|
+
"unitOfMeasure_labels_Day": string;
|
|
112
|
+
"unitOfMeasure_labels_Hour": string;
|
|
113
|
+
"unitOfMeasure_labels_Kilometre": string;
|
|
114
|
+
"unitOfMeasure_labels_Metre": string;
|
|
115
|
+
"unitOfMeasure_labels_Litre": string;
|
|
116
|
+
"unitOfMeasure_labels_SquareMetre": string;
|
|
117
|
+
"unitOfMeasure_labels_CubicMetre": string;
|
|
118
|
+
"unitOfMeasure_labels_Tonne": string;
|
|
119
|
+
"unitOfMeasure_labels_KiloWattHour": string;
|
|
120
|
+
"unitOfMeasure_labels_One": string;
|
|
121
|
+
"createInvoice_addDocumentLineMsg": string;
|
|
122
|
+
"createInvoice_selectCustomerMsg": string;
|
|
123
|
+
"createInvoice_successfullySubmittedInvoiceMsg": string;
|
|
124
|
+
"createInvoice_successfullyUploadedAttachmentMsg": string;
|
|
125
|
+
"createInvoice_ErrorUploadedAttachmentMsg": string;
|
|
126
|
+
"createInvoice_Submit": string;
|
|
127
|
+
"billingLines_labels_addButton": string;
|
|
128
|
+
"rulesMessages_name_required": string;
|
|
129
|
+
"rulesMessages_unitOfMeasure_required": string;
|
|
130
|
+
"rulesMessages_unitPriceAmount_required": string;
|
|
131
|
+
"rulesMessages_unitPriceAmount_type": string;
|
|
132
|
+
"rulesMessages_taxCategoryType_required": string;
|
|
133
|
+
"rulesMessages_discountValue_pattern": string;
|
|
134
|
+
"referenceIdentifiers_labels_carNumber": string;
|
|
135
|
+
"referenceIdentifiers_labels_identifier": string;
|
|
136
|
+
"referenceIdentifiers_labels_propertyNumber": string;
|
|
76
137
|
};
|
|
77
138
|
};
|
|
78
139
|
export default _default;
|
|
@@ -6,5 +6,5 @@ export declare const billingLinesFieldsMetadata: (formInstance: FormInstance) =>
|
|
|
6
6
|
export declare const calculateTaxableAmount: (discountValue: string | null | undefined, quantity: number | null, unitPriceAmount: number | null) => number;
|
|
7
7
|
export declare const calculateTaxAmount: (taxableAmount: number, taxPercentage: number) => number;
|
|
8
8
|
export declare const calculateTaxPercentage: (taxCategoryType: TaxCategoryTypeEnum) => number;
|
|
9
|
-
export declare const generateTaxCategoryLabel: (taxCategoryType: TaxCategoryTypeEnum) => string;
|
|
10
|
-
export declare const getCorrectInputNode: (dataIdx: "key" | "name" | "description" | "notes" | "referenceIdentifiers" | "
|
|
9
|
+
export declare const generateTaxCategoryLabel: (taxCategoryType: TaxCategoryTypeEnum, taxCategoryTypeTranslated: string) => string;
|
|
10
|
+
export declare const getCorrectInputNode: (dataIdx: "key" | "name" | "description" | "notes" | "referenceIdentifiers" | "accountingCost" | "billingPeriod" | "unitOfMeasure" | "taxCategoryType" | "itemNo" | "quantity" | "unitPriceAmount" | "taxableAmount" | "taxAmount" | "taxPercentage" | "discountValue" | "discountReason" | "buyersItemNo" | "standardItemNo" | "originCountryCode" | "commodityClassification" | "additionalItemProperties" | "orderLineReference") => React.ReactChild;
|
|
@@ -67,8 +67,8 @@ exports.calculateTaxPercentage = function (taxCategoryType) {
|
|
|
67
67
|
return 0;
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
exports.generateTaxCategoryLabel = function (taxCategoryType) {
|
|
71
|
-
return
|
|
70
|
+
exports.generateTaxCategoryLabel = function (taxCategoryType, taxCategoryTypeTranslated) {
|
|
71
|
+
return taxCategoryTypeTranslated + " (" + exports.calculateTaxPercentage(taxCategoryType) + "%)";
|
|
72
72
|
};
|
|
73
73
|
exports.getCorrectInputNode = function (dataIdx) {
|
|
74
74
|
switch (dataIdx) {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var formatCurrency = function (value, currency, intl) {
|
|
4
|
+
return intl.formatNumber(value ? value : 0, { style: "currency", currency: currency });
|
|
5
|
+
};
|
|
6
|
+
exports.formatCurrency = formatCurrency;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormattedNumber, InjectedIntl } from "react-intl";
|
|
2
|
+
declare const icelandicNumberLocaleWorkaroundChrome: (value: number, intl: InjectedIntl, options?: FormattedNumber.PropsBase | undefined) => string;
|
|
3
|
+
declare const returnDecimalSeparatorForLocale: (locale: string | null) => string | undefined;
|
|
4
|
+
export { icelandicNumberLocaleWorkaroundChrome, returnDecimalSeparatorForLocale };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var icelandicNumberLocaleWorkaroundChrome = function (value, intl, options) {
|
|
4
|
+
var locale = localStorage.getItem("languageString");
|
|
5
|
+
if (locale) {
|
|
6
|
+
var supportedLocalesArray = Intl.Collator.supportedLocalesOf(locale);
|
|
7
|
+
if (supportedLocalesArray.every(function (x) { return x !== locale; })) {
|
|
8
|
+
switch (locale) {
|
|
9
|
+
case "is":
|
|
10
|
+
if (options) {
|
|
11
|
+
switch (options.style) {
|
|
12
|
+
case "decimal": {
|
|
13
|
+
return convertToIcelandicThousandAndDecimalSeparator(value.toFixed(2));
|
|
14
|
+
}
|
|
15
|
+
case "currency": {
|
|
16
|
+
if (!options.currency) {
|
|
17
|
+
throw new Error("options.currency must be specified if options.style = 'currency'");
|
|
18
|
+
}
|
|
19
|
+
var roundedValue = convertToIcelandicThousandAndDecimalSeparator(Math.round(value).toString());
|
|
20
|
+
var suffix = " " + options.currency;
|
|
21
|
+
return roundedValue + suffix;
|
|
22
|
+
}
|
|
23
|
+
case "percent": {
|
|
24
|
+
var roundedValue = convertToIcelandicThousandAndDecimalSeparator(value.toString());
|
|
25
|
+
var suffix = " %";
|
|
26
|
+
return roundedValue + suffix;
|
|
27
|
+
}
|
|
28
|
+
case "unit": {
|
|
29
|
+
return convertToIcelandicThousandAndDecimalSeparator(value.toString());
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return convertToIcelandicThousandAndDecimalSeparator(value.toString());
|
|
34
|
+
default:
|
|
35
|
+
return intl.formatNumber(value, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return intl.formatNumber(value, options);
|
|
40
|
+
};
|
|
41
|
+
exports.icelandicNumberLocaleWorkaroundChrome = icelandicNumberLocaleWorkaroundChrome;
|
|
42
|
+
var convertToIcelandicThousandAndDecimalSeparator = function (value) {
|
|
43
|
+
var parts = value.split(".");
|
|
44
|
+
return parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ".") + (parts[1] ? "," + parts[1] : "");
|
|
45
|
+
};
|
|
46
|
+
var returnDecimalSeparatorForLocale = function (locale) {
|
|
47
|
+
switch (locale) {
|
|
48
|
+
case "is":
|
|
49
|
+
return ",";
|
|
50
|
+
default:
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.returnDecimalSeparatorForLocale = returnDecimalSeparatorForLocale;
|