@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
|
@@ -1,196 +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
|
-
exports.translationMessages = void 0;
|
|
7
|
-
var react_intl_1 = require("react-intl");
|
|
8
|
-
var react_1 = __importDefault(require("react"));
|
|
9
|
-
var antd_1 = require("antd");
|
|
10
|
-
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
11
|
-
var icons_1 = require("@ant-design/icons");
|
|
12
|
-
var mapi_1 = require("@unimaze/api-clients/lib/mapi");
|
|
13
|
-
var payment_method_1 = require("../payment-method");
|
|
14
|
-
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
15
|
-
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
16
|
-
var InvoicePreviewTotalAmountPreview_1 = __importDefault(require("./InvoicePreviewTotalAmountPreview"));
|
|
17
|
-
var InvoicePreviewInvoiceLines_1 = __importDefault(require("./InvoicePreviewInvoiceLines"));
|
|
18
|
-
var InvoicePreviewCustomerSupplierInfoBox_1 = __importDefault(require("./InvoicePreviewCustomerSupplierInfoBox"));
|
|
19
|
-
var InvoicePreviewPaymentInfoBox_1 = __importDefault(require("./InvoicePreviewPaymentInfoBox"));
|
|
20
|
-
exports.translationMessages = (0, react_intl_1.defineMessages)({
|
|
21
|
-
customer_title: {
|
|
22
|
-
id: "customer_title",
|
|
23
|
-
defaultMessage: "Customer",
|
|
24
|
-
},
|
|
25
|
-
customer_address_streetNameAndNumber: {
|
|
26
|
-
id: "customer_address_streetNameAndNumber",
|
|
27
|
-
defaultMessage: "Address",
|
|
28
|
-
},
|
|
29
|
-
customer_identifier: {
|
|
30
|
-
id: "customer_identifier",
|
|
31
|
-
defaultMessage: "Identifier",
|
|
32
|
-
},
|
|
33
|
-
baseInformation_costCenter: {
|
|
34
|
-
id: "baseInformation_costCenter",
|
|
35
|
-
defaultMessage: "Cost center",
|
|
36
|
-
},
|
|
37
|
-
baseInformation_issueDate: {
|
|
38
|
-
id: "baseInformation_issueDate",
|
|
39
|
-
defaultMessage: "Issue date",
|
|
40
|
-
},
|
|
41
|
-
baseInformation_dueDate: {
|
|
42
|
-
id: "baseInformation_dueDate",
|
|
43
|
-
defaultMessage: "Due date",
|
|
44
|
-
},
|
|
45
|
-
baseInformation_notes: {
|
|
46
|
-
id: "baseInformation_notes",
|
|
47
|
-
defaultMessage: "Notes",
|
|
48
|
-
},
|
|
49
|
-
supplier_title: {
|
|
50
|
-
id: "supplier_title",
|
|
51
|
-
defaultMessage: "Supplier",
|
|
52
|
-
},
|
|
53
|
-
supplier_identifier: {
|
|
54
|
-
id: "supplier_identifier",
|
|
55
|
-
defaultMessage: "Supplier identifier",
|
|
56
|
-
},
|
|
57
|
-
supplier_address_streetNameAndNumber: {
|
|
58
|
-
id: "supplier_address_streetNameAndNumber",
|
|
59
|
-
defaultMessage: "Address",
|
|
60
|
-
},
|
|
61
|
-
supplier_contact_phoneNumber: {
|
|
62
|
-
id: "supplier_contact_phoneNumber",
|
|
63
|
-
defaultMessage: "Phone number",
|
|
64
|
-
},
|
|
65
|
-
billingCalculations_labels_TaxAmountWithoutVat: {
|
|
66
|
-
id: "billingCalculations_labels_TaxAmountWithoutVat",
|
|
67
|
-
defaultMessage: "Total amount before VAT", // icelandic
|
|
68
|
-
},
|
|
69
|
-
billingCalculations_labels_AmountPayable: {
|
|
70
|
-
id: "billingCalculations_labels_AmountPayable",
|
|
71
|
-
defaultMessage: "Total invoiced amount", // icelandic
|
|
72
|
-
},
|
|
73
|
-
billingCalculations_labels_TotalAmountWithVat: {
|
|
74
|
-
id: "billingCalculations_labels_TotalAmountWithVat",
|
|
75
|
-
defaultMessage: "Total amount with VAT",
|
|
76
|
-
},
|
|
77
|
-
billingCalculations_labels_TotalRoundingAmount: {
|
|
78
|
-
id: "billingCalculations_labels_TotalRoundingAmount",
|
|
79
|
-
defaultMessage: "Rounding amount",
|
|
80
|
-
},
|
|
81
|
-
billingLines_discount: {
|
|
82
|
-
id: "billingLines_discount",
|
|
83
|
-
defaultMessage: "line discount",
|
|
84
|
-
},
|
|
85
|
-
billingLines_total: {
|
|
86
|
-
id: "billingLines_total",
|
|
87
|
-
defaultMessage: "Total",
|
|
88
|
-
},
|
|
89
|
-
invoicePreview_billingLinesTitle: {
|
|
90
|
-
id: "invoicePreview_billingLinesTitle",
|
|
91
|
-
defaultMessage: "Invoice lines",
|
|
92
|
-
},
|
|
93
|
-
invoicePreview_attachmentsTitle: {
|
|
94
|
-
id: "invoicePreview_attachmentsTitle",
|
|
95
|
-
defaultMessage: "Attachments",
|
|
96
|
-
},
|
|
97
|
-
invoicePreview_paymentInfoTitle: {
|
|
98
|
-
id: "invoicePreview_paymentInfoTitle",
|
|
99
|
-
defaultMessage: "Payment information",
|
|
100
|
-
},
|
|
101
|
-
billingLines_total_discount: {
|
|
102
|
-
id: "billingLines_total_discount",
|
|
103
|
-
defaultMessage: "Total discount",
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
var InvoicePreview = function (props) {
|
|
107
|
-
var token = antd_1.theme.useToken().token;
|
|
108
|
-
var formValueFile1 = props.form.getFieldValue(["attachments", "file1", "file"]);
|
|
109
|
-
var formValueFile2 = props.form.getFieldValue(["attachments", "file2", "file"]);
|
|
110
|
-
var formValueFile3 = props.form.getFieldValue(["attachments", "file3", "file"]);
|
|
111
|
-
var _totals = (0, BillingLineUtility_1.getTotals)(props.form.getFieldValue(["invoice", "invoiceLines"]));
|
|
112
|
-
var defaultPaymentMethods = [
|
|
113
|
-
{
|
|
114
|
-
key: mapi_1.PaymentMeansType.NotSpecified,
|
|
115
|
-
name: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_methods_undefined),
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: mapi_1.PaymentMeansType.MutuallyAgreed,
|
|
119
|
-
name: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_methods_mutuallyAgreed),
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
key: mapi_1.PaymentMeansType.DomesticTransfer,
|
|
123
|
-
name: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_methods_domesticTransfer),
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
key: mapi_1.PaymentMeansType.DomesticClaim,
|
|
127
|
-
name: props.intl.formatMessage(payment_method_1.translationMessages.paymentMethod_labels_methods_domesticClaim),
|
|
128
|
-
},
|
|
129
|
-
];
|
|
130
|
-
var getPaymentMeansValue = function (paymentMeansType) {
|
|
131
|
-
var paymentMeansTypes = (0, RequirementsUtility_1.getFieldRequirements)(props.recieverRequirements, ReceiverRequirements_1.AvailableFields["paymentMeans.type"]);
|
|
132
|
-
if (paymentMeansTypes &&
|
|
133
|
-
paymentMeansTypes.hasOwnProperty("properties") &&
|
|
134
|
-
paymentMeansTypes.properties.hasOwnProperty("values") &&
|
|
135
|
-
paymentMeansTypes.properties.values) {
|
|
136
|
-
var paymentMeansValue = paymentMeansTypes.properties.values.find(function (value) { return value.key === paymentMeansType; });
|
|
137
|
-
return paymentMeansValue === null || paymentMeansValue === void 0 ? void 0 : paymentMeansValue.name;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
var paymentMeansValue = defaultPaymentMethods.find(function (value) { return value.key === paymentMeansType; });
|
|
141
|
-
return paymentMeansValue === null || paymentMeansValue === void 0 ? void 0 : paymentMeansValue.name;
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
return (react_1.default.createElement(antd_1.Flex, { justify: "center" },
|
|
145
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true, style: { width: "100%", maxWidth: "900px" } },
|
|
146
|
-
react_1.default.createElement(antd_1.Row, { gutter: [20, 20] },
|
|
147
|
-
"TkkES****SEeeeeeeeeCCCswCASrrXXrrT",
|
|
148
|
-
react_1.default.createElement(antd_1.Col, { span: 24 },
|
|
149
|
-
react_1.default.createElement(InvoicePreviewCustomerSupplierInfoBox_1.default, { form: props.form, chosenCustomer: props.chosenCustomer })),
|
|
150
|
-
react_1.default.createElement(antd_1.Col, { span: 24 },
|
|
151
|
-
react_1.default.createElement(InvoicePreviewInvoiceLines_1.default, { form: props.form })),
|
|
152
|
-
react_1.default.createElement(antd_1.Col, { span: 24 },
|
|
153
|
-
react_1.default.createElement(InvoicePreviewTotalAmountPreview_1.default, { form: props.form, totals: _totals })),
|
|
154
|
-
props.form.getFieldValue(["invoice", "notes"]) && (react_1.default.createElement(antd_1.Col, { span: 24 },
|
|
155
|
-
react_1.default.createElement(antd_1.Card, { bordered: false, size: "small", style: { backgroundColor: "#F5F5F5" } },
|
|
156
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true, style: { padding: "0 12px" } },
|
|
157
|
-
react_1.default.createElement(antd_1.Typography.Text, { disabled: true },
|
|
158
|
-
props.intl.formatMessage(exports.translationMessages.baseInformation_notes),
|
|
159
|
-
":"),
|
|
160
|
-
react_1.default.createElement(antd_1.Typography.Text, null, props.form.getFieldValue(["invoice", "notes"])))))),
|
|
161
|
-
(formValueFile1 ||
|
|
162
|
-
formValueFile2 ||
|
|
163
|
-
formValueFile3) && (react_1.default.createElement(antd_1.Col, { span: 24 },
|
|
164
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true, gap: "small" },
|
|
165
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeHeading4 } }, props.intl.formatMessage(exports.translationMessages.invoicePreview_attachmentsTitle)),
|
|
166
|
-
formValueFile1 && (react_1.default.createElement(antd_1.Flex, { gap: "middle", align: "flex-start" },
|
|
167
|
-
react_1.default.createElement(icons_1.PaperClipOutlined, { style: { fontSize: "18px" } }),
|
|
168
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
169
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { textDecoration: "underline" } }, formValueFile1.name),
|
|
170
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { fontWeight: 300 } }, props.form.getFieldValue([
|
|
171
|
-
"attachments",
|
|
172
|
-
"file1",
|
|
173
|
-
"description",
|
|
174
|
-
]))))),
|
|
175
|
-
formValueFile2 && (react_1.default.createElement(antd_1.Flex, { gap: "middle", align: "flex-start" },
|
|
176
|
-
react_1.default.createElement(icons_1.PaperClipOutlined, { style: { fontSize: "18px" } }),
|
|
177
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
178
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { textDecoration: "underline" } }, formValueFile2.name),
|
|
179
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { fontWeight: 300 } }, props.form.getFieldValue([
|
|
180
|
-
"attachments",
|
|
181
|
-
"file2",
|
|
182
|
-
"description",
|
|
183
|
-
]))))),
|
|
184
|
-
formValueFile3 && (react_1.default.createElement(antd_1.Flex, { gap: "middle", align: "flex-start" },
|
|
185
|
-
react_1.default.createElement(icons_1.PaperClipOutlined, { style: { fontSize: "18px" } }),
|
|
186
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
187
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { textDecoration: "underline" } }, formValueFile3.name),
|
|
188
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { fontWeight: 300 } }, props.form.getFieldValue([
|
|
189
|
-
"attachments",
|
|
190
|
-
"file3",
|
|
191
|
-
"description",
|
|
192
|
-
])))))))),
|
|
193
|
-
react_1.default.createElement(antd_1.Col, { span: 24 },
|
|
194
|
-
react_1.default.createElement(InvoicePreviewPaymentInfoBox_1.default, { form: props.form, receiverRequirements: props.recieverRequirements }))))));
|
|
195
|
-
};
|
|
196
|
-
exports.default = (0, react_intl_1.injectIntl)(InvoicePreview);
|
|
File without changes
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import * as React from "react";
|
|
3
|
-
// import {IntlProvider} from "react-intl";
|
|
4
|
-
// import * as dayjs from "dayjs";
|
|
5
|
-
// import "moment/locale/is";
|
|
6
|
-
// import "moment/locale/sr";
|
|
7
|
-
// import {ConfigProvider} from "antd";
|
|
8
|
-
// import enUS from "antd/es/locale/en_US";
|
|
9
|
-
// import isIS from "antd/es/locale/is_IS";
|
|
10
|
-
// import {Locale} from "antd/es/locale";
|
|
11
|
-
// import localeData from "../../../translations/locales";
|
|
12
|
-
// interface IHotSwappingIntlProviderOwnProps {
|
|
13
|
-
// initialLocale: string;
|
|
14
|
-
// initialMessages: any;
|
|
15
|
-
// languageString?: string;
|
|
16
|
-
// children?: React.ReactNode;
|
|
17
|
-
// }
|
|
18
|
-
// const HotIntlProvider: React.FC<IHotSwappingIntlProviderOwnProps> = (props) => {
|
|
19
|
-
// let antLocale: Locale;
|
|
20
|
-
// const {languageString, initialLocale} = props;
|
|
21
|
-
// // const language: string = languageString ? languageString : "en";
|
|
22
|
-
// const language: string = initialLocale;
|
|
23
|
-
// switch (language.toLowerCase()) {
|
|
24
|
-
// case "en":
|
|
25
|
-
// antLocale = enUS;
|
|
26
|
-
// dayjs.locale("en");
|
|
27
|
-
// break;
|
|
28
|
-
// case "is":
|
|
29
|
-
// antLocale = isIS;
|
|
30
|
-
// dayjs.locale("is");
|
|
31
|
-
// break;
|
|
32
|
-
// default:
|
|
33
|
-
// antLocale = enUS;
|
|
34
|
-
// dayjs.locale("en");
|
|
35
|
-
// }
|
|
36
|
-
// return (
|
|
37
|
-
// <ConfigProvider
|
|
38
|
-
// locale={antLocale}
|
|
39
|
-
// >
|
|
40
|
-
// <IntlProvider
|
|
41
|
-
// locale={language}
|
|
42
|
-
// defaultLocale={"en"}
|
|
43
|
-
// key={language}
|
|
44
|
-
// messages={(localeData as any)[language]}
|
|
45
|
-
// >
|
|
46
|
-
// {props.children}
|
|
47
|
-
// </IntlProvider>
|
|
48
|
-
// </ConfigProvider>
|
|
49
|
-
// );
|
|
50
|
-
// };
|
|
51
|
-
// export default HotIntlProvider;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { WrappedComponentProps } from "react-intl";
|
|
3
|
-
import { FormInstance } from "antd/es/form";
|
|
4
|
-
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
5
|
-
export declare const translationMessages: {
|
|
6
|
-
paymentMethod_title: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
};
|
|
10
|
-
paymentMethod_label: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultMessage: string;
|
|
13
|
-
};
|
|
14
|
-
paymentMethod_labels_domesticTransfer_bankNo: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
};
|
|
18
|
-
paymentMethod_labels_domesticTransfer_accountType: {
|
|
19
|
-
id: string;
|
|
20
|
-
defaultMessage: string;
|
|
21
|
-
};
|
|
22
|
-
paymentMethod_labels_domesticTransfer_accountNo: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
};
|
|
26
|
-
paymentMethod_labels_domesticTransfer_paymentReference: {
|
|
27
|
-
id: string;
|
|
28
|
-
defaultMessage: string;
|
|
29
|
-
};
|
|
30
|
-
paymentMethod_labels_icelandicClaim_bankNo: {
|
|
31
|
-
id: string;
|
|
32
|
-
defaultMessage: string;
|
|
33
|
-
};
|
|
34
|
-
paymentMethod_labels_icelandicClaim_claimNo: {
|
|
35
|
-
id: string;
|
|
36
|
-
defaultMessage: string;
|
|
37
|
-
};
|
|
38
|
-
paymentMethod_labels_methods_undefined: {
|
|
39
|
-
id: string;
|
|
40
|
-
defaultMessage: string;
|
|
41
|
-
};
|
|
42
|
-
paymentMethod_labels_methods_mutuallyAgreed: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
};
|
|
46
|
-
paymentMethod_labels_methods_domesticTransfer: {
|
|
47
|
-
id: string;
|
|
48
|
-
defaultMessage: string;
|
|
49
|
-
};
|
|
50
|
-
paymentMethod_labels_methods_domesticClaim: {
|
|
51
|
-
id: string;
|
|
52
|
-
defaultMessage: string;
|
|
53
|
-
};
|
|
54
|
-
paymentMethod_rules_number: {
|
|
55
|
-
id: string;
|
|
56
|
-
defaultMessage: string;
|
|
57
|
-
};
|
|
58
|
-
paymentMethod_rules_Length: {
|
|
59
|
-
id: string;
|
|
60
|
-
defaultMessage: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
interface Props extends WrappedComponentProps {
|
|
64
|
-
formInstance: FormInstance;
|
|
65
|
-
receiverRequirements: NewReceiverRequirements;
|
|
66
|
-
validateFields: (fieldNames: string[][], validateOnly?: boolean | undefined) => void;
|
|
67
|
-
isSaveFieldValuesSelected: boolean;
|
|
68
|
-
onSaveFieldValuesChange: () => void;
|
|
69
|
-
isActiveStep: boolean;
|
|
70
|
-
}
|
|
71
|
-
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
72
|
-
forwardedRef?: React.Ref<any>;
|
|
73
|
-
} & React.RefAttributes<any>> & {
|
|
74
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
75
|
-
};
|
|
76
|
-
export default _default;
|