@unimaze/billing 0.21.54 → 0.21.56
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 -12
- package/package.json +1 -1
|
@@ -633,13 +633,17 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
633
633
|
return setIsSaveFieldValuesSelected(!isSaveFieldValuesSelected);
|
|
634
634
|
}, localStorageFormDataVersion: props.localStorageFormDataVersion })),
|
|
635
635
|
activeStep === items.length && (react_1.default.createElement(components_1.InvoicePreview, { recieverRequirements: props.receiverRequirements, form: form, chosenCustomer: chosenCustomer })),
|
|
636
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true, style: activeStep !== items.length ? { display: "none" } : {} },
|
|
637
|
-
react_1.default.createElement(antd_1.Row, { style: { width: "100%", padding: "25px 8px 8px 8px" }, justify: "center" },
|
|
638
|
-
react_1.default.createElement(antd_1.Col, null,
|
|
639
|
-
react_1.default.createElement(reaptcha_1.default, { sitekey: "6LdMUdEZAAAAAG--2WEyu8CIRVlv6CzdZIwaQ-zt", ref: recaptchaRef, onVerify: function (response) {
|
|
640
|
-
setCaptchaVerified(true);
|
|
641
|
-
}, hl: props.language, onExpire: function () { return setCaptchaVerified(false); }, onError: function () { return setCaptchaVerified(false); } })))),
|
|
642
636
|
activeStep === 5 && react_1.default.createElement(components_1.SubmitConfirmation, { numberOfSuccessfulCalls: numberOfSuccessfulCalls, totalNumberOfCalls: totalNumberOfCalls, form: form }),
|
|
637
|
+
activeStep === items.length && (react_1.default.createElement(antd_1.Flex, { justify: "center" },
|
|
638
|
+
react_1.default.createElement(antd_1.Flex, { gap: isMobile ? "middle" : 20, vertical: true, align: "end", style: { width: "100%", maxWidth: "900px" } },
|
|
639
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true, style: activeStep !== items.length ? { display: "none" } : {} },
|
|
640
|
+
react_1.default.createElement(antd_1.Row, { style: { width: "100%", padding: "25px 8px 8px 8px" }, justify: "end" },
|
|
641
|
+
react_1.default.createElement(antd_1.Col, null,
|
|
642
|
+
react_1.default.createElement(reaptcha_1.default, { sitekey: "6LdMUdEZAAAAAG--2WEyu8CIRVlv6CzdZIwaQ-zt", ref: recaptchaRef, onVerify: function (response) {
|
|
643
|
+
setCaptchaVerified(true);
|
|
644
|
+
}, hl: props.language, onExpire: function () { return setCaptchaVerified(false); }, onError: function () { return setCaptchaVerified(false); } })))),
|
|
645
|
+
react_1.default.createElement(antd_1.Tooltip, { title: supplierEmail ? intl.formatMessage(exports.translationMessages.createInvoice_SendCopyTooltip) : intl.formatMessage(exports.translationMessages.createInvoice_SendCopyTooltipDisabled) },
|
|
646
|
+
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)))))),
|
|
643
647
|
react_1.default.createElement(antd_1.Flex, { justify: "center" },
|
|
644
648
|
react_1.default.createElement(antd_1.Flex, { gap: isMobile ? "middle" : 60, justify: "end", align: "end", style: { width: "100%", maxWidth: "900px" } },
|
|
645
649
|
isBackButtonVisible && (react_1.default.createElement(antd_1.Button, { onClick: handlePrevStep, size: "large", block: true },
|
|
@@ -648,12 +652,9 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
648
652
|
isNextStepVisible ? (react_1.default.createElement(antd_1.Tooltip, { title: missingRequiredDataTooltip },
|
|
649
653
|
react_1.default.createElement(antd_1.Button, { onClick: handleNextStep, type: "primary", size: "large", style: { maxWidth: "50%" }, disabled: isNextStepDisabled, block: true },
|
|
650
654
|
intl.formatMessage(exports.translationMessages.createInvoice_nextStep),
|
|
651
|
-
react_1.default.createElement(icons_1.ArrowRightOutlined, null)))) : (activeStep === items.length && (react_1.default.createElement(antd_1.
|
|
652
|
-
|
|
653
|
-
|
|
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)))))))))))),
|
|
655
|
+
react_1.default.createElement(icons_1.ArrowRightOutlined, null)))) : (activeStep === items.length && (react_1.default.createElement(antd_1.Button, { type: "primary", htmlType: "submit", size: "large", disabled: isSubmitDisabled, onClick: function () { return form.submit(); }, block: true },
|
|
656
|
+
intl.formatMessage(exports.translationMessages.createInvoice_Submit),
|
|
657
|
+
react_1.default.createElement(icons_1.ArrowRightOutlined, null))))))))))),
|
|
657
658
|
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 }))));
|
|
658
659
|
};
|
|
659
660
|
exports.default = (0, react_intl_1.injectIntl)(CreateInvoiceConstructor);
|