@unimaze/billing 0.21.51 → 0.21.53
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/payment-method/index.js +2 -0
- package/lib/create-invoice/index.js +5 -0
- package/lib/style/index.css +51 -0
- package/package.json +2 -10
- package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
- package/lib/common/components/billing-lines/NewNewBillingLines.js +0 -36
- package/lib/common/components/billing-lines/cwdwdw.d.ts +0 -1
- package/lib/common/components/billing-lines/cwdwdw.js +0 -14
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -109
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -110
- package/lib/unimaze-api-clients/src/mapi/api.d.ts +0 -6664
- package/lib/unimaze-api-clients/src/mapi/api.js +0 -4743
- package/lib/unimaze-api-clients/src/mapi/base.d.ts +0 -55
- package/lib/unimaze-api-clients/src/mapi/base.js +0 -84
- package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +0 -63
- package/lib/unimaze-api-clients/src/mapi/configuration.js +0 -28
- package/lib/unimaze-api-clients/src/mapi/index.d.ts +0 -13
- package/lib/unimaze-api-clients/src/mapi/index.js +0 -30
- package/lib/unimaze-api-clients/src/rapi/api.d.ts +0 -5015
- package/lib/unimaze-api-clients/src/rapi/api.js +0 -5582
- package/lib/unimaze-api-clients/src/rapi/base.d.ts +0 -55
- package/lib/unimaze-api-clients/src/rapi/base.js +0 -84
- package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +0 -63
- package/lib/unimaze-api-clients/src/rapi/configuration.js +0 -28
- package/lib/unimaze-api-clients/src/rapi/index.d.ts +0 -13
- package/lib/unimaze-api-clients/src/rapi/index.js +0 -30
- package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +0 -74
- package/lib/unimaze-billing/src/common/components/CommonTranslations.js +0 -78
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +0 -20
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +0 -164
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +0 -21
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +0 -206
- package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +0 -27
- package/lib/unimaze-billing/src/common/components/attachments/index.js +0 -214
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +0 -61
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +0 -16
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +0 -58
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +0 -30
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -53
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +0 -328
- package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +0 -77
- package/lib/unimaze-billing/src/common/components/base-information/index.js +0 -186
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +0 -151
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +0 -24
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +0 -61
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -13
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +0 -133
- package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +0 -20
- package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +0 -17
- package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +0 -10
- package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +0 -16
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +0 -134
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +0 -209
- package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
- package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +0 -36
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +0 -19
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +0 -275
- package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +0 -15
- package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +0 -49
- package/lib/unimaze-billing/src/common/components/billing-lines/index.js +0 -104
- package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/component-container/Content.js +0 -13
- package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +0 -9
- package/lib/unimaze-billing/src/common/components/component-container/Header.js +0 -28
- package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/component-container/index.js +0 -22
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +0 -163
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +0 -53
- package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +0 -41
- package/lib/unimaze-billing/src/common/components/customer/index.d.ts +0 -26
- package/lib/unimaze-billing/src/common/components/customer/index.js +0 -166
- package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +0 -21
- package/lib/unimaze-billing/src/common/components/date-picker/index.js +0 -23
- package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/delivery-location/index.js +0 -89
- package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
- package/lib/unimaze-billing/src/common/components/editable-cell/index.js +0 -295
- package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +0 -5
- package/lib/unimaze-billing/src/common/components/editable-row/index.js +0 -59
- package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +0 -35
- package/lib/unimaze-billing/src/common/components/form-item/index.js +0 -60
- package/lib/unimaze-billing/src/common/components/index.d.ts +0 -18
- package/lib/unimaze-billing/src/common/components/index.js +0 -42
- package/lib/unimaze-billing/src/common/components/input/index.d.ts +0 -23
- package/lib/unimaze-billing/src/common/components/input/index.js +0 -37
- package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +0 -42
- package/lib/unimaze-billing/src/common/components/invoice/index.js +0 -59
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -75
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +0 -73
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +0 -104
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +0 -93
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -77
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +0 -58
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +0 -52
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +0 -102
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +0 -196
- package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
- package/lib/unimaze-billing/src/common/components/locale-intl/index.js +0 -51
- package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +0 -76
- package/lib/unimaze-billing/src/common/components/payment-method/index.js +0 -356
- package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +0 -8
- package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +0 -37
- package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +0 -3
- package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +0 -17
- package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +0 -8
- package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +0 -34
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +0 -18
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +0 -159
- package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +0 -94
- package/lib/unimaze-billing/src/common/components/supplier/index.js +0 -334
- package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/tooltip/index.js +0 -15
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +0 -15
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +0 -26
- package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +0 -74
- package/lib/unimaze-billing/src/common/consts/formLayout.js +0 -45
- package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +0 -6
- package/lib/unimaze-billing/src/common/consts/validationRules.js +0 -69
- package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +0 -5
- package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +0 -8
- package/lib/unimaze-billing/src/common/enums/index.d.ts +0 -1
- package/lib/unimaze-billing/src/common/enums/index.js +0 -8
- package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +0 -26
- package/lib/unimaze-billing/src/common/types/AppConfiguration.js +0 -2
- package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +0 -10
- package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +0 -2
- package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +0 -33
- package/lib/unimaze-billing/src/common/types/CommonProps.js +0 -2
- package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/DiscountType.js +0 -2
- package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +0 -2
- package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +0 -27
- package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +0 -2
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +0 -83
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +0 -393
- package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +0 -11
- package/lib/unimaze-billing/src/common/types/SupplierInfo.js +0 -2
- package/lib/unimaze-billing/src/common/types/index.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/index.js +0 -17
- package/lib/unimaze-billing/src/create-credit-note/index.d.ts +0 -9
- package/lib/unimaze-billing/src/create-credit-note/index.js +0 -62
- package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +0 -11
- package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +0 -116
- package/lib/unimaze-billing/src/create-invoice/index.d.ts +0 -82
- package/lib/unimaze-billing/src/create-invoice/index.js +0 -710
- package/lib/unimaze-billing/src/enums.d.ts +0 -14
- package/lib/unimaze-billing/src/enums.js +0 -18
- package/lib/unimaze-billing/src/index.d.ts +0 -4
- package/lib/unimaze-billing/src/index.js +0 -28
- package/lib/unimaze-billing/src/translations/locales/en.json +0 -183
- package/lib/unimaze-billing/src/translations/locales/is.json +0 -183
- package/lib/unimaze-billing/src/translations/locales.d.ts +0 -369
- package/lib/unimaze-billing/src/translations/locales.js +0 -11
- package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +0 -29
- package/lib/unimaze-billing/src/utils/ApiUtility.js +0 -133
- package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +0 -25
- package/lib/unimaze-billing/src/utils/BillingLineUtility.js +0 -190
- package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +0 -9
- package/lib/unimaze-billing/src/utils/ConversionUtility.js +0 -222
- package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +0 -9
- package/lib/unimaze-billing/src/utils/FileUploadUtility.js +0 -45
- package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +0 -6
- package/lib/unimaze-billing/src/utils/IntlUtility.js +0 -78
- package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +0 -1
- package/lib/unimaze-billing/src/utils/LocationUtility.js +0 -81
- package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +0 -7
- package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +0 -26
- package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +0 -21
- package/lib/unimaze-billing/src/utils/RequirementsUtility.js +0 -237
- package/lib/unimaze-billing/src/utils/index.d.ts +0 -2
- package/lib/unimaze-billing/src/utils/index.js +0 -8
|
@@ -186,11 +186,13 @@ var PaymentMethod = function (props) {
|
|
|
186
186
|
"domesticTransfer",
|
|
187
187
|
"accountTypeNumber",
|
|
188
188
|
]) || "04" },
|
|
189
|
+
react_1.default.createElement(antd_1.Select.Option, { value: "03" }, "03"),
|
|
189
190
|
react_1.default.createElement(antd_1.Select.Option, { value: "04" }, "04"),
|
|
190
191
|
react_1.default.createElement(antd_1.Select.Option, { value: "05" }, "05"),
|
|
191
192
|
react_1.default.createElement(antd_1.Select.Option, { value: "13" }, "13"),
|
|
192
193
|
react_1.default.createElement(antd_1.Select.Option, { value: "14" }, "14"),
|
|
193
194
|
react_1.default.createElement(antd_1.Select.Option, { value: "15" }, "15"),
|
|
195
|
+
react_1.default.createElement(antd_1.Select.Option, { value: "22" }, "22"),
|
|
194
196
|
react_1.default.createElement(antd_1.Select.Option, { value: "26" }, "26")))),
|
|
195
197
|
react_1.default.createElement(antd_1.Col, { span: 12 },
|
|
196
198
|
react_1.default.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["paymentMeans.domesticTransfer.accountNumber"], defaultLabel: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_accountNo), defaultIsRequired: true, fieldName: ["invoice", "paymentMeans", "domesticTransfer", "accountNumber"], additionalRules: [
|
|
@@ -330,8 +330,13 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
(0, react_1.useEffect)(function () {
|
|
333
|
+
var _a, _b, _c;
|
|
333
334
|
var savedValuesObject = (0, LocalStorageUtility_1.getFormFromLocalStorage)(props.localStorageFormDataVersion);
|
|
334
335
|
if (savedValuesObject) {
|
|
336
|
+
if ((chosenCustomer === null || chosenCustomer === void 0 ? void 0 : chosenCustomer.identifier) !== ((_b = (_a = savedValuesObject === null || savedValuesObject === void 0 ? void 0 : savedValuesObject.invoice) === null || _a === void 0 ? void 0 : _a.customer) === null || _b === void 0 ? void 0 : _b.locationIdentifier)) {
|
|
337
|
+
var customerFromLocalStorage = (_c = savedValuesObject.invoice) === null || _c === void 0 ? void 0 : _c.customer;
|
|
338
|
+
setChosenCustomer(customerFromLocalStorage);
|
|
339
|
+
}
|
|
335
340
|
form.setFieldsValue(savedValuesObject);
|
|
336
341
|
}
|
|
337
342
|
}, []);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.component_header {
|
|
2
|
+
height: 3.3em;
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
border-bottom: solid 1px #d9d9d9;
|
|
5
|
+
border-radius: 4px 4px 0 0;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
padding: 1em 2em;
|
|
10
|
+
}
|
|
11
|
+
.component_header_title {
|
|
12
|
+
font-size: 1.1em;
|
|
13
|
+
}
|
|
14
|
+
.component_header_title > span > i {
|
|
15
|
+
font-size: 20px;
|
|
16
|
+
}
|
|
17
|
+
.header_icon {
|
|
18
|
+
font-size: 1.5em;
|
|
19
|
+
margin-right: 0.75em;
|
|
20
|
+
color: #1890ff;
|
|
21
|
+
}
|
|
22
|
+
.header_right {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: flex-end;
|
|
25
|
+
}
|
|
26
|
+
@media screen and (max-width: 768px) {
|
|
27
|
+
.header_right {
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.header_right > button {
|
|
32
|
+
margin-bottom: unset !important;
|
|
33
|
+
}
|
|
34
|
+
.component_body {
|
|
35
|
+
border-radius: 0 0 4px 4px;
|
|
36
|
+
}
|
|
37
|
+
.component_wrapper {
|
|
38
|
+
align-self: stretch;
|
|
39
|
+
height: 100%;
|
|
40
|
+
background-color: #fff;
|
|
41
|
+
border: solid 1px #d9d9d9;
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
}
|
|
44
|
+
.component_wrapper_padding {
|
|
45
|
+
padding: 1em;
|
|
46
|
+
}
|
|
47
|
+
.umz_noValidationMessage .ant-form-item-explain {
|
|
48
|
+
height: 20px !important;
|
|
49
|
+
visibility: hidden !important;
|
|
50
|
+
}
|
|
51
|
+
/*# sourceMappingURL=index.css.map */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unimaze/billing",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.53",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -65,19 +65,11 @@
|
|
|
65
65
|
"@types/react": "17.0.83",
|
|
66
66
|
"@types/react-dom": "17.0.25"
|
|
67
67
|
},
|
|
68
|
-
"watch": {
|
|
69
|
-
"build": {
|
|
70
|
-
"patterns": [
|
|
71
|
-
"src"
|
|
72
|
-
],
|
|
73
|
-
"extensions": "ts,tsx,less,json"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
68
|
"scripts": {
|
|
77
|
-
"watch": "npm-watch",
|
|
78
69
|
"less:watch": "less-watch-compiler --config less-watch-compiler.config.json",
|
|
79
70
|
"test": "echo \"Error: no test specified\" && exit 0",
|
|
80
71
|
"build": "tsc",
|
|
72
|
+
"build: watch": "tsc -w",
|
|
81
73
|
"postbuild": "copyfiles -V -u 1 src/**/*.css lib",
|
|
82
74
|
"lint": "tslint -p tsconfig.json",
|
|
83
75
|
"prepare": "yarn build",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from "react-intl";
|
|
3
|
-
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
4
|
-
import { FormInstance } from "antd/es/form";
|
|
5
|
-
interface Props extends WrappedComponentProps {
|
|
6
|
-
receiverRequirements: NewReceiverRequirements;
|
|
7
|
-
formInstance: FormInstance;
|
|
8
|
-
outsideVatScope: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const BillingLinesWithIntl: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
11
|
-
forwardedRef?: React.Ref<any> | undefined;
|
|
12
|
-
} & React.RefAttributes<any>> & {
|
|
13
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
14
|
-
};
|
|
15
|
-
export default BillingLinesWithIntl;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
var React = __importStar(require("react"));
|
|
27
|
-
var react_intl_1 = require("react-intl");
|
|
28
|
-
var antd_1 = require("antd");
|
|
29
|
-
var NewNewBillingLines = function (props) {
|
|
30
|
-
return (React.createElement(antd_1.Form.List, { name: ["invoice", "invoiceLines"] }, function (fields, _a) {
|
|
31
|
-
var add = _a.add, remove = _a.remove;
|
|
32
|
-
return (React.createElement(antd_1.Flex, { vertical: true }));
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
var BillingLinesWithIntl = (0, react_intl_1.injectIntl)(NewNewBillingLines);
|
|
36
|
-
exports.default = BillingLinesWithIntl;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var antd_1 = require("antd");
|
|
7
|
-
var form_item_1 = __importDefault(require("../form-item"));
|
|
8
|
-
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
9
|
-
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
10
|
-
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
11
|
-
var react_1 = __importDefault(require("react"));
|
|
12
|
-
var NewBillingLines_1 = require("./NewBillingLines");
|
|
13
|
-
react_1.default.createElement(antd_1.Col, { span: 12 },
|
|
14
|
-
react_1.default.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], defaultIsRequired: true, fieldName: [field.name, "unitPriceAmount"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_unitPriceAmount), verticalLabels: true, onlyLabelOnFirstInList: true, index: index }, (0, BillingLineUtility_1.getCorrectInputNode)("unitPriceAmount", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_unitPriceAmount), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], true), currencySelector)));
|
|
File without changes
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import {Card, Col, Flex, FormInstance, Row, theme, Typography} from "antd";
|
|
3
|
-
// import React from "react";
|
|
4
|
-
// import { injectIntl, WrappedComponentProps} from "react-intl";
|
|
5
|
-
// import {translationMessages} from "./index";
|
|
6
|
-
// import {grey} from "@ant-design/colors";
|
|
7
|
-
// import {PartyMetadata} from "../../../../../unimaze-api-clients/src/mapi";
|
|
8
|
-
//
|
|
9
|
-
// interface Props extends WrappedComponentProps {
|
|
10
|
-
// form: FormInstance;
|
|
11
|
-
// chosenCustomer: PartyMetadata;
|
|
12
|
-
// }
|
|
13
|
-
//
|
|
14
|
-
// const InvoicePreviewCustomerSupplierInfo: React.FC<Props> = (props) => {
|
|
15
|
-
// const {token} = theme.useToken();
|
|
16
|
-
//
|
|
17
|
-
// return (
|
|
18
|
-
// <Card
|
|
19
|
-
// bordered={false}
|
|
20
|
-
// style={{backgroundColor: "#F5F5F5"}}
|
|
21
|
-
// title={"LL"
|
|
22
|
-
// // <Row gutter={20}>
|
|
23
|
-
// // <Col span={12}>
|
|
24
|
-
// // <Flex justify="space-between" align="flex-end" style={{fontWeight: 400}}>
|
|
25
|
-
// // <Typography.Text>
|
|
26
|
-
// // {"DSAAA"}
|
|
27
|
-
// // {/*{props.intl.formatMessage(translationMessages.baseInformation_issueDate)}*/}
|
|
28
|
-
// // </Typography.Text>
|
|
29
|
-
// // <Typography.Text type="secondary" style={{fontSize: token.fontSizeSM}}>
|
|
30
|
-
// // {props.form.getFieldValue(["invoice", "issueDate"])?.format("DD.MM.YYYY")}
|
|
31
|
-
// // </Typography.Text>
|
|
32
|
-
// // </Flex>
|
|
33
|
-
// // </Col>
|
|
34
|
-
// // <Col span={12} style={{borderLeft: `1px solid ${grey[0]}`}}>
|
|
35
|
-
// // <Flex justify="space-between" align="flex-end" style={{fontWeight: 400}}>
|
|
36
|
-
// // <Typography.Text>
|
|
37
|
-
// // {props.intl.formatMessage(translationMessages.baseInformation_dueDate)}
|
|
38
|
-
// // </Typography.Text>
|
|
39
|
-
// // <Typography.Text type="secondary" style={{fontSize: token.fontSizeSM}}>
|
|
40
|
-
// // {props.form.getFieldValue(["invoice", "dueDate"])?.format("DD.MM.YYYY")}
|
|
41
|
-
// // </Typography.Text>
|
|
42
|
-
// // </Flex>
|
|
43
|
-
// // </Col>
|
|
44
|
-
// // </Row>
|
|
45
|
-
// }
|
|
46
|
-
// >
|
|
47
|
-
// <Flex vertical gap={"small"}>
|
|
48
|
-
// {/*<Typography.Text style={{fontSize: token.fontSizeHeading4, fontWeight: 500}}>*/}
|
|
49
|
-
// {/* {props.intl.formatMessage(translationMessages.customer_title)}:*/}
|
|
50
|
-
// {/*</Typography.Text>*/}
|
|
51
|
-
// {/*<Typography.Text type="secondary">{props.chosenCustomer.name}</Typography.Text>*/}
|
|
52
|
-
// {/*<Typography.Text type="secondary">*/}
|
|
53
|
-
// {/* {props.intl.formatMessage(translationMessages.customer_identifier)}:{" "}*/}
|
|
54
|
-
// {/* {props.chosenCustomer.identifier}*/}
|
|
55
|
-
// {/*</Typography.Text>*/}
|
|
56
|
-
// {/*{props.chosenCustomer.address?.streetNameAndNumber &&*/}
|
|
57
|
-
// {/* props.chosenCustomer.address?.postalZone &&*/}
|
|
58
|
-
// {/* props.chosenCustomer.address?.city && (*/}
|
|
59
|
-
// {/* <Typography.Text type="secondary">*/}
|
|
60
|
-
// {/* {props.intl.formatMessage(translationMessages.customer_address_streetNameAndNumber)}*/}
|
|
61
|
-
// {/* : {props.chosenCustomer.address.streetNameAndNumber},{" "}*/}
|
|
62
|
-
// {/* {props.chosenCustomer.address.postalZone}{" "}*/}
|
|
63
|
-
// {/* {props.chosenCustomer.address.city}*/}
|
|
64
|
-
// {/* </Typography.Text>*/}
|
|
65
|
-
// {/* )}*/}
|
|
66
|
-
// {/*{props.form.getFieldValue(["invoice", "customer", "locationIdentifier"]) && (*/}
|
|
67
|
-
// {/* <Typography.Text type="secondary">*/}
|
|
68
|
-
// {/* {props.intl.formatMessage(translationMessages.baseInformation_costCenter)}:{" "}*/}
|
|
69
|
-
// {/* {props.form.getFieldValue(["invoice", "customer", "locationIdentifier"])}*/}
|
|
70
|
-
// {/* </Typography.Text>*/}
|
|
71
|
-
// {/*)}*/}
|
|
72
|
-
// {/*<Col span={8} style={{padding: 0}}>*/}
|
|
73
|
-
// {/* <hr/>*/}
|
|
74
|
-
// {/*</Col>*/}
|
|
75
|
-
// {/*<Typography.Text style={{fontSize: token.fontSizeHeading4, fontWeight: 500}}>*/}
|
|
76
|
-
// {/* {props.intl.formatMessage(translationMessages.supplier_title)}:*/}
|
|
77
|
-
// {/*</Typography.Text>*/}
|
|
78
|
-
// {/*<Typography.Text type="secondary">*/}
|
|
79
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "name"])}*/}
|
|
80
|
-
// {/*</Typography.Text>*/}
|
|
81
|
-
// {/*<Typography.Text type="secondary">*/}
|
|
82
|
-
// {/* {props.intl.formatMessage(translationMessages.supplier_identifier)}:{" "}*/}
|
|
83
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "identifier"])}*/}
|
|
84
|
-
// {/*</Typography.Text>*/}
|
|
85
|
-
// {/*<Typography.Text type="secondary">*/}
|
|
86
|
-
// {/* {props.intl.formatMessage(translationMessages.supplier_address_streetNameAndNumber)}*/}
|
|
87
|
-
// {/* :{" "}*/}
|
|
88
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "address", "streetNameAndNumber",])}*/}
|
|
89
|
-
// {/* , {props.form.getFieldValue(["invoice", "supplier", "address", "postalZone"])}{" "}*/}
|
|
90
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "address", "city"])}*/}
|
|
91
|
-
// {/*</Typography.Text>*/}
|
|
92
|
-
// {/*{props.form.getFieldValue(["invoice", "supplier", "contact", "telephone"]) && (*/}
|
|
93
|
-
// {/* <Typography.Text type="secondary">*/}
|
|
94
|
-
// {/* {props.intl.formatMessage(translationMessages.supplier_contact_phoneNumber)}:*/}
|
|
95
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "contact", "telephone"])}*/}
|
|
96
|
-
// {/* </Typography.Text>*/}
|
|
97
|
-
// {/*)}*/}
|
|
98
|
-
// {/*{props.form.getFieldValue(["invoice", "supplier", "contact", "electronicMail"]) && (*/}
|
|
99
|
-
// {/* <Typography.Text type="secondary">*/}
|
|
100
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "contact", "electronicMail"])}*/}
|
|
101
|
-
// {/* </Typography.Text>*/}
|
|
102
|
-
// {/*)}*/}
|
|
103
|
-
// </Flex>
|
|
104
|
-
// </Card>
|
|
105
|
-
// );
|
|
106
|
-
// };
|
|
107
|
-
//
|
|
108
|
-
// export default injectIntl(InvoicePreviewCustomerSupplierInfo);
|
|
109
|
-
//
|
|
File without changes
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import {Card, Flex, FormInstance, Typography} from "antd";
|
|
3
|
-
// import React from "react";
|
|
4
|
-
// import { injectIntl, WrappedComponentProps} from "react-intl";
|
|
5
|
-
// import {translationMessages as invoicePreviewTranslations} from "./index";
|
|
6
|
-
// import {translationMessages as paymentMethod_translationMessages} from "../payment-method";
|
|
7
|
-
// import {PaymentMeansType} from "../../../../../unimaze-api-clients/src/mapi";
|
|
8
|
-
// import {getFieldRequirements} from "../../../utils/RequirementsUtility";
|
|
9
|
-
// import {AvailableFields} from "../../types/ReceiverRequirements";
|
|
10
|
-
// import {NewReceiverRequirements} from "../../types/NewReceiverRequirements";
|
|
11
|
-
//
|
|
12
|
-
// interface Props extends WrappedComponentProps {
|
|
13
|
-
// form: FormInstance;
|
|
14
|
-
// receiverRequirements: NewReceiverRequirements;
|
|
15
|
-
// }
|
|
16
|
-
//
|
|
17
|
-
// const InvoicePreviewPaymentInfo: React.FC<Props> = (props) => {
|
|
18
|
-
//
|
|
19
|
-
// const defaultPaymentMethods = [
|
|
20
|
-
// {
|
|
21
|
-
// key: PaymentMeansType.NotSpecified,
|
|
22
|
-
// name: props.intl.formatMessage(paymentMethod_translationMessages.paymentMethod_labels_methods_undefined),
|
|
23
|
-
// },
|
|
24
|
-
// {
|
|
25
|
-
// key: PaymentMeansType.MutuallyAgreed,
|
|
26
|
-
// name: props.intl.formatMessage(
|
|
27
|
-
// paymentMethod_translationMessages.paymentMethod_labels_methods_mutuallyAgreed
|
|
28
|
-
// ),
|
|
29
|
-
// },
|
|
30
|
-
// {
|
|
31
|
-
// key: PaymentMeansType.DomesticTransfer,
|
|
32
|
-
// name: props.intl.formatMessage(
|
|
33
|
-
// paymentMethod_translationMessages.paymentMethod_labels_methods_domesticTransfer
|
|
34
|
-
// ),
|
|
35
|
-
// },
|
|
36
|
-
// {
|
|
37
|
-
// key: PaymentMeansType.DomesticClaim,
|
|
38
|
-
// name: props.intl.formatMessage(
|
|
39
|
-
// paymentMethod_translationMessages.paymentMethod_labels_methods_domesticClaim
|
|
40
|
-
// ),
|
|
41
|
-
// },
|
|
42
|
-
// ];
|
|
43
|
-
//
|
|
44
|
-
// const getPaymentMeansValue = (paymentMeansType: PaymentMeansType) => {
|
|
45
|
-
// const paymentMeansTypes = getFieldRequirements(props.receiverRequirements, AvailableFields["paymentMeans.type"]);
|
|
46
|
-
//
|
|
47
|
-
// if (
|
|
48
|
-
// paymentMeansTypes &&
|
|
49
|
-
// paymentMeansTypes.hasOwnProperty("properties") &&
|
|
50
|
-
// paymentMeansTypes.properties.hasOwnProperty("values") &&
|
|
51
|
-
// paymentMeansTypes.properties.values
|
|
52
|
-
// ) {
|
|
53
|
-
// const paymentMeansValue = paymentMeansTypes.properties.values.find(
|
|
54
|
-
// (value: any) => value.key === paymentMeansType
|
|
55
|
-
// );
|
|
56
|
-
// return paymentMeansValue?.name;
|
|
57
|
-
// } else {
|
|
58
|
-
// const paymentMeansValue = defaultPaymentMethods.find((value: any) => value.key === paymentMeansType);
|
|
59
|
-
// return paymentMeansValue?.name;
|
|
60
|
-
// }
|
|
61
|
-
// };
|
|
62
|
-
//
|
|
63
|
-
// return (
|
|
64
|
-
// <Card bordered={false} style={{backgroundColor: "#F5F5F5"}} size="small">
|
|
65
|
-
// <Flex vertical style={{padding: "0 12px"}} gap={"small"}>
|
|
66
|
-
// <Typography.Text style={{fontWeight: 700}}>
|
|
67
|
-
// {props.intl.formatMessage(invoicePreviewTranslations.invoicePreview_paymentInfoTitle)}
|
|
68
|
-
// </Typography.Text>
|
|
69
|
-
// <Flex vertical>
|
|
70
|
-
// <Typography.Text type="secondary">
|
|
71
|
-
// {props.form.getFieldValue(["invoice", "supplier", "name"])} Kt:{" "}
|
|
72
|
-
// {props.form.getFieldValue(["invoice", "supplier", "identifier"])}
|
|
73
|
-
// </Typography.Text>
|
|
74
|
-
// <Typography.Text type="secondary">
|
|
75
|
-
// {getPaymentMeansValue(props.form.getFieldValue(["invoice", "paymentMeans", "type"]))}
|
|
76
|
-
// </Typography.Text>
|
|
77
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer"]) && (
|
|
78
|
-
// <>
|
|
79
|
-
// <Typography.Text type="secondary">
|
|
80
|
-
// {props.intl.formatMessage(paymentMethod_translationMessages.paymentMethod_labels_domesticTransfer_accountNo)}:{" "}
|
|
81
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "bankNumber",])}
|
|
82
|
-
// -
|
|
83
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "accountTypeNumber",])}
|
|
84
|
-
// -
|
|
85
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "accountNumber",])}
|
|
86
|
-
// </Typography.Text>
|
|
87
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "paymentIdentifier",]) && (
|
|
88
|
-
// <Typography.Text type="secondary">
|
|
89
|
-
// {props.intl.formatMessage(paymentMethod_translationMessages.paymentMethod_labels_domesticTransfer_paymentReference)}
|
|
90
|
-
// :{" "}
|
|
91
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "paymentIdentifier",])}
|
|
92
|
-
// </Typography.Text>
|
|
93
|
-
// )}
|
|
94
|
-
// </>
|
|
95
|
-
// )}
|
|
96
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim"]) && (
|
|
97
|
-
// <Typography.Text type="secondary">
|
|
98
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim", "bankNumber",])}
|
|
99
|
-
// -66-
|
|
100
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim", "accountNumber",])}
|
|
101
|
-
// </Typography.Text>
|
|
102
|
-
// )}
|
|
103
|
-
// </Flex>
|
|
104
|
-
// </Flex>
|
|
105
|
-
// </Card>
|
|
106
|
-
// );
|
|
107
|
-
// };
|
|
108
|
-
//
|
|
109
|
-
// export default injectIntl(InvoicePreviewPaymentInfo);
|
|
110
|
-
//
|