@unimaze/billing 0.21.46 → 0.21.48
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/billing-lines/CurrencySelector.d.ts +1 -3
- package/lib/common/components/billing-lines/CurrencySelector.js +45 -8
- package/lib/common/components/billing-lines/NewBillingLines.js +0 -8
- package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
- package/lib/common/components/billing-lines/NewNewBillingLines.js +36 -0
- package/lib/common/components/billing-lines/SingleBillingLine.js +9 -5
- package/lib/common/components/billing-lines/cwdwdw.d.ts +1 -0
- package/lib/common/components/billing-lines/cwdwdw.js +14 -0
- 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/InvoicePreviewPaymentInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +110 -0
- package/lib/translations/locales/is.json +1 -1
- package/lib/unimaze-api-clients/src/mapi/api.d.ts +6664 -0
- package/lib/unimaze-api-clients/src/mapi/api.js +4743 -0
- package/lib/unimaze-api-clients/src/mapi/base.d.ts +55 -0
- package/lib/unimaze-api-clients/src/mapi/base.js +84 -0
- package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +63 -0
- package/lib/unimaze-api-clients/src/mapi/configuration.js +28 -0
- package/lib/unimaze-api-clients/src/mapi/index.d.ts +13 -0
- package/lib/unimaze-api-clients/src/mapi/index.js +30 -0
- package/lib/unimaze-api-clients/src/rapi/api.d.ts +5015 -0
- package/lib/unimaze-api-clients/src/rapi/api.js +5582 -0
- package/lib/unimaze-api-clients/src/rapi/base.d.ts +55 -0
- package/lib/unimaze-api-clients/src/rapi/base.js +84 -0
- package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +63 -0
- package/lib/unimaze-api-clients/src/rapi/configuration.js +28 -0
- package/lib/unimaze-api-clients/src/rapi/index.d.ts +13 -0
- package/lib/unimaze-api-clients/src/rapi/index.js +30 -0
- package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +74 -0
- package/lib/unimaze-billing/src/common/components/CommonTranslations.js +78 -0
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +20 -0
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +164 -0
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +21 -0
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +206 -0
- package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +27 -0
- package/lib/unimaze-billing/src/common/components/attachments/index.js +214 -0
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +17 -0
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +61 -0
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +16 -0
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +58 -0
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +14 -0
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +30 -0
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +53 -0
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +328 -0
- package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +77 -0
- package/lib/unimaze-billing/src/common/components/base-information/index.js +186 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +14 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +151 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +24 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +61 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +13 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +133 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +20 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +17 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +10 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +16 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +134 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +209 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +36 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +19 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +275 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +14 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +15 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +49 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/index.js +104 -0
- package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +7 -0
- package/lib/unimaze-billing/src/common/components/component-container/Content.js +13 -0
- package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +9 -0
- package/lib/unimaze-billing/src/common/components/component-container/Header.js +28 -0
- package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +12 -0
- package/lib/unimaze-billing/src/common/components/component-container/index.js +22 -0
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +17 -0
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +163 -0
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +17 -0
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +53 -0
- package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +7 -0
- package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +41 -0
- package/lib/unimaze-billing/src/common/components/customer/index.d.ts +26 -0
- package/lib/unimaze-billing/src/common/components/customer/index.js +166 -0
- package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +21 -0
- package/lib/unimaze-billing/src/common/components/date-picker/index.js +23 -0
- package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +12 -0
- package/lib/unimaze-billing/src/common/components/delivery-location/index.js +89 -0
- 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 +295 -0
- package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +5 -0
- package/lib/unimaze-billing/src/common/components/editable-row/index.js +59 -0
- package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +35 -0
- package/lib/unimaze-billing/src/common/components/form-item/index.js +60 -0
- package/lib/unimaze-billing/src/common/components/index.d.ts +18 -0
- package/lib/unimaze-billing/src/common/components/index.js +42 -0
- package/lib/unimaze-billing/src/common/components/input/index.d.ts +23 -0
- package/lib/unimaze-billing/src/common/components/input/index.js +37 -0
- package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +42 -0
- package/lib/unimaze-billing/src/common/components/invoice/index.js +59 -0
- 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 +12 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +104 -0
- 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 +102 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +196 -0
- 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 +51 -0
- package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +76 -0
- package/lib/unimaze-billing/src/common/components/payment-method/index.js +356 -0
- package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +8 -0
- package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +37 -0
- package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
- package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
- package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +8 -0
- package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +34 -0
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +18 -0
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +159 -0
- package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +94 -0
- package/lib/unimaze-billing/src/common/components/supplier/index.js +334 -0
- package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +7 -0
- package/lib/unimaze-billing/src/common/components/tooltip/index.js +15 -0
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +15 -0
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +26 -0
- package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +74 -0
- package/lib/unimaze-billing/src/common/consts/formLayout.js +45 -0
- package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +6 -0
- package/lib/unimaze-billing/src/common/consts/validationRules.js +69 -0
- package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +5 -0
- package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +8 -0
- package/lib/unimaze-billing/src/common/enums/index.d.ts +1 -0
- package/lib/unimaze-billing/src/common/enums/index.js +8 -0
- package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +26 -0
- package/lib/unimaze-billing/src/common/types/AppConfiguration.js +2 -0
- package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +10 -0
- package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +2 -0
- package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +33 -0
- package/lib/unimaze-billing/src/common/types/CommonProps.js +2 -0
- package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +1 -0
- package/lib/unimaze-billing/src/common/types/DiscountType.js +2 -0
- package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +1 -0
- package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +2 -0
- package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +27 -0
- package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +2 -0
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +83 -0
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +393 -0
- package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +11 -0
- package/lib/unimaze-billing/src/common/types/SupplierInfo.js +2 -0
- package/lib/unimaze-billing/src/common/types/index.d.ts +1 -0
- package/lib/unimaze-billing/src/common/types/index.js +17 -0
- package/lib/unimaze-billing/src/create-credit-note/index.d.ts +9 -0
- package/lib/unimaze-billing/src/create-credit-note/index.js +62 -0
- package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +11 -0
- package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +116 -0
- package/lib/unimaze-billing/src/create-invoice/index.d.ts +82 -0
- package/lib/unimaze-billing/src/create-invoice/index.js +710 -0
- package/lib/unimaze-billing/src/enums.d.ts +14 -0
- package/lib/unimaze-billing/src/enums.js +18 -0
- package/lib/unimaze-billing/src/index.d.ts +4 -0
- package/lib/unimaze-billing/src/index.js +28 -0
- package/lib/unimaze-billing/src/translations/locales/en.json +183 -0
- package/lib/unimaze-billing/src/translations/locales/is.json +183 -0
- package/lib/unimaze-billing/src/translations/locales.d.ts +369 -0
- package/lib/unimaze-billing/src/translations/locales.js +11 -0
- package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +29 -0
- package/lib/unimaze-billing/src/utils/ApiUtility.js +133 -0
- package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +25 -0
- package/lib/unimaze-billing/src/utils/BillingLineUtility.js +190 -0
- package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +9 -0
- package/lib/unimaze-billing/src/utils/ConversionUtility.js +222 -0
- package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +9 -0
- package/lib/unimaze-billing/src/utils/FileUploadUtility.js +45 -0
- package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +6 -0
- package/lib/unimaze-billing/src/utils/IntlUtility.js +78 -0
- package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +1 -0
- package/lib/unimaze-billing/src/utils/LocationUtility.js +81 -0
- package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +7 -0
- package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +26 -0
- package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +21 -0
- package/lib/unimaze-billing/src/utils/RequirementsUtility.js +237 -0
- package/lib/unimaze-billing/src/utils/index.d.ts +2 -0
- package/lib/unimaze-billing/src/utils/index.js +8 -0
- package/lib/utils/RequirementsUtility.d.ts +3 -2
- package/lib/utils/RequirementsUtility.js +12 -2
- package/package.json +1 -1
- package/lib/style/index.css +0 -51
|
@@ -0,0 +1,196 @@
|
|
|
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
|
|
@@ -0,0 +1,51 @@
|
|
|
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;
|
|
@@ -0,0 +1,76 @@
|
|
|
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;
|