@unimaze/billing 0.21.41 → 0.21.43
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/base-information/index.d.ts +1 -0
- package/lib/common/components/base-information/index.js +2 -2
- package/lib/common/components/date-picker/index.d.ts +1 -0
- package/lib/common/components/date-picker/index.js +3 -2
- package/lib/common/components/invoice/index.d.ts +1 -0
- package/lib/common/components/invoice/index.js +1 -1
- package/lib/common/components/invoice-preview/InvoicePreviewHeader.d.ts +1 -0
- package/lib/common/components/invoice-preview/InvoicePreviewHeader.js +2 -1
- package/lib/common/components/submit-confirmation/index.js +19 -6
- package/lib/common/style/index.css +1 -11
- package/lib/create-invoice/IntlLoader.js +1 -1
- package/lib/create-invoice/index.js +2 -3
- package/lib/style/index.css +51 -0
- package/package.json +1 -1
- package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
- package/lib/common/components/billing-lines/NewNewBillingLines.js +0 -36
- package/lib/common/components/billing-lines/cwdwdw.d.ts +0 -1
- package/lib/common/components/billing-lines/cwdwdw.js +0 -14
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -109
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -110
- package/lib/unimaze-api-clients/src/mapi/api.d.ts +0 -6664
- package/lib/unimaze-api-clients/src/mapi/api.js +0 -4743
- package/lib/unimaze-api-clients/src/mapi/base.d.ts +0 -55
- package/lib/unimaze-api-clients/src/mapi/base.js +0 -84
- package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +0 -63
- package/lib/unimaze-api-clients/src/mapi/configuration.js +0 -28
- package/lib/unimaze-api-clients/src/mapi/index.d.ts +0 -13
- package/lib/unimaze-api-clients/src/mapi/index.js +0 -30
- package/lib/unimaze-api-clients/src/rapi/api.d.ts +0 -5015
- package/lib/unimaze-api-clients/src/rapi/api.js +0 -5582
- package/lib/unimaze-api-clients/src/rapi/base.d.ts +0 -55
- package/lib/unimaze-api-clients/src/rapi/base.js +0 -84
- package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +0 -63
- package/lib/unimaze-api-clients/src/rapi/configuration.js +0 -28
- package/lib/unimaze-api-clients/src/rapi/index.d.ts +0 -13
- package/lib/unimaze-api-clients/src/rapi/index.js +0 -30
- package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +0 -74
- package/lib/unimaze-billing/src/common/components/CommonTranslations.js +0 -78
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +0 -20
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +0 -164
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +0 -21
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +0 -206
- package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +0 -27
- package/lib/unimaze-billing/src/common/components/attachments/index.js +0 -214
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +0 -61
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +0 -16
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +0 -58
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +0 -30
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -53
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +0 -328
- package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +0 -77
- package/lib/unimaze-billing/src/common/components/base-information/index.js +0 -186
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +0 -151
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +0 -24
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +0 -61
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -13
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +0 -133
- package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +0 -20
- package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +0 -17
- package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +0 -10
- package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +0 -16
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +0 -134
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +0 -209
- package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
- package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +0 -36
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +0 -19
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +0 -275
- package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +0 -15
- package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +0 -49
- package/lib/unimaze-billing/src/common/components/billing-lines/index.js +0 -104
- package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/component-container/Content.js +0 -13
- package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +0 -9
- package/lib/unimaze-billing/src/common/components/component-container/Header.js +0 -28
- package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/component-container/index.js +0 -22
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +0 -163
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +0 -53
- package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +0 -41
- package/lib/unimaze-billing/src/common/components/customer/index.d.ts +0 -26
- package/lib/unimaze-billing/src/common/components/customer/index.js +0 -166
- package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +0 -21
- package/lib/unimaze-billing/src/common/components/date-picker/index.js +0 -23
- package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/delivery-location/index.js +0 -89
- package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
- package/lib/unimaze-billing/src/common/components/editable-cell/index.js +0 -295
- package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +0 -5
- package/lib/unimaze-billing/src/common/components/editable-row/index.js +0 -59
- package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +0 -35
- package/lib/unimaze-billing/src/common/components/form-item/index.js +0 -60
- package/lib/unimaze-billing/src/common/components/index.d.ts +0 -18
- package/lib/unimaze-billing/src/common/components/index.js +0 -42
- package/lib/unimaze-billing/src/common/components/input/index.d.ts +0 -23
- package/lib/unimaze-billing/src/common/components/input/index.js +0 -37
- package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +0 -42
- package/lib/unimaze-billing/src/common/components/invoice/index.js +0 -59
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -75
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +0 -73
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +0 -104
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +0 -93
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -77
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +0 -58
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +0 -52
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +0 -102
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +0 -196
- package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
- package/lib/unimaze-billing/src/common/components/locale-intl/index.js +0 -51
- package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +0 -76
- package/lib/unimaze-billing/src/common/components/payment-method/index.js +0 -356
- package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +0 -8
- package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +0 -37
- package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +0 -3
- package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +0 -17
- package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +0 -8
- package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +0 -34
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +0 -18
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +0 -159
- package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +0 -94
- package/lib/unimaze-billing/src/common/components/supplier/index.js +0 -334
- package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/tooltip/index.js +0 -15
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +0 -15
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +0 -26
- package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +0 -74
- package/lib/unimaze-billing/src/common/consts/formLayout.js +0 -45
- package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +0 -6
- package/lib/unimaze-billing/src/common/consts/validationRules.js +0 -69
- package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +0 -5
- package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +0 -8
- package/lib/unimaze-billing/src/common/enums/index.d.ts +0 -1
- package/lib/unimaze-billing/src/common/enums/index.js +0 -8
- package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +0 -26
- package/lib/unimaze-billing/src/common/types/AppConfiguration.js +0 -2
- package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +0 -10
- package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +0 -2
- package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +0 -33
- package/lib/unimaze-billing/src/common/types/CommonProps.js +0 -2
- package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/DiscountType.js +0 -2
- package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +0 -2
- package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +0 -27
- package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +0 -2
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +0 -83
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +0 -393
- package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +0 -11
- package/lib/unimaze-billing/src/common/types/SupplierInfo.js +0 -2
- package/lib/unimaze-billing/src/common/types/index.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/index.js +0 -17
- package/lib/unimaze-billing/src/create-credit-note/index.d.ts +0 -9
- package/lib/unimaze-billing/src/create-credit-note/index.js +0 -62
- package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +0 -11
- package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +0 -116
- package/lib/unimaze-billing/src/create-invoice/index.d.ts +0 -82
- package/lib/unimaze-billing/src/create-invoice/index.js +0 -710
- package/lib/unimaze-billing/src/enums.d.ts +0 -14
- package/lib/unimaze-billing/src/enums.js +0 -18
- package/lib/unimaze-billing/src/index.d.ts +0 -4
- package/lib/unimaze-billing/src/index.js +0 -28
- package/lib/unimaze-billing/src/translations/locales/en.json +0 -183
- package/lib/unimaze-billing/src/translations/locales/is.json +0 -183
- package/lib/unimaze-billing/src/translations/locales.d.ts +0 -369
- package/lib/unimaze-billing/src/translations/locales.js +0 -11
- package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +0 -29
- package/lib/unimaze-billing/src/utils/ApiUtility.js +0 -133
- package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +0 -25
- package/lib/unimaze-billing/src/utils/BillingLineUtility.js +0 -190
- package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +0 -9
- package/lib/unimaze-billing/src/utils/ConversionUtility.js +0 -222
- package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +0 -9
- package/lib/unimaze-billing/src/utils/FileUploadUtility.js +0 -45
- package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +0 -6
- package/lib/unimaze-billing/src/utils/IntlUtility.js +0 -78
- package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +0 -1
- package/lib/unimaze-billing/src/utils/LocationUtility.js +0 -81
- package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +0 -7
- package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +0 -26
- package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +0 -21
- package/lib/unimaze-billing/src/utils/RequirementsUtility.js +0 -237
- package/lib/unimaze-billing/src/utils/index.d.ts +0 -2
- package/lib/unimaze-billing/src/utils/index.js +0 -8
|
@@ -18,6 +18,7 @@ interface Props extends WrappedComponentProps {
|
|
|
18
18
|
isSaveFieldValuesSelected: boolean;
|
|
19
19
|
onSaveFieldValuesChange: () => void;
|
|
20
20
|
setReferenceIdentifierIsMandatory: (referenceIdentifierIsMandatory: boolean) => void;
|
|
21
|
+
colorError?: string;
|
|
21
22
|
}
|
|
22
23
|
export declare const translationMessages: {
|
|
23
24
|
baseInformation_title: {
|
|
@@ -151,7 +151,7 @@ var BaseInformation = function (props) {
|
|
|
151
151
|
React.createElement(antd_1.Row, { gutter: 20 },
|
|
152
152
|
React.createElement(antd_1.Col, { span: 12 },
|
|
153
153
|
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields.issueDate, defaultIsRequired: true, fieldName: ["invoice", "issueDate"] },
|
|
154
|
-
React.createElement(__1.UmzDatePicker, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields.issueDate, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.baseInformation_issueDate), defaultIsRequired: true, defaultValue: (0, dayjs_1.default)(), format: "DD.MM.YYYY", style: { width: "100%" }, defaultTooltip: props.intl.formatMessage(exports.translationMessages.baseInformation_issueDate_title) }))),
|
|
154
|
+
React.createElement(__1.UmzDatePicker, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields.issueDate, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.baseInformation_issueDate), defaultIsRequired: true, defaultValue: (0, dayjs_1.default)(), format: "DD.MM.YYYY", style: { width: "100%" }, defaultTooltip: props.intl.formatMessage(exports.translationMessages.baseInformation_issueDate_title), colorError: props.colorError }))),
|
|
155
155
|
React.createElement(antd_1.Col, { span: 12 },
|
|
156
156
|
React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields.dueDate, defaultIsRequired: true, fieldName: ["invoice", "dueDate"], additionalRules: [
|
|
157
157
|
{
|
|
@@ -171,7 +171,7 @@ var BaseInformation = function (props) {
|
|
|
171
171
|
var dueDateMinimumOffset = props.dueDateMinimumOffset;
|
|
172
172
|
var issueDate = props.form.getFieldValue(["invoice", "issueDate"]);
|
|
173
173
|
return disabledDate(currentDate, issueDate, dueDateMinimumOffset);
|
|
174
|
-
} }))))),
|
|
174
|
+
}, colorError: props.colorError }))))),
|
|
175
175
|
React.createElement(antd_1.Col, { span: 24 },
|
|
176
176
|
React.createElement(OrderReference_1.default, { receiverRequirements: props.receiverRequirements, formInstance: props.form, dependencies: [["invoice", "buyerReference"]] }),
|
|
177
177
|
React.createElement(form_item_1.default, { shouldUpdate: true, dependencies: [["invoice", "orderReference", "documentNo"]], receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields.buyerReference, defaultLabel: props.intl.formatMessage(exports.translationMessages.baseInformation_buyerReferenceLabel), defaultLabelTooltip: props.intl.formatMessage(exports.translationMessages.baseInformation_buyerReferenceLabel_helpText), defaultIsRequired: !props.form.getFieldValue(["invoice", "orderReference", "documentNo"]), fieldName: ["invoice", "buyerReference"] },
|
|
@@ -16,6 +16,7 @@ interface Props {
|
|
|
16
16
|
disabledDate?: (current: Dayjs) => boolean;
|
|
17
17
|
onChange?: (date: Dayjs | null, dateString: string | string[]) => void;
|
|
18
18
|
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
19
|
+
colorError?: string;
|
|
19
20
|
}
|
|
20
21
|
declare const UmzDatePicker: React.FC<Props>;
|
|
21
22
|
export default UmzDatePicker;
|
|
@@ -8,7 +8,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
8
8
|
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
9
9
|
var tooltip_1 = __importDefault(require("../tooltip"));
|
|
10
10
|
var UmzDatePicker = function (_a) {
|
|
11
|
-
var receiverRequirements = _a.receiverRequirements, receiverRequirementsKey = _a.receiverRequirementsKey, defaultPlaceholder = _a.defaultPlaceholder, _b = _a.defaultIsRequired, defaultIsRequired = _b === void 0 ? false : _b, defaultPickerValue = _a.defaultPickerValue, defaultValue = _a.defaultValue, defaultTooltip = _a.defaultTooltip, format = _a.format, style = _a.style, _c = _a.disabled, disabled = _c === void 0 ? false : _c, disabledDate = _a.disabledDate, onChange = _a.onChange, getPopupContainer = _a.getPopupContainer;
|
|
11
|
+
var receiverRequirements = _a.receiverRequirements, receiverRequirementsKey = _a.receiverRequirementsKey, defaultPlaceholder = _a.defaultPlaceholder, _b = _a.defaultIsRequired, defaultIsRequired = _b === void 0 ? false : _b, defaultPickerValue = _a.defaultPickerValue, defaultValue = _a.defaultValue, defaultTooltip = _a.defaultTooltip, format = _a.format, style = _a.style, _c = _a.disabled, disabled = _c === void 0 ? false : _c, disabledDate = _a.disabledDate, onChange = _a.onChange, getPopupContainer = _a.getPopupContainer, colorError = _a.colorError;
|
|
12
12
|
var isRequired = receiverRequirements && receiverRequirementsKey
|
|
13
13
|
? (0, RequirementsUtility_1.getFieldIsRequired)(receiverRequirements, receiverRequirementsKey, defaultIsRequired)
|
|
14
14
|
: defaultIsRequired;
|
|
@@ -18,6 +18,7 @@ var UmzDatePicker = function (_a) {
|
|
|
18
18
|
return (react_1.default.createElement(antd_1.Flex, { gap: "middle" },
|
|
19
19
|
react_1.default.createElement(antd_1.DatePicker, { className: isRequired ? "date-picker-asterisk-wrapper" : undefined, required: isRequired, placeholder: defaultPlaceholder, defaultValue: defaultValue, defaultPickerValue: defaultPickerValue, format: format, style: style, disabled: disabled, disabledDate: disabledDate, onChange: onChange, getPopupContainer: getPopupContainer }),
|
|
20
20
|
react_1.default.createElement(antd_1.Flex, { align: "center" },
|
|
21
|
-
react_1.default.createElement(tooltip_1.default, { title: tooltipTitle }))
|
|
21
|
+
react_1.default.createElement(tooltip_1.default, { title: tooltipTitle })),
|
|
22
|
+
react_1.default.createElement("style", null, "\n .date-picker-asterisk-wrapper::before {\n content: \"*\";\n color: ".concat(colorError || 'red', ";\n position: absolute;\n top: 50%;\n left: '12px';\n transform: translateY(-50%);\n z-index: 2;\n font-size: 14px;\n }\n "))));
|
|
22
23
|
};
|
|
23
24
|
exports.default = UmzDatePicker;
|
|
@@ -32,6 +32,7 @@ interface Props extends WrappedComponentProps {
|
|
|
32
32
|
setReferenceIdentifierIsMandatory: (referenceIdentifierIsMandatory: boolean) => void;
|
|
33
33
|
newLineSaved: boolean;
|
|
34
34
|
setNewLineSaved: (isSaved: boolean) => void;
|
|
35
|
+
colorError?: string;
|
|
35
36
|
}
|
|
36
37
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
37
38
|
forwardedRef?: React.Ref<any>;
|
|
@@ -9,7 +9,7 @@ var __1 = require("..");
|
|
|
9
9
|
var Invoice = function (props) {
|
|
10
10
|
var newLineSaved = props.newLineSaved, setNewLineSaved = props.setNewLineSaved;
|
|
11
11
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
12
|
-
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 }),
|
|
12
|
+
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, colorError: props.colorError }),
|
|
13
13
|
react_1.default.createElement(__1.BillingLines, { formInstance: props.form, billingLinesMetadata: props.billingLinesMetadata, receiverRequirements: props.receiverRequirements, outsideVatScope: props.outsideVatScope, newLineSaved: newLineSaved, setNewLineSaved: setNewLineSaved }),
|
|
14
14
|
react_1.default.createElement(__1.Attachments, { formInstance: props.form, uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, languageString: props.languageString })));
|
|
15
15
|
};
|
|
@@ -3,6 +3,7 @@ import React from "react";
|
|
|
3
3
|
import { WrappedComponentProps } from "react-intl";
|
|
4
4
|
interface Props extends WrappedComponentProps {
|
|
5
5
|
form: FormInstance;
|
|
6
|
+
colorPrimary?: string;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
8
9
|
forwardedRef?: React.Ref<any>;
|
|
@@ -28,6 +28,7 @@ var translationMessages = (0, react_intl_1.defineMessages)({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
var WrappedInvoicePreviewHeader = function (props) {
|
|
31
|
+
var _a;
|
|
31
32
|
return (react_1.default.createElement(antd_1.ConfigProvider, { theme: {
|
|
32
33
|
token: {
|
|
33
34
|
colorText: "white",
|
|
@@ -41,7 +42,7 @@ var WrappedInvoicePreviewHeader = function (props) {
|
|
|
41
42
|
},
|
|
42
43
|
components: {
|
|
43
44
|
Layout: {
|
|
44
|
-
headerBg: colors_1.blue
|
|
45
|
+
headerBg: (_a = props.colorPrimary) !== null && _a !== void 0 ? _a : colors_1.blue.primary,
|
|
45
46
|
headerPadding: "35px",
|
|
46
47
|
headerHeight: 200,
|
|
47
48
|
},
|
|
@@ -30,6 +30,7 @@ var antd_1 = require("antd");
|
|
|
30
30
|
var react_intl_1 = require("react-intl");
|
|
31
31
|
var react_1 = __importStar(require("react"));
|
|
32
32
|
var SubmitConfirmationSVG_1 = __importDefault(require("./SubmitConfirmationSVG"));
|
|
33
|
+
var icons_1 = require("@ant-design/icons");
|
|
33
34
|
var translationMessages = (0, react_intl_1.defineMessages)({
|
|
34
35
|
submitConfirmation_title: {
|
|
35
36
|
id: "submitConfirmation_title",
|
|
@@ -65,10 +66,20 @@ var SubmitConfirmation = function (props) {
|
|
|
65
66
|
}
|
|
66
67
|
}, [form]);
|
|
67
68
|
var getAttachmentUploadMessage = function (attachmentName) {
|
|
68
|
-
return react_1.default.createElement(antd_1.Typography.
|
|
69
|
+
return react_1.default.createElement(antd_1.Typography.Text, { style: { margin: 5 } },
|
|
70
|
+
react_1.default.createElement(icons_1.CheckCircleTwoTone, { twoToneColor: "green", style: { marginRight: 5 } }), "".concat(props.intl.formatMessage(translationMessages.submitConfirmation_SuccessfullyUploadedAttachment)).concat(attachmentName));
|
|
69
71
|
};
|
|
70
72
|
var getCreatedInvoiceMessage = function () {
|
|
71
|
-
return react_1.default.createElement(antd_1.Typography.
|
|
73
|
+
return react_1.default.createElement(antd_1.Typography.Text, { style: { margin: 5 } },
|
|
74
|
+
react_1.default.createElement(icons_1.CheckCircleTwoTone, { twoToneColor: "green", style: { marginRight: 5 } }),
|
|
75
|
+
props.intl.formatMessage(translationMessages.submitConfirmation_successfullyCreatedInvoice));
|
|
76
|
+
};
|
|
77
|
+
var cardStyle = {
|
|
78
|
+
width: "auto",
|
|
79
|
+
backgroundColor: "whitesmoke",
|
|
80
|
+
marginTop: 10,
|
|
81
|
+
display: "flex",
|
|
82
|
+
justifyContent: "center"
|
|
72
83
|
};
|
|
73
84
|
return (react_1.default.createElement(antd_1.Flex, { justify: "center", style: { padding: "45px" } },
|
|
74
85
|
react_1.default.createElement(antd_1.Flex, { vertical: true, justify: "center", align: "center", style: { width: "100%", maxWidth: "900px" }, gap: "small" },
|
|
@@ -77,10 +88,12 @@ var SubmitConfirmation = function (props) {
|
|
|
77
88
|
react_1.default.createElement(antd_1.Flex, { justify: "center", align: "center", style: { width: "100%", maxWidth: "900px" }, gap: "small" },
|
|
78
89
|
react_1.default.createElement(antd_1.Progress, { showInfo: false, percent: (numberOfSuccessfulCalls + 1) * percentUnit, success: { percent: numberOfSuccessfulCalls * percentUnit } }),
|
|
79
90
|
react_1.default.createElement(antd_1.Spin, { size: "small", spinning: totalNumberOfCalls !== numberOfSuccessfulCalls })),
|
|
80
|
-
numberOfSuccessfulCalls >= 1 &&
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
91
|
+
numberOfSuccessfulCalls >= 1 && react_1.default.createElement(antd_1.Card, { size: "small", style: cardStyle },
|
|
92
|
+
react_1.default.createElement("ul", { style: { listStyleType: 'none', paddingLeft: 0, margin: 0 } },
|
|
93
|
+
react_1.default.createElement("li", null, numberOfSuccessfulCalls >= 1 && getCreatedInvoiceMessage()),
|
|
94
|
+
react_1.default.createElement("li", null, numberOfSuccessfulCalls >= 2 && getAttachmentUploadMessage(attachmentsNames[0])),
|
|
95
|
+
react_1.default.createElement("li", null, numberOfSuccessfulCalls >= 3 && getAttachmentUploadMessage(attachmentsNames[1])),
|
|
96
|
+
react_1.default.createElement("li", null, numberOfSuccessfulCalls >= 4 && getAttachmentUploadMessage(attachmentsNames[2])))),
|
|
84
97
|
totalNumberOfCalls === numberOfSuccessfulCalls &&
|
|
85
98
|
react_1.default.createElement(antd_1.Flex, { vertical: true, align: "center", style: { paddingTop: "20px" } },
|
|
86
99
|
react_1.default.createElement(antd_1.Typography.Title, { level: 2 }, props.intl.formatMessage(translationMessages.submitConfirmation_title)),
|
|
@@ -2,17 +2,7 @@
|
|
|
2
2
|
padding-left: 12px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.date-picker-asterisk-wrapper::before {
|
|
6
|
-
content: "*";
|
|
7
|
-
color: red;
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 50%;
|
|
10
|
-
left: '12px';
|
|
11
|
-
transform: translateY(-50%);
|
|
12
|
-
z-index: 2;
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
}
|
|
15
5
|
|
|
16
6
|
.upload-container .ant-upload {
|
|
17
7
|
width: 100%
|
|
18
|
-
}
|
|
8
|
+
}
|
|
@@ -111,6 +111,6 @@ var CreateInvoice = function (props) {
|
|
|
111
111
|
react_1.default.createElement(react_intl_1.IntlProvider, { locale: languageString, defaultLocale: "is", key: languageString, messages: locales_1.default[languageString] },
|
|
112
112
|
react_1.default.createElement(index_1.default, { customers: props.customers, language: languageString, mapiBaseUrl: props.mapiBaseUrl, rapiBaseUrl: props.rapiBaseUrl, localStorageFormDataVersion: props.localStorageFormDataVersion, rapiApiKey: props.rapiApiKey, receiverRequirements: props.receiverRequirements, getReceiverRequirements: props.getReceiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp,
|
|
113
113
|
// legalIdentifier={props.legalIdentifier}
|
|
114
|
-
uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset, defaultPaymentType: props.defaultPaymentType, supportEmail: props.supportEmail, welcomeModalTitle: props.welcomeModalTitle, welcomeModalParagraph: props.welcomeModalParagraph, welcomeModalImageUrl: props.welcomeModalImageUrl }))));
|
|
114
|
+
uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset, defaultPaymentType: props.defaultPaymentType, supportEmail: props.supportEmail, welcomeModalTitle: props.welcomeModalTitle, welcomeModalParagraph: props.welcomeModalParagraph, welcomeModalImageUrl: props.welcomeModalImageUrl, colorPrimary: props.colorPrimary, colorError: props.colorError }))));
|
|
115
115
|
};
|
|
116
116
|
exports.default = CreateInvoice;
|
|
@@ -425,7 +425,6 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
425
425
|
.then(function (submitInvoiceResponse) {
|
|
426
426
|
var _a;
|
|
427
427
|
setNumberOfSuccessfulCalls(numberOfSuccessfulCalls + 1);
|
|
428
|
-
antd_1.message.success(intl.formatMessage(exports.translationMessages.createInvoice_successfullySubmittedInvoiceMsg));
|
|
429
428
|
if (submitInvoiceResponse.status === 201) {
|
|
430
429
|
var response = submitInvoiceResponse.data;
|
|
431
430
|
(0, ApiUtility_1.submitAttachmentIfAnyLeft)((_a = response === null || response === void 0 ? void 0 : response.uniqueId) !== null && _a !== void 0 ? _a : "", attachments, props.mapiBaseUrl, token, intl, 1, setNumberOfSuccessfulCalls);
|
|
@@ -589,7 +588,7 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
589
588
|
];
|
|
590
589
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
591
590
|
react_1.default.createElement(antd_1.Flex, { vertical: true, gap: "middle", style: { alignItems: "center", marginBottom: "50px" } },
|
|
592
|
-
activeStep === items.length ? (react_1.default.createElement(components_1.InvoicePreviewHeader, { form: form })) : (activeStep < items.length && (react_1.default.createElement(antd_1.Steps, { style: { maxWidth: "900px", margin: isMobile ? 0 : "30px 0" }, current: activeStep, initial: 0, labelPlacement: "vertical", items: items, type: isMobile ? "navigation" : "default", size: isMobile ? "small" : "default", direction: "horizontal", responsive: false }))),
|
|
591
|
+
activeStep === items.length ? (react_1.default.createElement(components_1.InvoicePreviewHeader, { form: form, colorPrimary: props.colorPrimary })) : (activeStep < items.length && (react_1.default.createElement(antd_1.Steps, { style: { maxWidth: "900px", margin: isMobile ? 0 : "30px 0" }, current: activeStep, initial: 0, labelPlacement: "vertical", items: items, type: isMobile ? "navigation" : "default", size: isMobile ? "small" : "default", direction: "horizontal", responsive: false }))),
|
|
593
592
|
react_1.default.createElement(antd_1.Layout.Content, null,
|
|
594
593
|
react_1.default.createElement(antd_1.Flex, { style: { width: "100vw", padding: isMobile ? "0 20px" : 0 } },
|
|
595
594
|
react_1.default.createElement(antd_1.Form, __assign({ style: { width: "100%" }, size: "large", onFieldsChange: function () {
|
|
@@ -619,7 +618,7 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
619
618
|
react_1.default.createElement(antd_1.Flex, { vertical: true, style: activeStep !== 2 ? { display: "none" } : {} },
|
|
620
619
|
react_1.default.createElement(components_1.Invoice, { receiverRequirements: props.receiverRequirements, form: form, documentType: "invoice", updateReceiverRequirementsProp: props.updateReceiverRequirementsProp, rapiBaseUrl: props.rapiBaseUrl, legalIdentifier: chosenCustomer.identifier, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifierValidateStatus: referenceIdentifierValidateStatus, chosenCustomer: chosenCustomer, setReferenceIdentifierValidateStatus: setReferenceIdentifierValidateStatus, dueDateMinimumOffset: props.dueDateMinimumOffset, billingLinesMetadata: billingLinesMetadata, outsideVatScope: outsideVatScope, uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, languageString: props.language, isSaveFieldValuesSelected: isSaveFieldValuesSelected, onSaveFieldValuesChange: function () {
|
|
621
620
|
return setIsSaveFieldValuesSelected(!isSaveFieldValuesSelected);
|
|
622
|
-
}, setReferenceIdentifierIsMandatory: setReferenceIdentifierIsMandatory, newLineSaved: newLineSaved, setNewLineSaved: setNewLineSaved })),
|
|
621
|
+
}, setReferenceIdentifierIsMandatory: setReferenceIdentifierIsMandatory, newLineSaved: newLineSaved, setNewLineSaved: setNewLineSaved, colorError: props.colorError })),
|
|
623
622
|
react_1.default.createElement(antd_1.Flex, { vertical: true, style: activeStep !== 3 ? { display: "none" } : {} },
|
|
624
623
|
react_1.default.createElement(components_1.PaymentMethod, { receiverRequirements: props.receiverRequirements, formInstance: form, isSaveFieldValuesSelected: isSaveFieldValuesSelected, onSaveFieldValuesChange: function () {
|
|
625
624
|
return setIsSaveFieldValuesSelected(!isSaveFieldValuesSelected);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.component_header {
|
|
2
|
+
height: 3.3em;
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
border-bottom: solid 1px #d9d9d9;
|
|
5
|
+
border-radius: 4px 4px 0 0;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
padding: 1em 2em;
|
|
10
|
+
}
|
|
11
|
+
.component_header_title {
|
|
12
|
+
font-size: 1.1em;
|
|
13
|
+
}
|
|
14
|
+
.component_header_title > span > i {
|
|
15
|
+
font-size: 20px;
|
|
16
|
+
}
|
|
17
|
+
.header_icon {
|
|
18
|
+
font-size: 1.5em;
|
|
19
|
+
margin-right: 0.75em;
|
|
20
|
+
color: #1890ff;
|
|
21
|
+
}
|
|
22
|
+
.header_right {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: flex-end;
|
|
25
|
+
}
|
|
26
|
+
@media screen and (max-width: 768px) {
|
|
27
|
+
.header_right {
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.header_right > button {
|
|
32
|
+
margin-bottom: unset !important;
|
|
33
|
+
}
|
|
34
|
+
.component_body {
|
|
35
|
+
border-radius: 0 0 4px 4px;
|
|
36
|
+
}
|
|
37
|
+
.component_wrapper {
|
|
38
|
+
align-self: stretch;
|
|
39
|
+
height: 100%;
|
|
40
|
+
background-color: #fff;
|
|
41
|
+
border: solid 1px #d9d9d9;
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
}
|
|
44
|
+
.component_wrapper_padding {
|
|
45
|
+
padding: 1em;
|
|
46
|
+
}
|
|
47
|
+
.umz_noValidationMessage .ant-form-item-explain {
|
|
48
|
+
height: 20px !important;
|
|
49
|
+
visibility: hidden !important;
|
|
50
|
+
}
|
|
51
|
+
/*# sourceMappingURL=index.css.map */
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from "react-intl";
|
|
3
|
-
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
4
|
-
import { FormInstance } from "antd/es/form";
|
|
5
|
-
interface Props extends WrappedComponentProps {
|
|
6
|
-
receiverRequirements: NewReceiverRequirements;
|
|
7
|
-
formInstance: FormInstance;
|
|
8
|
-
outsideVatScope: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const BillingLinesWithIntl: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
11
|
-
forwardedRef?: React.Ref<any> | undefined;
|
|
12
|
-
} & React.RefAttributes<any>> & {
|
|
13
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
14
|
-
};
|
|
15
|
-
export default BillingLinesWithIntl;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
var React = __importStar(require("react"));
|
|
27
|
-
var react_intl_1 = require("react-intl");
|
|
28
|
-
var antd_1 = require("antd");
|
|
29
|
-
var NewNewBillingLines = function (props) {
|
|
30
|
-
return (React.createElement(antd_1.Form.List, { name: ["invoice", "invoiceLines"] }, function (fields, _a) {
|
|
31
|
-
var add = _a.add, remove = _a.remove;
|
|
32
|
-
return (React.createElement(antd_1.Flex, { vertical: true }));
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
var BillingLinesWithIntl = (0, react_intl_1.injectIntl)(NewNewBillingLines);
|
|
36
|
-
exports.default = BillingLinesWithIntl;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
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)));
|
|
File without changes
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import {Card, Col, Flex, FormInstance, Row, theme, Typography} from "antd";
|
|
3
|
-
// import React from "react";
|
|
4
|
-
// import { injectIntl, WrappedComponentProps} from "react-intl";
|
|
5
|
-
// import {translationMessages} from "./index";
|
|
6
|
-
// import {grey} from "@ant-design/colors";
|
|
7
|
-
// import {PartyMetadata} from "../../../../../unimaze-api-clients/src/mapi";
|
|
8
|
-
//
|
|
9
|
-
// interface Props extends WrappedComponentProps {
|
|
10
|
-
// form: FormInstance;
|
|
11
|
-
// chosenCustomer: PartyMetadata;
|
|
12
|
-
// }
|
|
13
|
-
//
|
|
14
|
-
// const InvoicePreviewCustomerSupplierInfo: React.FC<Props> = (props) => {
|
|
15
|
-
// const {token} = theme.useToken();
|
|
16
|
-
//
|
|
17
|
-
// return (
|
|
18
|
-
// <Card
|
|
19
|
-
// bordered={false}
|
|
20
|
-
// style={{backgroundColor: "#F5F5F5"}}
|
|
21
|
-
// title={"LL"
|
|
22
|
-
// // <Row gutter={20}>
|
|
23
|
-
// // <Col span={12}>
|
|
24
|
-
// // <Flex justify="space-between" align="flex-end" style={{fontWeight: 400}}>
|
|
25
|
-
// // <Typography.Text>
|
|
26
|
-
// // {"DSAAA"}
|
|
27
|
-
// // {/*{props.intl.formatMessage(translationMessages.baseInformation_issueDate)}*/}
|
|
28
|
-
// // </Typography.Text>
|
|
29
|
-
// // <Typography.Text type="secondary" style={{fontSize: token.fontSizeSM}}>
|
|
30
|
-
// // {props.form.getFieldValue(["invoice", "issueDate"])?.format("DD.MM.YYYY")}
|
|
31
|
-
// // </Typography.Text>
|
|
32
|
-
// // </Flex>
|
|
33
|
-
// // </Col>
|
|
34
|
-
// // <Col span={12} style={{borderLeft: `1px solid ${grey[0]}`}}>
|
|
35
|
-
// // <Flex justify="space-between" align="flex-end" style={{fontWeight: 400}}>
|
|
36
|
-
// // <Typography.Text>
|
|
37
|
-
// // {props.intl.formatMessage(translationMessages.baseInformation_dueDate)}
|
|
38
|
-
// // </Typography.Text>
|
|
39
|
-
// // <Typography.Text type="secondary" style={{fontSize: token.fontSizeSM}}>
|
|
40
|
-
// // {props.form.getFieldValue(["invoice", "dueDate"])?.format("DD.MM.YYYY")}
|
|
41
|
-
// // </Typography.Text>
|
|
42
|
-
// // </Flex>
|
|
43
|
-
// // </Col>
|
|
44
|
-
// // </Row>
|
|
45
|
-
// }
|
|
46
|
-
// >
|
|
47
|
-
// <Flex vertical gap={"small"}>
|
|
48
|
-
// {/*<Typography.Text style={{fontSize: token.fontSizeHeading4, fontWeight: 500}}>*/}
|
|
49
|
-
// {/* {props.intl.formatMessage(translationMessages.customer_title)}:*/}
|
|
50
|
-
// {/*</Typography.Text>*/}
|
|
51
|
-
// {/*<Typography.Text type="secondary">{props.chosenCustomer.name}</Typography.Text>*/}
|
|
52
|
-
// {/*<Typography.Text type="secondary">*/}
|
|
53
|
-
// {/* {props.intl.formatMessage(translationMessages.customer_identifier)}:{" "}*/}
|
|
54
|
-
// {/* {props.chosenCustomer.identifier}*/}
|
|
55
|
-
// {/*</Typography.Text>*/}
|
|
56
|
-
// {/*{props.chosenCustomer.address?.streetNameAndNumber &&*/}
|
|
57
|
-
// {/* props.chosenCustomer.address?.postalZone &&*/}
|
|
58
|
-
// {/* props.chosenCustomer.address?.city && (*/}
|
|
59
|
-
// {/* <Typography.Text type="secondary">*/}
|
|
60
|
-
// {/* {props.intl.formatMessage(translationMessages.customer_address_streetNameAndNumber)}*/}
|
|
61
|
-
// {/* : {props.chosenCustomer.address.streetNameAndNumber},{" "}*/}
|
|
62
|
-
// {/* {props.chosenCustomer.address.postalZone}{" "}*/}
|
|
63
|
-
// {/* {props.chosenCustomer.address.city}*/}
|
|
64
|
-
// {/* </Typography.Text>*/}
|
|
65
|
-
// {/* )}*/}
|
|
66
|
-
// {/*{props.form.getFieldValue(["invoice", "customer", "locationIdentifier"]) && (*/}
|
|
67
|
-
// {/* <Typography.Text type="secondary">*/}
|
|
68
|
-
// {/* {props.intl.formatMessage(translationMessages.baseInformation_costCenter)}:{" "}*/}
|
|
69
|
-
// {/* {props.form.getFieldValue(["invoice", "customer", "locationIdentifier"])}*/}
|
|
70
|
-
// {/* </Typography.Text>*/}
|
|
71
|
-
// {/*)}*/}
|
|
72
|
-
// {/*<Col span={8} style={{padding: 0}}>*/}
|
|
73
|
-
// {/* <hr/>*/}
|
|
74
|
-
// {/*</Col>*/}
|
|
75
|
-
// {/*<Typography.Text style={{fontSize: token.fontSizeHeading4, fontWeight: 500}}>*/}
|
|
76
|
-
// {/* {props.intl.formatMessage(translationMessages.supplier_title)}:*/}
|
|
77
|
-
// {/*</Typography.Text>*/}
|
|
78
|
-
// {/*<Typography.Text type="secondary">*/}
|
|
79
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "name"])}*/}
|
|
80
|
-
// {/*</Typography.Text>*/}
|
|
81
|
-
// {/*<Typography.Text type="secondary">*/}
|
|
82
|
-
// {/* {props.intl.formatMessage(translationMessages.supplier_identifier)}:{" "}*/}
|
|
83
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "identifier"])}*/}
|
|
84
|
-
// {/*</Typography.Text>*/}
|
|
85
|
-
// {/*<Typography.Text type="secondary">*/}
|
|
86
|
-
// {/* {props.intl.formatMessage(translationMessages.supplier_address_streetNameAndNumber)}*/}
|
|
87
|
-
// {/* :{" "}*/}
|
|
88
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "address", "streetNameAndNumber",])}*/}
|
|
89
|
-
// {/* , {props.form.getFieldValue(["invoice", "supplier", "address", "postalZone"])}{" "}*/}
|
|
90
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "address", "city"])}*/}
|
|
91
|
-
// {/*</Typography.Text>*/}
|
|
92
|
-
// {/*{props.form.getFieldValue(["invoice", "supplier", "contact", "telephone"]) && (*/}
|
|
93
|
-
// {/* <Typography.Text type="secondary">*/}
|
|
94
|
-
// {/* {props.intl.formatMessage(translationMessages.supplier_contact_phoneNumber)}:*/}
|
|
95
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "contact", "telephone"])}*/}
|
|
96
|
-
// {/* </Typography.Text>*/}
|
|
97
|
-
// {/*)}*/}
|
|
98
|
-
// {/*{props.form.getFieldValue(["invoice", "supplier", "contact", "electronicMail"]) && (*/}
|
|
99
|
-
// {/* <Typography.Text type="secondary">*/}
|
|
100
|
-
// {/* {props.form.getFieldValue(["invoice", "supplier", "contact", "electronicMail"])}*/}
|
|
101
|
-
// {/* </Typography.Text>*/}
|
|
102
|
-
// {/*)}*/}
|
|
103
|
-
// </Flex>
|
|
104
|
-
// </Card>
|
|
105
|
-
// );
|
|
106
|
-
// };
|
|
107
|
-
//
|
|
108
|
-
// export default injectIntl(InvoicePreviewCustomerSupplierInfo);
|
|
109
|
-
//
|
|
File without changes
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import {Card, Flex, FormInstance, Typography} from "antd";
|
|
3
|
-
// import React from "react";
|
|
4
|
-
// import { injectIntl, WrappedComponentProps} from "react-intl";
|
|
5
|
-
// import {translationMessages as invoicePreviewTranslations} from "./index";
|
|
6
|
-
// import {translationMessages as paymentMethod_translationMessages} from "../payment-method";
|
|
7
|
-
// import {PaymentMeansType} from "../../../../../unimaze-api-clients/src/mapi";
|
|
8
|
-
// import {getFieldRequirements} from "../../../utils/RequirementsUtility";
|
|
9
|
-
// import {AvailableFields} from "../../types/ReceiverRequirements";
|
|
10
|
-
// import {NewReceiverRequirements} from "../../types/NewReceiverRequirements";
|
|
11
|
-
//
|
|
12
|
-
// interface Props extends WrappedComponentProps {
|
|
13
|
-
// form: FormInstance;
|
|
14
|
-
// receiverRequirements: NewReceiverRequirements;
|
|
15
|
-
// }
|
|
16
|
-
//
|
|
17
|
-
// const InvoicePreviewPaymentInfo: React.FC<Props> = (props) => {
|
|
18
|
-
//
|
|
19
|
-
// const defaultPaymentMethods = [
|
|
20
|
-
// {
|
|
21
|
-
// key: PaymentMeansType.NotSpecified,
|
|
22
|
-
// name: props.intl.formatMessage(paymentMethod_translationMessages.paymentMethod_labels_methods_undefined),
|
|
23
|
-
// },
|
|
24
|
-
// {
|
|
25
|
-
// key: PaymentMeansType.MutuallyAgreed,
|
|
26
|
-
// name: props.intl.formatMessage(
|
|
27
|
-
// paymentMethod_translationMessages.paymentMethod_labels_methods_mutuallyAgreed
|
|
28
|
-
// ),
|
|
29
|
-
// },
|
|
30
|
-
// {
|
|
31
|
-
// key: PaymentMeansType.DomesticTransfer,
|
|
32
|
-
// name: props.intl.formatMessage(
|
|
33
|
-
// paymentMethod_translationMessages.paymentMethod_labels_methods_domesticTransfer
|
|
34
|
-
// ),
|
|
35
|
-
// },
|
|
36
|
-
// {
|
|
37
|
-
// key: PaymentMeansType.DomesticClaim,
|
|
38
|
-
// name: props.intl.formatMessage(
|
|
39
|
-
// paymentMethod_translationMessages.paymentMethod_labels_methods_domesticClaim
|
|
40
|
-
// ),
|
|
41
|
-
// },
|
|
42
|
-
// ];
|
|
43
|
-
//
|
|
44
|
-
// const getPaymentMeansValue = (paymentMeansType: PaymentMeansType) => {
|
|
45
|
-
// const paymentMeansTypes = getFieldRequirements(props.receiverRequirements, AvailableFields["paymentMeans.type"]);
|
|
46
|
-
//
|
|
47
|
-
// if (
|
|
48
|
-
// paymentMeansTypes &&
|
|
49
|
-
// paymentMeansTypes.hasOwnProperty("properties") &&
|
|
50
|
-
// paymentMeansTypes.properties.hasOwnProperty("values") &&
|
|
51
|
-
// paymentMeansTypes.properties.values
|
|
52
|
-
// ) {
|
|
53
|
-
// const paymentMeansValue = paymentMeansTypes.properties.values.find(
|
|
54
|
-
// (value: any) => value.key === paymentMeansType
|
|
55
|
-
// );
|
|
56
|
-
// return paymentMeansValue?.name;
|
|
57
|
-
// } else {
|
|
58
|
-
// const paymentMeansValue = defaultPaymentMethods.find((value: any) => value.key === paymentMeansType);
|
|
59
|
-
// return paymentMeansValue?.name;
|
|
60
|
-
// }
|
|
61
|
-
// };
|
|
62
|
-
//
|
|
63
|
-
// return (
|
|
64
|
-
// <Card bordered={false} style={{backgroundColor: "#F5F5F5"}} size="small">
|
|
65
|
-
// <Flex vertical style={{padding: "0 12px"}} gap={"small"}>
|
|
66
|
-
// <Typography.Text style={{fontWeight: 700}}>
|
|
67
|
-
// {props.intl.formatMessage(invoicePreviewTranslations.invoicePreview_paymentInfoTitle)}
|
|
68
|
-
// </Typography.Text>
|
|
69
|
-
// <Flex vertical>
|
|
70
|
-
// <Typography.Text type="secondary">
|
|
71
|
-
// {props.form.getFieldValue(["invoice", "supplier", "name"])} Kt:{" "}
|
|
72
|
-
// {props.form.getFieldValue(["invoice", "supplier", "identifier"])}
|
|
73
|
-
// </Typography.Text>
|
|
74
|
-
// <Typography.Text type="secondary">
|
|
75
|
-
// {getPaymentMeansValue(props.form.getFieldValue(["invoice", "paymentMeans", "type"]))}
|
|
76
|
-
// </Typography.Text>
|
|
77
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer"]) && (
|
|
78
|
-
// <>
|
|
79
|
-
// <Typography.Text type="secondary">
|
|
80
|
-
// {props.intl.formatMessage(paymentMethod_translationMessages.paymentMethod_labels_domesticTransfer_accountNo)}:{" "}
|
|
81
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "bankNumber",])}
|
|
82
|
-
// -
|
|
83
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "accountTypeNumber",])}
|
|
84
|
-
// -
|
|
85
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "accountNumber",])}
|
|
86
|
-
// </Typography.Text>
|
|
87
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "paymentIdentifier",]) && (
|
|
88
|
-
// <Typography.Text type="secondary">
|
|
89
|
-
// {props.intl.formatMessage(paymentMethod_translationMessages.paymentMethod_labels_domesticTransfer_paymentReference)}
|
|
90
|
-
// :{" "}
|
|
91
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticTransfer", "paymentIdentifier",])}
|
|
92
|
-
// </Typography.Text>
|
|
93
|
-
// )}
|
|
94
|
-
// </>
|
|
95
|
-
// )}
|
|
96
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim"]) && (
|
|
97
|
-
// <Typography.Text type="secondary">
|
|
98
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim", "bankNumber",])}
|
|
99
|
-
// -66-
|
|
100
|
-
// {props.form.getFieldValue(["invoice", "paymentMeans", "domesticClaim", "accountNumber",])}
|
|
101
|
-
// </Typography.Text>
|
|
102
|
-
// )}
|
|
103
|
-
// </Flex>
|
|
104
|
-
// </Flex>
|
|
105
|
-
// </Card>
|
|
106
|
-
// );
|
|
107
|
-
// };
|
|
108
|
-
//
|
|
109
|
-
// export default injectIntl(InvoicePreviewPaymentInfo);
|
|
110
|
-
//
|