@unimaze/billing 0.21.52 → 0.21.54
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/create-invoice/index.js +13 -5
- 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
|
@@ -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
|
}, []);
|
|
@@ -629,23 +634,26 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
629
634
|
}, localStorageFormDataVersion: props.localStorageFormDataVersion })),
|
|
630
635
|
activeStep === items.length && (react_1.default.createElement(components_1.InvoicePreview, { recieverRequirements: props.receiverRequirements, form: form, chosenCustomer: chosenCustomer })),
|
|
631
636
|
react_1.default.createElement(antd_1.Flex, { vertical: true, style: activeStep !== items.length ? { display: "none" } : {} },
|
|
632
|
-
react_1.default.createElement(antd_1.Row, { style: { width: "100%", padding: "8px" }, justify: "center" },
|
|
637
|
+
react_1.default.createElement(antd_1.Row, { style: { width: "100%", padding: "25px 8px 8px 8px" }, justify: "center" },
|
|
633
638
|
react_1.default.createElement(antd_1.Col, null,
|
|
634
639
|
react_1.default.createElement(reaptcha_1.default, { sitekey: "6LdMUdEZAAAAAG--2WEyu8CIRVlv6CzdZIwaQ-zt", ref: recaptchaRef, onVerify: function (response) {
|
|
635
640
|
setCaptchaVerified(true);
|
|
636
641
|
}, hl: props.language, onExpire: function () { return setCaptchaVerified(false); }, onError: function () { return setCaptchaVerified(false); } })))),
|
|
637
642
|
activeStep === 5 && react_1.default.createElement(components_1.SubmitConfirmation, { numberOfSuccessfulCalls: numberOfSuccessfulCalls, totalNumberOfCalls: totalNumberOfCalls, form: form }),
|
|
638
643
|
react_1.default.createElement(antd_1.Flex, { justify: "center" },
|
|
639
|
-
react_1.default.createElement(antd_1.Flex, { gap: isMobile ? "middle" : 60, justify: "end", style: { width: "100%", maxWidth: "900px" } },
|
|
644
|
+
react_1.default.createElement(antd_1.Flex, { gap: isMobile ? "middle" : 60, justify: "end", align: "end", style: { width: "100%", maxWidth: "900px" } },
|
|
640
645
|
isBackButtonVisible && (react_1.default.createElement(antd_1.Button, { onClick: handlePrevStep, size: "large", block: true },
|
|
641
646
|
react_1.default.createElement(icons_1.ArrowLeftOutlined, null), (_e = items[activeStep - 1]) === null || _e === void 0 ? void 0 :
|
|
642
647
|
_e.title)),
|
|
643
648
|
isNextStepVisible ? (react_1.default.createElement(antd_1.Tooltip, { title: missingRequiredDataTooltip },
|
|
644
649
|
react_1.default.createElement(antd_1.Button, { onClick: handleNextStep, type: "primary", size: "large", style: { maxWidth: "50%" }, disabled: isNextStepDisabled, block: true },
|
|
645
650
|
intl.formatMessage(exports.translationMessages.createInvoice_nextStep),
|
|
646
|
-
react_1.default.createElement(icons_1.ArrowRightOutlined, null)))) : (activeStep === items.length && (react_1.default.createElement(antd_1.
|
|
647
|
-
intl.formatMessage(exports.translationMessages.
|
|
648
|
-
|
|
651
|
+
react_1.default.createElement(icons_1.ArrowRightOutlined, null)))) : (activeStep === items.length && (react_1.default.createElement(antd_1.Flex, { vertical: true, align: "center", style: { width: "100%" }, gap: "middle" },
|
|
652
|
+
react_1.default.createElement(antd_1.Tooltip, { title: supplierEmail ? intl.formatMessage(exports.translationMessages.createInvoice_SendCopyTooltip) : intl.formatMessage(exports.translationMessages.createInvoice_SendCopyTooltipDisabled) },
|
|
653
|
+
react_1.default.createElement(antd_1.Checkbox, { title: intl.formatMessage(exports.translationMessages.createInvoice_SendCopy), checked: sendCopy, onChange: function (e) { return setSendCopy(e.target.checked); }, disabled: !supplierEmail }, intl.formatMessage(exports.translationMessages.createInvoice_SendCopy))),
|
|
654
|
+
react_1.default.createElement(antd_1.Button, { type: "primary", htmlType: "submit", size: "large", disabled: isSubmitDisabled, onClick: function () { return form.submit(); }, block: true },
|
|
655
|
+
intl.formatMessage(exports.translationMessages.createInvoice_Submit),
|
|
656
|
+
react_1.default.createElement(icons_1.ArrowRightOutlined, null)))))))))))),
|
|
649
657
|
props.language && props.welcomeModalTitle && props.welcomeModalParagraph && (react_1.default.createElement(welcome_modal_1.default, { isOpen: isWelcomeModalOpen, onClose: function () { return setIsWelcomeModalOpen(false); }, title: props.welcomeModalTitle[props.language], paragraph: props.welcomeModalParagraph[props.language], imageUrl: props.welcomeModalImageUrl }))));
|
|
650
658
|
};
|
|
651
659
|
exports.default = (0, react_intl_1.injectIntl)(CreateInvoiceConstructor);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unimaze/billing",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.54",
|
|
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
|
-
//
|