@unimaze/billing 0.21.8 → 0.21.10
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/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +109 -0
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +14 -0
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +73 -0
- package/lib/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +12 -0
- package/lib/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +93 -0
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +110 -0
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +14 -0
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +77 -0
- package/lib/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +14 -0
- package/lib/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +52 -0
- package/lib/common/components/payment-method/index.js +5 -0
- package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +1 -29
- package/lib/unimaze-billing/src/common/components/CommonTranslations.js +4 -32
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +5 -2
- package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +6 -1
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +34 -12
- package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +10 -1
- package/lib/unimaze-billing/src/common/components/base-information/index.js +10 -2
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +3 -5
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +4 -1
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +45 -25
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +0 -1
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +6 -1
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +41 -327
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +10 -5
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +137 -61
- package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +3 -6
- package/lib/unimaze-billing/src/common/components/billing-lines/index.js +1 -1
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/customer/index.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/customer/index.js +7 -9
- package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/input/index.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +3 -1
- package/lib/unimaze-billing/src/common/components/invoice/index.js +21 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +14 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +75 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +14 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +73 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +7 -8
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +12 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +93 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +14 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +77 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +14 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +58 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +14 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +52 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +87 -1
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +27 -236
- package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +1 -1
- package/lib/unimaze-billing/src/common/components/supplier/index.js +1 -1
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +1 -1
- package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +7 -4
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +2 -0
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +2 -0
- package/lib/unimaze-billing/src/create-invoice/index.d.ts +11 -3
- package/lib/unimaze-billing/src/create-invoice/index.js +91 -64
- package/lib/unimaze-billing/src/enums.d.ts +3 -0
- package/lib/unimaze-billing/src/translations/locales/en.json +13 -13
- package/lib/unimaze-billing/src/translations/locales/is.json +8 -8
- package/lib/unimaze-billing/src/translations/locales.d.ts +16 -16
- package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +9 -3
- package/lib/unimaze-billing/src/utils/ApiUtility.js +31 -13
- package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +4 -1
- package/lib/unimaze-billing/src/utils/BillingLineUtility.js +36 -4
- package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +2 -2
- package/lib/unimaze-billing/src/utils/ConversionUtility.js +10 -11
- package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +1 -0
- package/lib/unimaze-billing/src/utils/IntlUtility.js +33 -10
- package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +3 -1
- package/lib/unimaze-billing/src/utils/RequirementsUtility.js +49 -1
- package/lib/utils/BillingLineUtility.js +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_intl_1 = require("react-intl");
|
|
9
|
+
var index_1 = require("./index");
|
|
10
|
+
var colors_1 = require("@ant-design/colors");
|
|
11
|
+
var InvoicePreviewCustomerSupplierInfoBox = function (props) {
|
|
12
|
+
var _a, _b, _c, _d, _e;
|
|
13
|
+
var token = antd_1.theme.useToken().token;
|
|
14
|
+
return (react_1.default.createElement(antd_1.Card, { bordered: false, style: { backgroundColor: "#F5F5F5" }, title: react_1.default.createElement(antd_1.Row, null,
|
|
15
|
+
react_1.default.createElement(antd_1.Flex, { justify: "space-between", align: "flex-end", style: { fontWeight: 400, borderRight: "1px solid ".concat(colors_1.grey[0]), paddingRight: 10 } },
|
|
16
|
+
react_1.default.createElement(antd_1.Typography.Text, null, props.intl.formatMessage(index_1.translationMessages.baseInformation_issueDate)),
|
|
17
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary", style: { fontSize: token.fontSizeSM, padding: "0px 5px 0px 5px" } }, (_a = props.form.getFieldValue(["invoice", "issueDate"])) === null || _a === void 0 ? void 0 : _a.format("DD.MM.YYYY"))),
|
|
18
|
+
react_1.default.createElement(antd_1.Flex, { justify: "space-between", align: "flex-end", style: { fontWeight: 400, padding: "0px 10px 0px 10px" } },
|
|
19
|
+
react_1.default.createElement(antd_1.Typography.Text, null, props.intl.formatMessage(index_1.translationMessages.baseInformation_dueDate)),
|
|
20
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary", style: { fontSize: token.fontSizeSM, padding: "0px 5px 0px 5px" } }, (_b = props.form.getFieldValue(["invoice", "dueDate"])) === null || _b === void 0 ? void 0 : _b.format("DD.MM.YYYY")))) },
|
|
21
|
+
react_1.default.createElement(antd_1.Flex, { gap: "middle", justify: "space-between" },
|
|
22
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
23
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeHeading4, fontWeight: 500 } },
|
|
24
|
+
props.intl.formatMessage(index_1.translationMessages.customer_title),
|
|
25
|
+
":"),
|
|
26
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" }, props.chosenCustomer.name),
|
|
27
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
28
|
+
props.intl.formatMessage(index_1.translationMessages.customer_identifier),
|
|
29
|
+
":",
|
|
30
|
+
" ",
|
|
31
|
+
props.chosenCustomer.identifier),
|
|
32
|
+
((_c = props.chosenCustomer.address) === null || _c === void 0 ? void 0 : _c.streetNameAndNumber) &&
|
|
33
|
+
((_d = props.chosenCustomer.address) === null || _d === void 0 ? void 0 : _d.postalZone) &&
|
|
34
|
+
((_e = props.chosenCustomer.address) === null || _e === void 0 ? void 0 : _e.city) && (react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
35
|
+
props.intl.formatMessage(index_1.translationMessages.customer_address_streetNameAndNumber),
|
|
36
|
+
": ",
|
|
37
|
+
props.chosenCustomer.address.streetNameAndNumber,
|
|
38
|
+
",",
|
|
39
|
+
" ",
|
|
40
|
+
props.chosenCustomer.address.postalZone,
|
|
41
|
+
" ",
|
|
42
|
+
props.chosenCustomer.address.city)),
|
|
43
|
+
props.form.getFieldValue(["invoice", "customer", "locationIdentifier"]) && (react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
44
|
+
props.intl.formatMessage(index_1.translationMessages.baseInformation_costCenter),
|
|
45
|
+
":",
|
|
46
|
+
" ",
|
|
47
|
+
props.form.getFieldValue(["invoice", "customer", "locationIdentifier"])))),
|
|
48
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
49
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeHeading4, fontWeight: 500 } },
|
|
50
|
+
props.intl.formatMessage(index_1.translationMessages.supplier_title),
|
|
51
|
+
":"),
|
|
52
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" }, props.form.getFieldValue(["invoice", "supplier", "name"])),
|
|
53
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
54
|
+
props.intl.formatMessage(index_1.translationMessages.supplier_identifier),
|
|
55
|
+
":",
|
|
56
|
+
" ",
|
|
57
|
+
props.form.getFieldValue(["invoice", "supplier", "identifier"])),
|
|
58
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
59
|
+
props.intl.formatMessage(index_1.translationMessages.supplier_address_streetNameAndNumber),
|
|
60
|
+
":",
|
|
61
|
+
" ",
|
|
62
|
+
props.form.getFieldValue(["invoice", "supplier", "address", "streetNameAndNumber",]),
|
|
63
|
+
", ",
|
|
64
|
+
props.form.getFieldValue(["invoice", "supplier", "address", "postalZone"]),
|
|
65
|
+
" ",
|
|
66
|
+
props.form.getFieldValue(["invoice", "supplier", "address", "city"])),
|
|
67
|
+
props.form.getFieldValue(["invoice", "supplier", "contact", "telephone"]) && (react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
68
|
+
props.intl.formatMessage(index_1.translationMessages.supplier_contact_phoneNumber),
|
|
69
|
+
":",
|
|
70
|
+
props.form.getFieldValue(["invoice", "supplier", "contact", "telephone"]))),
|
|
71
|
+
props.form.getFieldValue(["invoice", "supplier", "contact", "electronicMail"]) && (react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" }, props.form.getFieldValue(["invoice", "supplier", "contact", "electronicMail"])))))));
|
|
72
|
+
};
|
|
73
|
+
exports.default = (0, react_intl_1.injectIntl)(InvoicePreviewCustomerSupplierInfoBox);
|
|
@@ -5,7 +5,7 @@ interface Props extends WrappedComponentProps {
|
|
|
5
5
|
form: FormInstance;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
8
|
-
forwardedRef?: React.Ref<any
|
|
8
|
+
forwardedRef?: React.Ref<any>;
|
|
9
9
|
} & React.RefAttributes<any>> & {
|
|
10
10
|
WrappedComponent: React.ComponentType<Props>;
|
|
11
11
|
};
|
|
@@ -18,11 +18,10 @@ var antd_1 = require("antd");
|
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var react_intl_1 = require("react-intl");
|
|
20
20
|
var colors_1 = require("@ant-design/colors");
|
|
21
|
-
var react_intl_2 = require("react-intl");
|
|
22
21
|
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
23
22
|
var supplier_1 = require("../supplier");
|
|
24
23
|
var IntlUtility_1 = require("../../../utils/IntlUtility");
|
|
25
|
-
var translationMessages = (0,
|
|
24
|
+
var translationMessages = (0, react_intl_1.defineMessages)({
|
|
26
25
|
invoicePreview_headerTitle: {
|
|
27
26
|
id: "invoicePreview.headerTitle",
|
|
28
27
|
defaultMessage: "Invoice",
|
|
@@ -32,7 +31,7 @@ var WrappedInvoicePreviewHeader = function (props) {
|
|
|
32
31
|
return (react_1.default.createElement(antd_1.ConfigProvider, { theme: {
|
|
33
32
|
token: {
|
|
34
33
|
colorText: "white",
|
|
35
|
-
colorTextDescription:
|
|
34
|
+
colorTextDescription: "white",
|
|
36
35
|
fontSizeHeading5: 16,
|
|
37
36
|
fontSizeLG: 20,
|
|
38
37
|
fontSizeXL: 30,
|
|
@@ -42,7 +41,7 @@ var WrappedInvoicePreviewHeader = function (props) {
|
|
|
42
41
|
},
|
|
43
42
|
components: {
|
|
44
43
|
Layout: {
|
|
45
|
-
headerBg: colors_1.
|
|
44
|
+
headerBg: colors_1.blue[6],
|
|
46
45
|
headerPadding: "35px",
|
|
47
46
|
headerHeight: 200,
|
|
48
47
|
},
|
|
@@ -57,7 +56,7 @@ var InvoicePreviewHeader = function (props) {
|
|
|
57
56
|
react_1.default.createElement(antd_1.Layout.Header, { style: { width: "100vw", maxWidth: "900px" } },
|
|
58
57
|
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
59
58
|
react_1.default.createElement(antd_1.Flex, { vertical: true, style: {
|
|
60
|
-
borderBottom: "1px solid "
|
|
59
|
+
borderBottom: "1px solid white",
|
|
61
60
|
paddingBottom: "5px",
|
|
62
61
|
marginBottom: "10px",
|
|
63
62
|
} },
|
|
@@ -66,7 +65,7 @@ var InvoicePreviewHeader = function (props) {
|
|
|
66
65
|
":"),
|
|
67
66
|
react_1.default.createElement(antd_1.Typography.Text, null, props.form.getFieldValue(["invoice", "invoiceNo"]))),
|
|
68
67
|
react_1.default.createElement(antd_1.Flex, { vertical: true, style: {
|
|
69
|
-
borderBottom: "1px solid "
|
|
68
|
+
borderBottom: "1px solid white",
|
|
70
69
|
paddingBottom: "5px",
|
|
71
70
|
marginBottom: "10px",
|
|
72
71
|
} },
|
|
@@ -79,8 +78,8 @@ var InvoicePreviewHeader = function (props) {
|
|
|
79
78
|
props.form.getFieldValue(["invoice", "currencyCode"]),
|
|
80
79
|
react_1.default.createElement(antd_1.Typography.Text, { strong: true, style: {
|
|
81
80
|
fontSize: token.fontSizeLG,
|
|
82
|
-
} }, (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)((0, BillingLineUtility_1.getTotals)(props.form.getFieldValue(["invoice", "invoiceLines"]))
|
|
83
|
-
.totalTaxInclusiveAmount, props.intl)))),
|
|
81
|
+
} }, (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(Math.round((0, BillingLineUtility_1.getTotals)(props.form.getFieldValue(["invoice", "invoiceLines"]))
|
|
82
|
+
.totalTaxInclusiveAmount), props.intl)))),
|
|
84
83
|
react_1.default.createElement(antd_1.Flex, { vertical: true, align: "flex-end" },
|
|
85
84
|
props.form.getFieldValue(["invoice", "singleReferenceIdentifier"]) &&
|
|
86
85
|
props.form.getFieldValue(["invoice", "singleReferenceIdentifier"]).code &&
|
package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormInstance } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { WrappedComponentProps } from "react-intl";
|
|
4
|
+
interface Props extends WrappedComponentProps {
|
|
5
|
+
form: FormInstance;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
8
|
+
forwardedRef?: React.Ref<any>;
|
|
9
|
+
} & React.RefAttributes<any>> & {
|
|
10
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_intl_1 = require("react-intl");
|
|
9
|
+
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
10
|
+
var index_1 = require("./index");
|
|
11
|
+
var IntlUtility_1 = require("../../../utils/IntlUtility");
|
|
12
|
+
var enums_1 = require("../../../enums");
|
|
13
|
+
var InvoicePreviewInvoiceLines = function (props) {
|
|
14
|
+
var _a;
|
|
15
|
+
var token = antd_1.theme.useToken().token;
|
|
16
|
+
var billingLineContent = function (line) {
|
|
17
|
+
var quantity = line.quantity, unitOfMeasure = line.unitOfMeasure, unitPriceAmount = line.unitPriceAmount, currencyCode = line.currencyCode;
|
|
18
|
+
var unitOfMeasureUnit = (unitOfMeasure === null || unitOfMeasure === void 0 ? void 0 : unitOfMeasure.unit) === "One" ? undefined : (unitOfMeasure === null || unitOfMeasure === void 0 ? void 0 : unitOfMeasure.unit) + ("(s)");
|
|
19
|
+
return react_1.default.createElement(antd_1.Typography.Text, { style: { fontStyle: "italic", color: 'grey' } },
|
|
20
|
+
quantity,
|
|
21
|
+
" ",
|
|
22
|
+
unitOfMeasureUnit,
|
|
23
|
+
" ",
|
|
24
|
+
"@",
|
|
25
|
+
" ",
|
|
26
|
+
unitPriceAmount,
|
|
27
|
+
" ",
|
|
28
|
+
currencyCode,
|
|
29
|
+
" ",
|
|
30
|
+
"each");
|
|
31
|
+
};
|
|
32
|
+
var getInvoiceLineHeader = function (line, taxPercentage, calculatedDiscountValue) {
|
|
33
|
+
return react_1.default.createElement("div", { style: {
|
|
34
|
+
display: "flex",
|
|
35
|
+
flexDirection: 'row',
|
|
36
|
+
backgroundColor: "#F5F5F5",
|
|
37
|
+
margin: "0 -24px",
|
|
38
|
+
padding: "0 24px",
|
|
39
|
+
justifyContent: "space-between",
|
|
40
|
+
} },
|
|
41
|
+
react_1.default.createElement("div", { style: { width: "80%", justifyContent: "space-between", display: "flex", flexDirection: 'row' } },
|
|
42
|
+
react_1.default.createElement("div", null,
|
|
43
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: "16px" } },
|
|
44
|
+
line.itemNo,
|
|
45
|
+
" ",
|
|
46
|
+
react_1.default.createElement("span", { style: { fontWeight: 'bold' } }, line.name))),
|
|
47
|
+
react_1.default.createElement("div", { style: { display: "flex", flexDirection: "row" } },
|
|
48
|
+
billingLineContent(line),
|
|
49
|
+
react_1.default.createElement("div", { style: { marginLeft: '10px' } },
|
|
50
|
+
line.taxableAmount,
|
|
51
|
+
" ",
|
|
52
|
+
line.currencyCode))),
|
|
53
|
+
react_1.default.createElement("div", null,
|
|
54
|
+
react_1.default.createElement(antd_1.Typography.Text, null,
|
|
55
|
+
(0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)((line.quantity * line.unitPriceAmount) + (0, BillingLineUtility_1.calculateTaxAmount)(line.taxableAmount, taxPercentage) - calculatedDiscountValue, props.intl),
|
|
56
|
+
" ",
|
|
57
|
+
line.currencyCode)));
|
|
58
|
+
};
|
|
59
|
+
return (react_1.default.createElement(antd_1.Flex, { vertical: true, style: { padding: "0 24px" }, gap: "middle" },
|
|
60
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeHeading4 } },
|
|
61
|
+
props.intl.formatMessage(index_1.translationMessages.invoicePreview_billingLinesTitle),
|
|
62
|
+
":"),
|
|
63
|
+
((_a = props.form.getFieldValue(["invoice", "invoiceLines"])) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
64
|
+
props.form
|
|
65
|
+
.getFieldValue(["invoice", "invoiceLines"])
|
|
66
|
+
.map(function (line, index) {
|
|
67
|
+
var taxPercentage = (0, BillingLineUtility_1.calculateTaxPercentage)(enums_1.AvailableTaxCategoryTypeEnum[line.taxCategoryType]);
|
|
68
|
+
var calculatedDiscountValue = line.discountType === "PERCENTAGE"
|
|
69
|
+
? (0, BillingLineUtility_1.calculateDiscountAmount)(line.discountValue, line.quantity, line.unitPriceAmount)
|
|
70
|
+
: line.discountValue;
|
|
71
|
+
return (react_1.default.createElement(antd_1.Flex, { key: index, vertical: true, gap: "small" },
|
|
72
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true }, getInvoiceLineHeader(line, taxPercentage, calculatedDiscountValue)),
|
|
73
|
+
line.discountValue && (react_1.default.createElement(antd_1.Flex, { justify: "space-between", style: { width: "80%" }, align: "center" },
|
|
74
|
+
react_1.default.createElement(antd_1.Typography.Text, null, "".concat(line.discountValue).concat(line.discountType === "PERCENTAGE" ? "%" : " ".concat(line.currencyCode)),
|
|
75
|
+
" ",
|
|
76
|
+
props.intl.formatMessage(index_1.translationMessages.billingLines_discount)),
|
|
77
|
+
react_1.default.createElement(antd_1.Typography.Text, null,
|
|
78
|
+
"-",
|
|
79
|
+
(0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(calculatedDiscountValue, props.intl),
|
|
80
|
+
" ",
|
|
81
|
+
line.currencyCode))),
|
|
82
|
+
react_1.default.createElement(antd_1.Flex, { justify: "space-between", style: { width: "80%" }, align: "center" },
|
|
83
|
+
react_1.default.createElement(antd_1.Typography.Text, null,
|
|
84
|
+
taxPercentage,
|
|
85
|
+
"% VAT of ",
|
|
86
|
+
line.taxableAmount),
|
|
87
|
+
react_1.default.createElement(antd_1.Typography.Text, null,
|
|
88
|
+
(0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)((0, BillingLineUtility_1.calculateTaxAmount)(line.taxableAmount, taxPercentage), props.intl),
|
|
89
|
+
" ",
|
|
90
|
+
line.currencyCode))));
|
|
91
|
+
})));
|
|
92
|
+
};
|
|
93
|
+
exports.default = (0, react_intl_1.injectIntl)(InvoicePreviewInvoiceLines);
|
package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormInstance } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { WrappedComponentProps } from "react-intl";
|
|
4
|
+
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
5
|
+
interface Props extends WrappedComponentProps {
|
|
6
|
+
form: FormInstance;
|
|
7
|
+
receiverRequirements: NewReceiverRequirements;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
10
|
+
forwardedRef?: React.Ref<any>;
|
|
11
|
+
} & React.RefAttributes<any>> & {
|
|
12
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_intl_1 = require("react-intl");
|
|
9
|
+
var index_1 = require("./index");
|
|
10
|
+
var payment_method_1 = require("../payment-method");
|
|
11
|
+
var mapi_1 = require("../../../../../unimaze-api-clients/src/mapi");
|
|
12
|
+
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
13
|
+
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
14
|
+
var InvoicePreviewPaymentInfo = function (props) {
|
|
15
|
+
var defaultPaymentMethods = [
|
|
16
|
+
{
|
|
17
|
+
key: mapi_1.PaymentMeansType.NotSpecified,
|
|
18
|
+
name: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_methods_undefined),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: mapi_1.PaymentMeansType.MutuallyAgreed,
|
|
22
|
+
name: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_methods_mutuallyAgreed),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: mapi_1.PaymentMeansType.DomesticTransfer,
|
|
26
|
+
name: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_methods_domesticTransfer),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: mapi_1.PaymentMeansType.DomesticClaim,
|
|
30
|
+
name: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_methods_domesticClaim),
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
var getPaymentMeansValue = function (paymentMeansType) {
|
|
34
|
+
var paymentMeansTypes = (0, RequirementsUtility_1.getFieldRequirements)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["paymentMeans.type"]);
|
|
35
|
+
if (paymentMeansTypes &&
|
|
36
|
+
paymentMeansTypes.hasOwnProperty("properties") &&
|
|
37
|
+
paymentMeansTypes.properties.hasOwnProperty("values") &&
|
|
38
|
+
paymentMeansTypes.properties.values) {
|
|
39
|
+
var paymentMeansValue = paymentMeansTypes.properties.values.find(function (value) { return value.key === paymentMeansType; });
|
|
40
|
+
return paymentMeansValue === null || paymentMeansValue === void 0 ? void 0 : paymentMeansValue.name;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
var paymentMeansValue = defaultPaymentMethods.find(function (value) { return value.key === paymentMeansType; });
|
|
44
|
+
return paymentMeansValue === null || paymentMeansValue === void 0 ? void 0 : paymentMeansValue.name;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return (react_1.default.createElement(antd_1.Card, { bordered: false, style: { backgroundColor: "#F5F5F5" }, size: "small" },
|
|
48
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true, style: { padding: "0 12px" }, gap: "small" },
|
|
49
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontWeight: 700 } }, props.intl.formatMessage(index_1.translationMessages.invoicePreview_paymentInfoTitle)),
|
|
50
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
51
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
52
|
+
props.form.getFieldValue(["invoice", "supplier", "name"]),
|
|
53
|
+
" Kt:",
|
|
54
|
+
" ",
|
|
55
|
+
props.form.getFieldValue(["invoice", "supplier", "identifier"])),
|
|
56
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" }, getPaymentMeansValue(props.form.getFieldValue(["invoice", "paymentMeans", "type"]))),
|
|
57
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer"]) && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
58
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
59
|
+
props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_domesticTransfer_accountNo),
|
|
60
|
+
":",
|
|
61
|
+
" ",
|
|
62
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "bankNumber",]),
|
|
63
|
+
"-",
|
|
64
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "accountTypeNumber",]),
|
|
65
|
+
"-",
|
|
66
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "accountNumber",])),
|
|
67
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "paymentIdentifier",]) && (react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
68
|
+
props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_domesticTransfer_paymentReference),
|
|
69
|
+
":",
|
|
70
|
+
" ",
|
|
71
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "paymentIdentifier",]))))),
|
|
72
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim"]) && (react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
73
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim", "bankNumber",]),
|
|
74
|
+
"-66-",
|
|
75
|
+
props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim", "accountNumber",])))))));
|
|
76
|
+
};
|
|
77
|
+
exports.default = (0, react_intl_1.injectIntl)(InvoicePreviewPaymentInfo);
|
package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormInstance } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { WrappedComponentProps } from "react-intl";
|
|
4
|
+
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
5
|
+
interface Props extends WrappedComponentProps {
|
|
6
|
+
form: FormInstance;
|
|
7
|
+
receiverRequirements: NewReceiverRequirements;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
10
|
+
forwardedRef?: React.Ref<any>;
|
|
11
|
+
} & React.RefAttributes<any>> & {
|
|
12
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_intl_1 = require("react-intl");
|
|
9
|
+
var index_1 = require("./index");
|
|
10
|
+
var mapi_1 = require("../../../../../unimaze-api-clients/src/mapi");
|
|
11
|
+
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
12
|
+
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
13
|
+
var index_2 = require("../payment-method/index");
|
|
14
|
+
var InvoicePreviewPaymentInfoBox = function (props) {
|
|
15
|
+
var defaultPaymentMethods = [
|
|
16
|
+
{
|
|
17
|
+
key: mapi_1.PaymentMeansType.NotSpecified,
|
|
18
|
+
name: props.intl.formatMessage(index_2.translationMessages.paymentMethod_labels_methods_undefined),
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: mapi_1.PaymentMeansType.MutuallyAgreed,
|
|
22
|
+
name: props.intl.formatMessage(index_2.translationMessages.paymentMethod_labels_methods_mutuallyAgreed),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: mapi_1.PaymentMeansType.DomesticTransfer,
|
|
26
|
+
name: props.intl.formatMessage(index_2.translationMessages.paymentMethod_labels_methods_domesticTransfer),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: mapi_1.PaymentMeansType.DomesticClaim,
|
|
30
|
+
name: props.intl.formatMessage(index_2.translationMessages.paymentMethod_labels_methods_domesticClaim),
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
var getPaymentMeansValue = function (paymentMeansType) {
|
|
34
|
+
var paymentMeansTypes = (0, RequirementsUtility_1.getFieldRequirements)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["paymentMeans.type"]);
|
|
35
|
+
if (paymentMeansTypes &&
|
|
36
|
+
paymentMeansTypes.hasOwnProperty("properties") &&
|
|
37
|
+
paymentMeansTypes.properties.hasOwnProperty("values") &&
|
|
38
|
+
paymentMeansTypes.properties.values) {
|
|
39
|
+
var paymentMeansValue = paymentMeansTypes.properties.values.find(function (value) { return value.key === paymentMeansType; });
|
|
40
|
+
return paymentMeansValue === null || paymentMeansValue === void 0 ? void 0 : paymentMeansValue.name;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
var paymentMeansValue = defaultPaymentMethods.find(function (value) { return value.key === paymentMeansType; });
|
|
44
|
+
return paymentMeansValue === null || paymentMeansValue === void 0 ? void 0 : paymentMeansValue.name;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return (react_1.default.createElement(antd_1.Card, { bordered: false, style: { backgroundColor: "#F5F5F5" }, size: "small" },
|
|
48
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true, style: { padding: "0 12px" }, gap: "small" },
|
|
49
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontWeight: 700 } }, props.intl.formatMessage(index_1.translationMessages.invoicePreview_paymentInfoTitle)),
|
|
50
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
51
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" },
|
|
52
|
+
props.form.getFieldValue(["invoice", "supplier", "name"]),
|
|
53
|
+
" Kt:",
|
|
54
|
+
" ",
|
|
55
|
+
props.form.getFieldValue(["invoice", "supplier", "identifier"])),
|
|
56
|
+
react_1.default.createElement(antd_1.Typography.Text, { type: "secondary" }, getPaymentMeansValue(props.form.getFieldValue(["invoice", "paymentMeans", "type"])))))));
|
|
57
|
+
};
|
|
58
|
+
exports.default = (0, react_intl_1.injectIntl)(InvoicePreviewPaymentInfoBox);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormInstance } from "antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { WrappedComponentProps } from "react-intl";
|
|
4
|
+
import { Totals } from "../../../utils/BillingLineUtility";
|
|
5
|
+
interface Props extends WrappedComponentProps {
|
|
6
|
+
form: FormInstance;
|
|
7
|
+
totals: Totals;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
10
|
+
forwardedRef?: React.Ref<any>;
|
|
11
|
+
} & React.RefAttributes<any>> & {
|
|
12
|
+
WrappedComponent: React.ComponentType<Props>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_intl_1 = require("react-intl");
|
|
9
|
+
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
10
|
+
var index_1 = require("./index");
|
|
11
|
+
var IntlUtility_1 = require("../../../utils/IntlUtility");
|
|
12
|
+
var enums_1 = require("../../../enums");
|
|
13
|
+
var InvoicePreviewTotalAmountPreview = function (props) {
|
|
14
|
+
var token = antd_1.theme.useToken().token;
|
|
15
|
+
var getLinesTax = function () {
|
|
16
|
+
var _a;
|
|
17
|
+
return ((_a = props.form.getFieldValue(["invoice", "invoiceLines"])) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
18
|
+
props.form.getFieldValue(["invoice", "invoiceLines"]).map(function (line, index) {
|
|
19
|
+
var taxPercentage = (0, BillingLineUtility_1.calculateTaxPercentage)(enums_1.AvailableTaxCategoryTypeEnum[line.taxCategoryType]);
|
|
20
|
+
return (react_1.default.createElement(antd_1.Flex, { justify: "space-between", key: index },
|
|
21
|
+
react_1.default.createElement(antd_1.Typography.Text, null,
|
|
22
|
+
taxPercentage,
|
|
23
|
+
"% VAT"),
|
|
24
|
+
react_1.default.createElement(antd_1.Typography.Text, null, (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)((0, BillingLineUtility_1.calculateTaxAmount)(line.taxableAmount, taxPercentage), props.intl))));
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
return (react_1.default.createElement(antd_1.Flex, { vertical: true, gap: "small" },
|
|
28
|
+
react_1.default.createElement(antd_1.Card, { bordered: false, style: { backgroundColor: "#F5F5F5" }, size: "small" },
|
|
29
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true, style: { padding: "0 12px" } },
|
|
30
|
+
react_1.default.createElement(antd_1.Flex, { justify: "space-between" },
|
|
31
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: "16px" } }, props.intl.formatMessage(index_1.translationMessages.billingCalculations_labels_TaxAmountWithoutVat)),
|
|
32
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeSM } },
|
|
33
|
+
props.form.getFieldValue(["invoice", "currencyCode"]),
|
|
34
|
+
" ",
|
|
35
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: "16px" } }, (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(props.totals.totalTaxableAmount, props.intl)))),
|
|
36
|
+
getLinesTax(),
|
|
37
|
+
react_1.default.createElement(antd_1.Flex, { justify: "space-between" },
|
|
38
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: "16px" } }, props.intl.formatMessage(index_1.translationMessages.billingCalculations_labels_TotalRoundingAmount)),
|
|
39
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeSM } },
|
|
40
|
+
props.form.getFieldValue(["invoice", "currencyCode"]),
|
|
41
|
+
" ",
|
|
42
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: "16px" } }, (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(props.totals.discountAmount, props.intl)))))),
|
|
43
|
+
react_1.default.createElement(antd_1.Flex, { justify: "space-between", align: "center", style: { padding: "0 24px" } },
|
|
44
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: "16px" } },
|
|
45
|
+
props.intl.formatMessage(index_1.translationMessages.billingCalculations_labels_AmountPayable),
|
|
46
|
+
":"),
|
|
47
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeHeading4 } },
|
|
48
|
+
props.form.getFieldValue(["invoice", "currencyCode"]),
|
|
49
|
+
" ",
|
|
50
|
+
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeXL } }, (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(Math.round(props.totals.totalTaxInclusiveAmount), props.intl))))));
|
|
51
|
+
};
|
|
52
|
+
exports.default = (0, react_intl_1.injectIntl)(InvoicePreviewTotalAmountPreview);
|
|
@@ -3,13 +3,99 @@ import React from "react";
|
|
|
3
3
|
import { FormInstance } from "antd";
|
|
4
4
|
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
5
5
|
import { PartyMetadata } from "@unimaze/api-clients/lib/mapi";
|
|
6
|
+
export declare const translationMessages: {
|
|
7
|
+
customer_title: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
};
|
|
11
|
+
customer_address_streetNameAndNumber: {
|
|
12
|
+
id: string;
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
};
|
|
15
|
+
customer_identifier: {
|
|
16
|
+
id: string;
|
|
17
|
+
defaultMessage: string;
|
|
18
|
+
};
|
|
19
|
+
baseInformation_costCenter: {
|
|
20
|
+
id: string;
|
|
21
|
+
defaultMessage: string;
|
|
22
|
+
};
|
|
23
|
+
baseInformation_issueDate: {
|
|
24
|
+
id: string;
|
|
25
|
+
defaultMessage: string;
|
|
26
|
+
};
|
|
27
|
+
baseInformation_dueDate: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
};
|
|
31
|
+
baseInformation_notes: {
|
|
32
|
+
id: string;
|
|
33
|
+
defaultMessage: string;
|
|
34
|
+
};
|
|
35
|
+
supplier_title: {
|
|
36
|
+
id: string;
|
|
37
|
+
defaultMessage: string;
|
|
38
|
+
};
|
|
39
|
+
supplier_identifier: {
|
|
40
|
+
id: string;
|
|
41
|
+
defaultMessage: string;
|
|
42
|
+
};
|
|
43
|
+
supplier_address_streetNameAndNumber: {
|
|
44
|
+
id: string;
|
|
45
|
+
defaultMessage: string;
|
|
46
|
+
};
|
|
47
|
+
supplier_contact_phoneNumber: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
};
|
|
51
|
+
billingCalculations_labels_TaxAmountWithoutVat: {
|
|
52
|
+
id: string;
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
};
|
|
55
|
+
billingCalculations_labels_AmountPayable: {
|
|
56
|
+
id: string;
|
|
57
|
+
defaultMessage: string;
|
|
58
|
+
};
|
|
59
|
+
billingCalculations_labels_TotalAmountWithVat: {
|
|
60
|
+
id: string;
|
|
61
|
+
defaultMessage: string;
|
|
62
|
+
};
|
|
63
|
+
billingCalculations_labels_TotalRoundingAmount: {
|
|
64
|
+
id: string;
|
|
65
|
+
defaultMessage: string;
|
|
66
|
+
};
|
|
67
|
+
billingLines_discount: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
};
|
|
71
|
+
billingLines_total: {
|
|
72
|
+
id: string;
|
|
73
|
+
defaultMessage: string;
|
|
74
|
+
};
|
|
75
|
+
invoicePreview_billingLinesTitle: {
|
|
76
|
+
id: string;
|
|
77
|
+
defaultMessage: string;
|
|
78
|
+
};
|
|
79
|
+
invoicePreview_attachmentsTitle: {
|
|
80
|
+
id: string;
|
|
81
|
+
defaultMessage: string;
|
|
82
|
+
};
|
|
83
|
+
invoicePreview_paymentInfoTitle: {
|
|
84
|
+
id: string;
|
|
85
|
+
defaultMessage: string;
|
|
86
|
+
};
|
|
87
|
+
billingLines_total_discount: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
6
92
|
interface Props extends WrappedComponentProps {
|
|
7
93
|
recieverRequirements: NewReceiverRequirements;
|
|
8
94
|
form: FormInstance;
|
|
9
95
|
chosenCustomer: PartyMetadata;
|
|
10
96
|
}
|
|
11
97
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
12
|
-
forwardedRef?: React.Ref<any
|
|
98
|
+
forwardedRef?: React.Ref<any>;
|
|
13
99
|
} & React.RefAttributes<any>> & {
|
|
14
100
|
WrappedComponent: React.ComponentType<Props>;
|
|
15
101
|
};
|