@unimaze/billing 0.21.3 → 0.21.4
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/CommonTranslations.d.ts +1 -29
- package/lib/common/components/CommonTranslations.js +4 -32
- package/lib/common/components/attachments/Attachment.d.ts +1 -1
- package/lib/common/components/attachments/AttachmentModal.d.ts +1 -1
- package/lib/common/components/attachments/index.d.ts +1 -1
- package/lib/common/components/base-information/AccountingCost.d.ts +1 -1
- package/lib/common/components/base-information/OrderReference.d.ts +1 -1
- package/lib/common/components/base-information/ProjectReference.d.ts +1 -1
- package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +2 -1
- package/lib/common/components/base-information/ReferenceIdentifiers.js +29 -11
- package/lib/common/components/base-information/index.d.ts +10 -1
- package/lib/common/components/base-information/index.js +9 -1
- package/lib/common/components/billing-lines/BillingCalculations.d.ts +1 -1
- package/lib/common/components/billing-lines/BillingLinePreview.d.ts +2 -1
- package/lib/common/components/billing-lines/BillingLinePreview.js +4 -2
- package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +1 -1
- package/lib/common/components/billing-lines/BillingTaxSummary.js +0 -1
- package/lib/common/components/billing-lines/CurrencySelector.d.ts +20 -0
- package/lib/common/components/billing-lines/CurrencySelector.js +17 -0
- package/lib/common/components/billing-lines/DiscountTypeSelector.d.ts +10 -0
- package/lib/common/components/billing-lines/DiscountTypeSelector.js +16 -0
- package/lib/common/components/billing-lines/NewBillingLines.d.ts +2 -1
- package/lib/common/components/billing-lines/NewBillingLines.js +37 -327
- 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.d.ts +19 -0
- package/lib/common/components/billing-lines/SingleBillingLine.js +262 -0
- package/lib/common/components/billing-lines/UnitOfMeasureSelector.d.ts +14 -0
- package/lib/common/components/billing-lines/UnitOfMeasureSelector.js +15 -0
- 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/billing-lines/index.d.ts +3 -6
- package/lib/common/components/billing-lines/index.js +1 -1
- package/lib/common/components/customer/CostCenter.d.ts +1 -1
- package/lib/common/components/customer/CustomerContactName.d.ts +1 -1
- package/lib/common/components/customer/index.d.ts +1 -1
- package/lib/common/components/customer/index.js +6 -4
- package/lib/common/components/delivery-location/index.d.ts +1 -1
- package/lib/common/components/form-item/index.d.ts +1 -1
- package/lib/common/components/input/index.d.ts +1 -1
- package/lib/common/components/invoice/index.d.ts +3 -1
- package/lib/common/components/invoice/index.js +21 -14
- package/lib/common/components/invoice-preview/InvoicePreviewHeader.d.ts +1 -1
- package/lib/common/components/invoice-preview/InvoicePreviewHeader.js +7 -8
- package/lib/common/components/invoice-preview/index.d.ts +1 -1
- package/lib/common/components/invoice-preview/index.js +8 -2
- package/lib/common/components/payment-method/index.d.ts +1 -1
- package/lib/common/components/payment-method/index.js +22 -7
- package/lib/common/components/supplier/CityAutofill.d.ts +1 -1
- package/lib/common/components/supplier/index.d.ts +1 -1
- package/lib/common/components/welcome-modal/index.d.ts +1 -1
- package/lib/common/types/ReceiverRequirements.d.ts +2 -0
- package/lib/common/types/ReceiverRequirements.js +2 -0
- package/lib/create-invoice/index.d.ts +9 -1
- package/lib/create-invoice/index.js +87 -60
- package/lib/enums.d.ts +3 -0
- package/lib/translations/locales/en.json +7 -10
- package/lib/translations/locales/is.json +5 -8
- package/lib/translations/locales.d.ts +10 -16
- 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 +102 -0
- package/lib/unimaze-billing/src/common/components/CommonTranslations.js +106 -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 +203 -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 +48 -0
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +306 -0
- package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +68 -0
- package/lib/unimaze-billing/src/common/components/base-information/index.js +178 -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 +153 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +21 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +41 -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 +134 -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 +129 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +495 -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 +14 -0
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +199 -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 +52 -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 +168 -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 +40 -0
- package/lib/unimaze-billing/src/common/components/invoice/index.js +52 -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 +105 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +16 -0
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +405 -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 +23 -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 +81 -0
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +391 -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 +74 -0
- package/lib/unimaze-billing/src/create-invoice/index.js +680 -0
- package/lib/unimaze-billing/src/enums.d.ts +11 -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 +23 -0
- package/lib/unimaze-billing/src/utils/ApiUtility.js +115 -0
- package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +22 -0
- package/lib/unimaze-billing/src/utils/BillingLineUtility.js +158 -0
- package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +9 -0
- package/lib/unimaze-billing/src/utils/ConversionUtility.js +223 -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 +5 -0
- package/lib/unimaze-billing/src/utils/IntlUtility.js +55 -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 +19 -0
- package/lib/unimaze-billing/src/utils/RequirementsUtility.js +189 -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/ApiUtility.d.ts +9 -3
- package/lib/utils/ApiUtility.js +30 -2
- package/lib/utils/BillingLineUtility.d.ts +3 -0
- package/lib/utils/BillingLineUtility.js +32 -1
- package/lib/utils/RequirementsUtility.d.ts +4 -1
- package/lib/utils/RequirementsUtility.js +56 -1
- package/package.json +2 -2
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
+
function step(op) {
|
|
50
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
53
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
+
switch (op[0]) {
|
|
55
|
+
case 0: case 1: t = op; break;
|
|
56
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
+
default:
|
|
60
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
+
if (t[2]) _.ops.pop();
|
|
65
|
+
_.trys.pop(); continue;
|
|
66
|
+
}
|
|
67
|
+
op = body.call(thisArg, _);
|
|
68
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
73
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
74
|
+
};
|
|
75
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
+
var React = __importStar(require("react"));
|
|
77
|
+
var react_1 = require("react");
|
|
78
|
+
var react_intl_1 = require("react-intl");
|
|
79
|
+
var antd_1 = require("antd");
|
|
80
|
+
var form_item_1 = __importDefault(require("../form-item"));
|
|
81
|
+
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
82
|
+
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
83
|
+
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
84
|
+
var UnitOfMeasureSelector_1 = __importDefault(require("./UnitOfMeasureSelector"));
|
|
85
|
+
var CurrencySelector_1 = __importDefault(require("./CurrencySelector"));
|
|
86
|
+
var IntlUtility_1 = require("../../../utils/IntlUtility");
|
|
87
|
+
var enums_1 = require("../../../enums");
|
|
88
|
+
var CommonTranslations_1 = require("../CommonTranslations");
|
|
89
|
+
var tooltip_1 = __importDefault(require("../tooltip"));
|
|
90
|
+
var DiscountTypeSelector_1 = __importDefault(require("./DiscountTypeSelector"));
|
|
91
|
+
var formLayout_1 = require("../../consts/formLayout");
|
|
92
|
+
var icons_1 = require("@ant-design/icons");
|
|
93
|
+
var NewBillingLines_1 = require("./NewBillingLines");
|
|
94
|
+
var BillingLinePreview_1 = __importDefault(require("./BillingLinePreview"));
|
|
95
|
+
var lodash_1 = require("lodash");
|
|
96
|
+
var Form_1 = require("antd/es/form/Form");
|
|
97
|
+
var react_use_1 = require("react-use");
|
|
98
|
+
var SingleBillingLine = function (props) {
|
|
99
|
+
var fieldName = props.fieldName, index = props.index, intl = props.intl;
|
|
100
|
+
var _a = React.useState(false), isMobile = _a[0], setIsMobile = _a[1];
|
|
101
|
+
var _b = React.useState(false), isCurrencyDisabled = _b[0], setIsCurrencyDisabled = _b[1];
|
|
102
|
+
var _c = React.useState(), taxCatType = _c[0], setTaxCatType = _c[1];
|
|
103
|
+
var _d = React.useState("PERCENTAGE"), discountType = _d[0], setDiscountType = _d[1];
|
|
104
|
+
var _e = (0, react_1.useState)(undefined), addNewLinesTooltip = _e[0], setAddNewLinesTooltip = _e[1];
|
|
105
|
+
var _f = React.useState(true), isSaveButtonDisabled = _f[0], setIsSaveButtonDisabled = _f[1];
|
|
106
|
+
var _g = (0, react_1.useState)(), field = _g[0], setField = _g[1];
|
|
107
|
+
var _h = (0, react_1.useState)(false), isEditing = _h[0], setIsEditing = _h[1];
|
|
108
|
+
var invoiceLines = (0, Form_1.useWatch)(["invoice", "invoiceLines"], props.formInstance);
|
|
109
|
+
var width = (0, react_use_1.useWindowSize)().width;
|
|
110
|
+
(0, react_1.useEffect)(function () {
|
|
111
|
+
if (width < 768) {
|
|
112
|
+
setIsMobile(true);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
setIsMobile(false);
|
|
116
|
+
}
|
|
117
|
+
}, [width]);
|
|
118
|
+
// init
|
|
119
|
+
(0, react_1.useEffect)(function () {
|
|
120
|
+
if (props.formInstance) {
|
|
121
|
+
var lines = props.formInstance.getFieldValue(["invoice", "invoiceLines"]) || [];
|
|
122
|
+
var currentField = lines[fieldName];
|
|
123
|
+
if (currentField) {
|
|
124
|
+
setIsEditing(currentField.editing);
|
|
125
|
+
setField(currentField);
|
|
126
|
+
}
|
|
127
|
+
if ((lines === null || lines === void 0 ? void 0 : lines.length) === 1) {
|
|
128
|
+
setIsCurrencyDisabled(false);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
setIsCurrencyDisabled(true);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}, [invoiceLines]);
|
|
135
|
+
var handleOnEdit = function () {
|
|
136
|
+
var lines = props.formInstance.getFieldValue(["invoice", "invoiceLines"]) || [];
|
|
137
|
+
lines[fieldName].editing = true;
|
|
138
|
+
setIsEditing(true);
|
|
139
|
+
props.formInstance.setFieldsValue({ lines: lines });
|
|
140
|
+
};
|
|
141
|
+
var handleRemove = function () {
|
|
142
|
+
props.remove(fieldName);
|
|
143
|
+
};
|
|
144
|
+
var validateFormListFields = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
145
|
+
var fieldPaths;
|
|
146
|
+
return __generator(this, function (_a) {
|
|
147
|
+
switch (_a.label) {
|
|
148
|
+
case 0:
|
|
149
|
+
if (!invoiceLines)
|
|
150
|
+
return [2 /*return*/];
|
|
151
|
+
fieldPaths = [
|
|
152
|
+
["invoice", "invoiceLines", fieldName, "itemNo"],
|
|
153
|
+
["invoice", "invoiceLines", fieldName, "name"],
|
|
154
|
+
["invoice", "invoiceLines", fieldName, "quantity"],
|
|
155
|
+
["invoice", "invoiceLines", fieldName, "unitPriceAmount"],
|
|
156
|
+
["invoice", "invoiceLines", fieldName, "taxableAmount"],
|
|
157
|
+
["invoice", "invoiceLines", fieldName, "taxCategoryType"],
|
|
158
|
+
["invoice", "invoiceLines", fieldName, "discountValue"],
|
|
159
|
+
["invoice", "invoiceLines", fieldName, "unitOfMeasure", "unit"],
|
|
160
|
+
];
|
|
161
|
+
return [4 /*yield*/, props.formInstance.validateFields(fieldPaths, { validateOnly: true })
|
|
162
|
+
.then(function () {
|
|
163
|
+
setIsSaveButtonDisabled(false);
|
|
164
|
+
setAddNewLinesTooltip(undefined);
|
|
165
|
+
})
|
|
166
|
+
.catch(function (error) {
|
|
167
|
+
var _a;
|
|
168
|
+
var requiredFields = [];
|
|
169
|
+
(_a = error.errorFields) === null || _a === void 0 ? void 0 : _a.map(function (errorField) {
|
|
170
|
+
requiredFields.push(errorField.name[errorField.name.length - 1]);
|
|
171
|
+
});
|
|
172
|
+
if ((requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.length) > 0)
|
|
173
|
+
setAddNewLinesTooltip((0, RequirementsUtility_1.getRequiredTooltipMessage)(props.intl.formatMessage(CommonTranslations_1.commonTranslationMessages.missingRequiredData), (0, BillingLineUtility_1.getFieldNames)(requiredFields, props.intl)));
|
|
174
|
+
setIsSaveButtonDisabled(true);
|
|
175
|
+
})];
|
|
176
|
+
case 1:
|
|
177
|
+
_a.sent();
|
|
178
|
+
return [2 /*return*/];
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
182
|
+
var debouncedValidateFormListFields = React.useCallback((0, lodash_1.debounce)(validateFormListFields, 500), [invoiceLines]);
|
|
183
|
+
(0, react_1.useEffect)(function () {
|
|
184
|
+
debouncedValidateFormListFields();
|
|
185
|
+
}, [invoiceLines, props.formInstance.getFieldValue(["invoice", "currencyCode"])]);
|
|
186
|
+
var getTaxableAmount = function () {
|
|
187
|
+
var fieldValues = props.formInstance.getFieldsValue([
|
|
188
|
+
["invoice", "invoiceLines", fieldName],
|
|
189
|
+
]);
|
|
190
|
+
if (fieldValues &&
|
|
191
|
+
fieldValues.invoice &&
|
|
192
|
+
fieldValues.invoice.invoiceLines &&
|
|
193
|
+
fieldValues.invoice.invoiceLines[fieldName]) {
|
|
194
|
+
var _a = fieldValues.invoice.invoiceLines[fieldName], discountValue = _a.discountValue, quantity = _a.quantity, unitPriceAmount = _a.unitPriceAmount;
|
|
195
|
+
var taxableAmount = (0, BillingLineUtility_1.calculateTaxableAmount)(discountValue, quantity, unitPriceAmount, discountType);
|
|
196
|
+
props.formInstance.setFields([
|
|
197
|
+
{
|
|
198
|
+
name: ["invoice", "invoiceLines", fieldName, "taxableAmount"],
|
|
199
|
+
value: taxableAmount,
|
|
200
|
+
},
|
|
201
|
+
]);
|
|
202
|
+
return taxableAmount;
|
|
203
|
+
}
|
|
204
|
+
return 0;
|
|
205
|
+
};
|
|
206
|
+
var currencySelectorCallbackFunction = function (currency) {
|
|
207
|
+
return (React.createElement(antd_1.Select.Option, { value: currency.key, title: currency.name, key: currency.key }, currency.name));
|
|
208
|
+
};
|
|
209
|
+
var currencySelectorOnSelect = function (value) {
|
|
210
|
+
props.formInstance.setFieldsValue({ invoice: { currencyCode: value } });
|
|
211
|
+
};
|
|
212
|
+
var discountTypeSelectorOnSelectHandle = function (value) { return setDiscountType(value); };
|
|
213
|
+
var editingRender = (React.createElement(antd_1.Flex, { vertical: true, key: "invoiceLine-".concat(index) },
|
|
214
|
+
React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.itemNo"], defaultIsRequired: false, fieldName: [fieldName, "itemNo"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_itemNo), verticalLabels: true, onlyLabelOnFirstInList: true }, (0, BillingLineUtility_1.getCorrectInputNode)("itemNo", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_itemNo), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.itemNo"], false))),
|
|
215
|
+
React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.name"], defaultIsRequired: true, fieldName: [fieldName, "name"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_name), verticalLabels: true, onlyLabelOnFirstInList: true, index: index }, (0, BillingLineUtility_1.getCorrectInputNode)("name", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_name), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.name"], true))),
|
|
216
|
+
React.createElement(antd_1.Row, { gutter: 20 },
|
|
217
|
+
React.createElement(antd_1.Col, { span: 12 },
|
|
218
|
+
React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.quantity"], defaultIsRequired: true, fieldName: [fieldName, "quantity"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_quantity), verticalLabels: true, onlyLabelOnFirstInList: true, index: index }, (0, BillingLineUtility_1.getCorrectInputNode)("quantity", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_quantity), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.quantity"], true), React.createElement(UnitOfMeasureSelector_1.default, { receiverRequirements: props.receiverRequirements, fieldName: fieldName, mobile: isMobile })))),
|
|
219
|
+
React.createElement(antd_1.Col, { span: 12 },
|
|
220
|
+
React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], defaultIsRequired: true, fieldName: [fieldName, "unitPriceAmount"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_unitPriceAmount), verticalLabels: true, onlyLabelOnFirstInList: true, index: index }, (0, BillingLineUtility_1.getCorrectInputNode)("unitPriceAmount", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_unitPriceAmount), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], true), React.createElement(CurrencySelector_1.default, { receiverRequirements: props.receiverRequirements, fieldName: fieldName, formInstance: props.formInstance, currencies: (0, RequirementsUtility_1.getCurrencies)(props.receiverRequirements, intl), mobile: isMobile, onSelect: currencySelectorOnSelect, disabled: isCurrencyDisabled, callbackfn: currencySelectorCallbackFunction }))))),
|
|
221
|
+
React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.taxableAmount"], defaultIsRequired: false, fieldName: [fieldName, "taxableAmount"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_lineAmount), verticalLabels: true, onlyLabelOnFirstInList: true, index: index },
|
|
222
|
+
React.createElement(antd_1.InputNumber, { style: { width: "100%" }, disabled: true, defaultValue: (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(getTaxableAmount(), props.intl) })),
|
|
223
|
+
React.createElement(antd_1.Row, { gutter: 20 },
|
|
224
|
+
React.createElement(antd_1.Col, { span: 12 },
|
|
225
|
+
React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.taxCategoryType"], defaultIsRequired: true, fieldName: [fieldName, "taxCategoryType"], name: [fieldName, "taxCategoryType"], initialValue: taxCatType, verticalLabels: true, onlyLabelOnFirstInList: true, index: index },
|
|
226
|
+
React.createElement(antd_1.Flex, { gap: "middle", align: "center" },
|
|
227
|
+
React.createElement(antd_1.Select, { style: isMobile ? { maxWidth: "80%" } : {}, value: taxCatType, onChange: function (value) {
|
|
228
|
+
var _a;
|
|
229
|
+
setTaxCatType(value);
|
|
230
|
+
props.formInstance.setFieldsValue({
|
|
231
|
+
invoice: {
|
|
232
|
+
invoiceLines: (_a = {},
|
|
233
|
+
_a[index] = {
|
|
234
|
+
taxCategoryType: value,
|
|
235
|
+
},
|
|
236
|
+
_a),
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
}, placeholder: (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.taxCategoryType"], true) ? (React.createElement(React.Fragment, null,
|
|
240
|
+
React.createElement(antd_1.Typography.Text, { type: "danger" }, "*"),
|
|
241
|
+
" ",
|
|
242
|
+
props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_taxCategoryType))) : (props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_taxCategoryType)), popupMatchSelectWidth: false }, Object.keys(enums_1.AvailableTaxCategoryTypeEnum).map(function (taxCategoryType) {
|
|
243
|
+
var taxPercentage = (0, BillingLineUtility_1.calculateTaxPercentage)(enums_1.AvailableTaxCategoryTypeEnum[taxCategoryType]);
|
|
244
|
+
return (React.createElement(antd_1.Select.Option, { disabled: (0, BillingLineUtility_1.getTaxCategoryDisabled)(enums_1.AvailableTaxCategoryTypeEnum[taxCategoryType], props.outsideVatScope), value: taxCategoryType, title: taxCategoryType, key: taxCategoryType }, "".concat(props.intl.formatMessage(CommonTranslations_1.commonTranslationMessages.taxCategoryType_label, { taxCategoryType: taxCategoryType }), " (").concat(taxPercentage, "%)")));
|
|
245
|
+
})),
|
|
246
|
+
" ",
|
|
247
|
+
React.createElement(tooltip_1.default, { title: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_taxCategoryType_title) })))),
|
|
248
|
+
React.createElement(antd_1.Col, { span: 12 },
|
|
249
|
+
React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.discountValue"], defaultIsRequired: false, fieldName: [fieldName, "discountValue"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_discount), verticalLabels: true, onlyLabelOnFirstInList: true, defaultLabelTooltip: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_discount_helpText), index: index },
|
|
250
|
+
React.createElement(antd_1.Flex, { gap: "middle", align: "center" },
|
|
251
|
+
(0, BillingLineUtility_1.getCorrectInputNode)("discountValue", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_discount), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.discountValue"], false), React.createElement(DiscountTypeSelector_1.default, { fieldName: fieldName, initialValue: discountType, onSelect: discountTypeSelectorOnSelectHandle, formInstance: props.formInstance })),
|
|
252
|
+
React.createElement(tooltip_1.default, { title: (0, RequirementsUtility_1.getFieldLabelTooltipOverride)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.discountValue"], props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_discount_helpText)) }))))),
|
|
253
|
+
React.createElement(antd_1.Form.Item, __assign({}, formLayout_1.fullWidthInput),
|
|
254
|
+
React.createElement(antd_1.Tooltip, { title: addNewLinesTooltip },
|
|
255
|
+
React.createElement(antd_1.Button, { type: "primary", onClick: function () { return props.handleAddNewLine(fieldName); }, style: { width: "100%" }, disabled: isSaveButtonDisabled },
|
|
256
|
+
React.createElement(icons_1.CheckCircleOutlined, null),
|
|
257
|
+
props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_labels_addButton))))));
|
|
258
|
+
return (React.createElement(React.Fragment, null, isEditing
|
|
259
|
+
? editingRender
|
|
260
|
+
: React.createElement(BillingLinePreview_1.default, { name: field === null || field === void 0 ? void 0 : field.name, discountValue: field === null || field === void 0 ? void 0 : field.discountValue, discountType: field === null || field === void 0 ? void 0 : field.discountType, taxCategoryType: field === null || field === void 0 ? void 0 : field.taxCategoryType, currencyCode: field === null || field === void 0 ? void 0 : field.currencyCode, onEdit: handleOnEdit, quantity: field === null || field === void 0 ? void 0 : field.quantity, taxableAmount: field === null || field === void 0 ? void 0 : field.taxableAmount, unitPriceAmount: field === null || field === void 0 ? void 0 : field.unitPriceAmount, unit: field === null || field === void 0 ? void 0 : field.unitPriceAmount, onDelete: handleRemove })));
|
|
261
|
+
};
|
|
262
|
+
exports.default = (0, react_intl_1.injectIntl)(SingleBillingLine);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
2
|
+
import { WrappedComponentProps } from "react-intl";
|
|
3
|
+
import React from "react";
|
|
4
|
+
interface Props extends WrappedComponentProps {
|
|
5
|
+
receiverRequirements: NewReceiverRequirements;
|
|
6
|
+
fieldName: any;
|
|
7
|
+
mobile: boolean;
|
|
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,15 @@
|
|
|
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 react_intl_1 = require("react-intl");
|
|
7
|
+
var form_item_1 = __importDefault(require("../form-item"));
|
|
8
|
+
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
9
|
+
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
10
|
+
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
11
|
+
var react_1 = __importDefault(require("react"));
|
|
12
|
+
var NewBillingLines_1 = require("./NewBillingLines");
|
|
13
|
+
var api_1 = require("@unimaze/api-clients/lib/mapi/api");
|
|
14
|
+
var UnitOfMeasureSelector = function (props) { return react_1.default.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.uniteOfMeasure.unit"], defaultIsRequired: true, fieldName: [props.fieldName, "unitOfMeasure", "unit"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_unitOfMeasure), verticalLabels: true, onlyLabelOnFirstInList: true, style: { marginBottom: "-2px" }, initialValue: api_1.Units.One }, (0, BillingLineUtility_1.getCorrectInputNode)("unitOfMeasure", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_unitOfMeasure), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.uniteOfMeasure.unit"], true), undefined, props.mobile)); };
|
|
15
|
+
exports.default = (0, react_intl_1.injectIntl)(UnitOfMeasureSelector);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var antd_1 = require("antd");
|
|
7
|
+
var form_item_1 = __importDefault(require("../form-item"));
|
|
8
|
+
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
9
|
+
var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
|
|
10
|
+
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
11
|
+
var react_1 = __importDefault(require("react"));
|
|
12
|
+
var NewBillingLines_1 = require("./NewBillingLines");
|
|
13
|
+
react_1.default.createElement(antd_1.Col, { span: 12 },
|
|
14
|
+
react_1.default.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], defaultIsRequired: true, fieldName: [field.name, "unitPriceAmount"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_unitPriceAmount), verticalLabels: true, onlyLabelOnFirstInList: true, index: index }, (0, BillingLineUtility_1.getCorrectInputNode)("unitPriceAmount", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_unitPriceAmount), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], true), currencySelector)));
|
|
@@ -2,12 +2,8 @@ import * as React from "react";
|
|
|
2
2
|
import { WrappedComponentProps } from "react-intl";
|
|
3
3
|
import { BillingLineMetadataOverride } from "../../types/BillingLineMetadataOverride";
|
|
4
4
|
import { FormInstance } from "antd/es/form";
|
|
5
|
-
import {
|
|
5
|
+
import { Units } from "@unimaze/api-clients/lib/mapi/api";
|
|
6
6
|
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
7
|
-
export interface TaxCategoryTypeWithPercentageEnum {
|
|
8
|
-
value: TaxCategoryTypeEnum;
|
|
9
|
-
label: string;
|
|
10
|
-
}
|
|
11
7
|
export interface UnitOfMeasureLabelInValueEnum {
|
|
12
8
|
value: Units;
|
|
13
9
|
label: string;
|
|
@@ -17,6 +13,7 @@ interface Props extends WrappedComponentProps {
|
|
|
17
13
|
billingLinesMetadata: BillingLineMetadataOverride[] | undefined;
|
|
18
14
|
receiverRequirements: NewReceiverRequirements;
|
|
19
15
|
outsideVatScope: boolean;
|
|
16
|
+
validateFields: (fieldNames: string[][], validateOnly?: boolean | undefined) => void;
|
|
20
17
|
}
|
|
21
18
|
export declare const translationMessages: {
|
|
22
19
|
billingLines_title: {
|
|
@@ -45,7 +42,7 @@ export declare const translationMessages: {
|
|
|
45
42
|
};
|
|
46
43
|
};
|
|
47
44
|
declare const BillingLinesIntl: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
48
|
-
forwardedRef?: React.Ref<any
|
|
45
|
+
forwardedRef?: React.Ref<any>;
|
|
49
46
|
} & React.RefAttributes<any>> & {
|
|
50
47
|
WrappedComponent: React.ComponentType<Props>;
|
|
51
48
|
};
|
|
@@ -94,7 +94,7 @@ var BillingLines = function (props) {
|
|
|
94
94
|
React.createElement(antd_1.Typography.Title, { level: 5 }, props.intl.formatMessage(exports.translationMessages.billingLines_title)),
|
|
95
95
|
React.createElement(antd_1.Flex, { style: { marginBottom: (_a = token.Typography) === null || _a === void 0 ? void 0 : _a.titleMarginBottom } },
|
|
96
96
|
React.createElement(tooltip_1.default, { title: props.intl.formatMessage(exports.translationMessages.billingLines_tooltip_title) }))),
|
|
97
|
-
React.createElement(NewBillingLines_1.default, { formInstance: props.formInstance, receiverRequirements: props.receiverRequirements, outsideVatScope: props.outsideVatScope })),
|
|
97
|
+
React.createElement(NewBillingLines_1.default, { formInstance: props.formInstance, receiverRequirements: props.receiverRequirements, outsideVatScope: props.outsideVatScope, validateFields: props.validateFields })),
|
|
98
98
|
React.createElement(antd_1.Flex, { gap: "middle", vertical: true },
|
|
99
99
|
React.createElement(BillingCalculations_1.default, { currencyCode: currencyCode, formInstance: props.formInstance, outsideVatScope: props.outsideVatScope }),
|
|
100
100
|
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields.notes, defaultLabel: props.intl.formatMessage(exports.translationMessages.baseInformation_notes), defaultIsRequired: false, fieldName: ["invoice", "notes"], style: { marginBottom: 0 } },
|
|
@@ -10,7 +10,7 @@ interface Props extends WrappedComponentProps {
|
|
|
10
10
|
legalIdentifier: string;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
13
|
-
forwardedRef?: React.Ref<any
|
|
13
|
+
forwardedRef?: React.Ref<any>;
|
|
14
14
|
} & React.RefAttributes<any>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<Props>;
|
|
16
16
|
};
|
|
@@ -10,7 +10,7 @@ interface CustomerContactNameProps extends WrappedComponentProps {
|
|
|
10
10
|
legalIdentifier: string;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<CustomerContactNameProps, "intl"> & {
|
|
13
|
-
forwardedRef?: React.Ref<any
|
|
13
|
+
forwardedRef?: React.Ref<any>;
|
|
14
14
|
} & React.RefAttributes<any>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<CustomerContactNameProps>;
|
|
16
16
|
};
|
|
@@ -19,7 +19,7 @@ interface Props extends WrappedComponentProps {
|
|
|
19
19
|
isActiveStep: boolean;
|
|
20
20
|
}
|
|
21
21
|
declare const CustomerIntl: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
22
|
-
forwardedRef?: React.Ref<any
|
|
22
|
+
forwardedRef?: React.Ref<any>;
|
|
23
23
|
} & React.RefAttributes<any>> & {
|
|
24
24
|
WrappedComponent: React.ComponentType<Props>;
|
|
25
25
|
};
|
|
@@ -124,24 +124,26 @@ var Customer = function (props) {
|
|
|
124
124
|
return;
|
|
125
125
|
debouncedValidateFields(fieldPaths, true);
|
|
126
126
|
}, [props.isActiveStep, props.formInstance.getFieldsValue(fieldPaths)]);
|
|
127
|
+
var onlyOneCustomer = props.customers.length === 1;
|
|
127
128
|
return (react_1.default.createElement(antd_1.Flex, { style: {
|
|
128
129
|
backgroundColor: isMobile ? undefined : colorInfoBg,
|
|
129
130
|
padding: isMobile ? 0 : "35px",
|
|
130
131
|
}, justify: "center" },
|
|
131
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true, style: { width: "100%", maxWidth: "900px" }, gap: isMobile ? "small" : "middle" },
|
|
132
|
+
react_1.default.createElement(antd_1.Flex, { vertical: true, style: { width: "100%", maxWidth: "900px" }, gap: isMobile || onlyOneCustomer ? "small" : "middle" },
|
|
132
133
|
react_1.default.createElement(Title_1.default, { level: 5 }, props.intl.formatMessage(translationMessages.customer_title)),
|
|
133
134
|
react_1.default.createElement(antd_1.Flex, { vertical: true, gap: "middle" },
|
|
134
|
-
react_1.default.createElement(
|
|
135
|
+
onlyOneCustomer && (react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: 20, paddingBottom: 5 }, className: "ant-form-text" }, props.customers[0].name)),
|
|
136
|
+
react_1.default.createElement(form_item_1.default, { hidden: onlyOneCustomer, receiverRequirements: props.receiverRequirements, defaultLabel: props.customers.length > 1
|
|
135
137
|
? props.intl.formatMessage(translationMessages.customer_selectTheCustomer)
|
|
136
138
|
: props.intl.formatMessage(translationMessages.customer_title), defaultIsRequired: true, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["customer.identifier"], fieldName: ["invoice", "customer", "name"], style: { marginBottom: 0 } }, props.customers.length > 0 ? (react_1.default.createElement(antd_1.Select, __assign({ onChange: function (value) {
|
|
137
139
|
onCustomerChange(value);
|
|
138
140
|
}, disabled: props.customers.length === 1 }, formLayout_1.formItemLayout), props.customers.map(function (customer, index) { return (react_1.default.createElement(antd_1.Select.Option, { key: index, value: index }, customer.name)); }))) : ("Error - no customer configured")),
|
|
139
|
-
react_1.default.createElement(antd_1.Typography.Text, { className: "ant-form-text", type: "secondary" },
|
|
141
|
+
react_1.default.createElement(antd_1.Typography.Text, { className: "ant-form-text", style: { fontSize: 18 }, type: "secondary" },
|
|
140
142
|
props.intl.formatMessage(translationMessages.customer_identifier),
|
|
141
143
|
":",
|
|
142
144
|
" ",
|
|
143
145
|
chosenCustomer && (0, ConversionUtility_1.convertToReadableKennitala)(chosenCustomer.identifier)),
|
|
144
|
-
react_1.default.createElement(antd_1.Typography.Text, { className: "ant-form-text", type: "secondary" },
|
|
146
|
+
react_1.default.createElement(antd_1.Typography.Text, { className: "ant-form-text", style: { fontSize: 18 }, type: "secondary" },
|
|
145
147
|
props.intl.formatMessage(translationMessages.customer_address_streetNameAndNumber),
|
|
146
148
|
":",
|
|
147
149
|
" ",
|
|
@@ -5,7 +5,7 @@ interface Props extends WrappedComponentProps {
|
|
|
5
5
|
receiverRequirements: NewReceiverRequirements;
|
|
6
6
|
}
|
|
7
7
|
declare const DeliveryLocationIntl: 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
|
};
|
|
@@ -28,7 +28,7 @@ interface Props extends WrappedComponentProps, FormItemProps {
|
|
|
28
28
|
index?: number;
|
|
29
29
|
}
|
|
30
30
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
31
|
-
forwardedRef?: React.Ref<any
|
|
31
|
+
forwardedRef?: React.Ref<any>;
|
|
32
32
|
} & React.RefAttributes<any>> & {
|
|
33
33
|
WrappedComponent: React.ComponentType<Props>;
|
|
34
34
|
};
|
|
@@ -16,7 +16,7 @@ interface Props extends WrappedComponentProps {
|
|
|
16
16
|
size?: "large" | "middle" | "small";
|
|
17
17
|
}
|
|
18
18
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
19
|
-
forwardedRef?: React.Ref<any
|
|
19
|
+
forwardedRef?: React.Ref<any>;
|
|
20
20
|
} & React.RefAttributes<any>> & {
|
|
21
21
|
WrappedComponent: React.ComponentType<Props>;
|
|
22
22
|
};
|
|
@@ -31,9 +31,11 @@ interface Props extends WrappedComponentProps {
|
|
|
31
31
|
isSaveFieldValuesSelected: boolean;
|
|
32
32
|
onSaveFieldValuesChange: () => void;
|
|
33
33
|
isActiveStep: boolean;
|
|
34
|
+
setReferenceIdentifierIsMandatory: (referenceIdentifierIsMandatory: boolean) => void;
|
|
34
35
|
}
|
|
36
|
+
export declare const fieldPaths: string[][];
|
|
35
37
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
36
|
-
forwardedRef?: React.Ref<any
|
|
38
|
+
forwardedRef?: React.Ref<any>;
|
|
37
39
|
} & React.RefAttributes<any>> & {
|
|
38
40
|
WrappedComponent: React.ComponentType<Props>;
|
|
39
41
|
};
|
|
@@ -23,30 +23,37 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.fieldPaths = void 0;
|
|
26
27
|
var react_1 = __importStar(require("react"));
|
|
27
28
|
var react_intl_1 = require("react-intl");
|
|
28
29
|
var __1 = require("..");
|
|
29
30
|
var lodash_1 = require("lodash");
|
|
31
|
+
exports.fieldPaths = [
|
|
32
|
+
["invoice", "invoiceNo"],
|
|
33
|
+
["invoice", "issueDate"],
|
|
34
|
+
["invoice", "dueDate"],
|
|
35
|
+
["invoice", "buyerReference"],
|
|
36
|
+
["invoice", "orderReference", "documentNo"],
|
|
37
|
+
["invoice", "accountingCost"],
|
|
38
|
+
["invoice", "documentReferences", "project", "documentNo"],
|
|
39
|
+
["invoice", "invoiceLines"],
|
|
40
|
+
["invoice", "singleReferenceIdentifier", "value"],
|
|
41
|
+
["invoice", "referenceIdentifiers"],
|
|
42
|
+
];
|
|
30
43
|
var Invoice = function (props) {
|
|
31
|
-
var fieldPaths = [
|
|
32
|
-
["invoice", "invoiceNo"],
|
|
33
|
-
["invoice", "issueDate"],
|
|
34
|
-
["invoice", "dueDate"],
|
|
35
|
-
["invoice", "buyerReference"],
|
|
36
|
-
["invoice", "orderReference", "documentNo"],
|
|
37
|
-
["invoice", "accountingCost"],
|
|
38
|
-
["invoice", "documentReferences", "project", "documentNo"],
|
|
39
|
-
["invoice", "invoiceLines"]
|
|
40
|
-
];
|
|
41
44
|
var debouncedValidateFields = (0, lodash_1.debounce)(props.validateFields, 500);
|
|
42
45
|
(0, react_1.useEffect)(function () {
|
|
43
46
|
if (!props.isActiveStep)
|
|
44
47
|
return;
|
|
45
|
-
debouncedValidateFields(fieldPaths, true);
|
|
46
|
-
}, [props.isActiveStep, JSON.stringify(props.form.getFieldsValue(fieldPaths))]);
|
|
48
|
+
debouncedValidateFields(exports.fieldPaths, true);
|
|
49
|
+
}, [props.isActiveStep, JSON.stringify(props.form.getFieldsValue(exports.fieldPaths))]);
|
|
50
|
+
(0, react_1.useEffect)(function () {
|
|
51
|
+
// Update validateField if there are changes to referenceIdentifierValidateStatus (which are debounced and thus late)
|
|
52
|
+
props.validateFields(exports.fieldPaths, true);
|
|
53
|
+
}, [props.referenceIdentifierValidateStatus]);
|
|
47
54
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
48
|
-
react_1.default.createElement(__1.BaseInformation, { receiverRequirements: props.receiverRequirements, form: props.form, documentType: "invoice", updateReceiverRequirementsProp: props.updateReceiverRequirementsProp, rapiBaseUrl: props.rapiBaseUrl, legalIdentifier: props.chosenCustomer.identifier, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifierValidateStatus: props.referenceIdentifierValidateStatus, setReferenceIdentifierValidateStatus: props.setReferenceIdentifierValidateStatus, dueDateMinimumOffset: props.dueDateMinimumOffset, isSaveFieldValuesSelected: props.isSaveFieldValuesSelected, onSaveFieldValuesChange: props.onSaveFieldValuesChange }),
|
|
49
|
-
react_1.default.createElement(__1.BillingLines, { formInstance: props.form, billingLinesMetadata: props.billingLinesMetadata, receiverRequirements: props.receiverRequirements, outsideVatScope: props.outsideVatScope }),
|
|
55
|
+
react_1.default.createElement(__1.BaseInformation, { receiverRequirements: props.receiverRequirements, form: props.form, documentType: "invoice", updateReceiverRequirementsProp: props.updateReceiverRequirementsProp, rapiBaseUrl: props.rapiBaseUrl, legalIdentifier: props.chosenCustomer.identifier, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifierValidateStatus: props.referenceIdentifierValidateStatus, setReferenceIdentifierValidateStatus: props.setReferenceIdentifierValidateStatus, dueDateMinimumOffset: props.dueDateMinimumOffset, isSaveFieldValuesSelected: props.isSaveFieldValuesSelected, onSaveFieldValuesChange: props.onSaveFieldValuesChange, setReferenceIdentifierIsMandatory: props.setReferenceIdentifierIsMandatory }),
|
|
56
|
+
react_1.default.createElement(__1.BillingLines, { formInstance: props.form, billingLinesMetadata: props.billingLinesMetadata, receiverRequirements: props.receiverRequirements, outsideVatScope: props.outsideVatScope, validateFields: props.validateFields }),
|
|
50
57
|
react_1.default.createElement(__1.Attachments, { formInstance: props.form, uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, languageString: props.languageString })));
|
|
51
58
|
};
|
|
52
59
|
exports.default = (0, react_intl_1.injectIntl)(Invoice);
|
|
@@ -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 &&
|
|
@@ -9,7 +9,7 @@ interface Props extends WrappedComponentProps {
|
|
|
9
9
|
chosenCustomer: PartyMetadata;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
12
|
-
forwardedRef?: React.Ref<any
|
|
12
|
+
forwardedRef?: React.Ref<any>;
|
|
13
13
|
} & React.RefAttributes<any>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<Props>;
|
|
15
15
|
};
|