@unimaze/billing 0.19.2 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/components/billing-lines/NewBillingLines.js +2 -0
- package/lib/common/components/customer/CustomerContact.d.ts +13 -0
- package/lib/common/components/customer/CustomerContact.js +13 -0
- package/lib/common/components/customer/CustomerContactName.d.ts +15 -0
- package/lib/common/components/customer/CustomerContactName.js +37 -0
- package/lib/common/components/customer/index.js +4 -1
- package/lib/common/components/payment-method/index.js +1 -0
- package/lib/common/types/CommonProps.d.ts +2 -0
- package/lib/create-invoice/IntlLoader.js +1 -1
- package/lib/create-invoice/index.d.ts +1 -1
- package/lib/create-invoice/index.js +5 -1
- package/lib/style/index.css +50 -50
- package/lib/translations/locales/is.json +1 -0
- package/lib/translations/locales.d.ts +1 -0
- package/lib/utils/BillingLineUtility.d.ts +1 -1
- package/lib/utils/ConversionUtility.js +7 -0
- package/package.json +2 -2
|
@@ -89,6 +89,8 @@ var BillingLines = function (props) {
|
|
|
89
89
|
return outsideVatScope;
|
|
90
90
|
case mapi_1.TaxCategoryTypeEnum.OutsideTaxScope:
|
|
91
91
|
return !outsideVatScope;
|
|
92
|
+
default:
|
|
93
|
+
return true;
|
|
92
94
|
}
|
|
93
95
|
};
|
|
94
96
|
return (react_1.default.createElement(antd_1.Form.List, { name: ["invoice", "invoiceLines"] }, function (fields, _a) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { InjectedIntlProps } from "react-intl";
|
|
3
|
+
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
4
|
+
import { FormInstance } from "antd/es/form";
|
|
5
|
+
interface CustomerContactProps extends InjectedIntlProps {
|
|
6
|
+
receiverRequirements: NewReceiverRequirements;
|
|
7
|
+
updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void;
|
|
8
|
+
rapiBaseUrl: string;
|
|
9
|
+
formInstance: FormInstance;
|
|
10
|
+
legalIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const CustomerContact: React.FC<CustomerContactProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
+
if (mod && mod.__esModule) return mod;
|
|
4
|
+
var result = {};
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
7
|
+
return result;
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var React = __importStar(require("react"));
|
|
11
|
+
exports.CustomerContact = function (props) {
|
|
12
|
+
return (React.createElement("div", null));
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { InjectedIntlProps } from "react-intl";
|
|
3
|
+
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
4
|
+
import { FormInstance } from "antd/es/form";
|
|
5
|
+
interface CustomerContactNameProps extends InjectedIntlProps {
|
|
6
|
+
receiverRequirements: NewReceiverRequirements;
|
|
7
|
+
updateReceiverRequirementsProp: (receiverRequirements: NewReceiverRequirements) => void;
|
|
8
|
+
rapiBaseUrl: string;
|
|
9
|
+
formInstance: FormInstance;
|
|
10
|
+
legalIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.ComponentClass<Pick<CustomerContactNameProps, "formInstance" | "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl" | "legalIdentifier">, any> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<CustomerContactNameProps & InjectedIntlProps>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
+
if (mod && mod.__esModule) return mod;
|
|
4
|
+
var result = {};
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
7
|
+
return result;
|
|
8
|
+
};
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
var React = __importStar(require("react"));
|
|
14
|
+
var react_intl_1 = require("react-intl");
|
|
15
|
+
var react_1 = require("react");
|
|
16
|
+
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
17
|
+
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
18
|
+
var form_item_1 = __importDefault(require("../form-item"));
|
|
19
|
+
var translationMessages = {
|
|
20
|
+
baseInformation_customerContactName: {
|
|
21
|
+
id: "baseInformation_customerContactName",
|
|
22
|
+
defaultMessage: "Contact name",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
var CustomerContactName = function (props) {
|
|
26
|
+
var _a = react_1.useState(""), customerContactNameHandlingValidationStatus = _a[0], setCustomerContactNameHandlingValidationStatus = _a[1];
|
|
27
|
+
var _b = react_1.useState({}), customerContactNameFieldProps = _b[0], setCustomerContactNameFieldProps = _b[1];
|
|
28
|
+
var _c = react_1.useState(false), loadingCustomerContactNameValues = _c[0], setLoadingCustomerContactNameValues = _c[1];
|
|
29
|
+
var customerContactNameFieldDefinition = RequirementsUtility_1.getFieldRequirements(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["customer.contact.name"]);
|
|
30
|
+
if (customerContactNameFieldDefinition) {
|
|
31
|
+
return (React.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["customer.contact.name"], defaultLabel: props.intl.formatMessage(translationMessages.baseInformation_customerContactName), defaultIsRequired: false, fieldName: ["invoice", "customer", "contact", "name"], validateStatus: customerContactNameHandlingValidationStatus }, RequirementsUtility_1.getInput(customerContactNameFieldDefinition, ["invoice", "customer", "contact", "name"], "handleCostCenterValidation", props.legalIdentifier, props.formInstance, props.rapiBaseUrl, props.receiverRequirements, props.updateReceiverRequirementsProp, setCustomerContactNameFieldProps, customerContactNameFieldProps, setLoadingCustomerContactNameValues, loadingCustomerContactNameValues, setCustomerContactNameHandlingValidationStatus, true)));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.default = react_intl_1.injectIntl(CustomerContactName);
|
|
@@ -23,6 +23,7 @@ var react_intl_1 = require("react-intl");
|
|
|
23
23
|
var ConversionUtility_1 = require("../../../utils/ConversionUtility");
|
|
24
24
|
var formLayout_1 = require("../../consts/formLayout");
|
|
25
25
|
var CostCenter_1 = __importDefault(require("./CostCenter"));
|
|
26
|
+
var CustomerContactName_1 = __importDefault(require("./CustomerContactName"));
|
|
26
27
|
var translationMessages = react_intl_1.defineMessages({
|
|
27
28
|
customer_title: {
|
|
28
29
|
id: "customer_title",
|
|
@@ -93,7 +94,9 @@ var Customer = function (props) {
|
|
|
93
94
|
chosenCustomer.address.countryCode)
|
|
94
95
|
: null),
|
|
95
96
|
chosenCustomer && chosenCustomer.identifier &&
|
|
96
|
-
react_1.default.createElement(
|
|
97
|
+
react_1.default.createElement(react_1.default.Fragment, null,
|
|
98
|
+
react_1.default.createElement(CostCenter_1.default, { receiverRequirements: props.receiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp, rapiBaseUrl: props.rapiBaseUrl, legalIdentifier: chosenCustomer.identifier, formInstance: props.formInstance }),
|
|
99
|
+
react_1.default.createElement(CustomerContactName_1.default, { receiverRequirements: props.receiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp, rapiBaseUrl: props.rapiBaseUrl, legalIdentifier: chosenCustomer.identifier, formInstance: props.formInstance }))));
|
|
97
100
|
};
|
|
98
101
|
var CustomerIntl = react_intl_1.injectIntl(Customer);
|
|
99
102
|
exports.default = CustomerIntl;
|
|
@@ -108,6 +108,7 @@ var PaymentMethod = function (props) {
|
|
|
108
108
|
}] },
|
|
109
109
|
react_1.default.createElement(antd_1.Select, { placeholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_accountType), dropdownMatchSelectWidth: false },
|
|
110
110
|
react_1.default.createElement(antd_1.Select.Option, { value: "05" }, "05"),
|
|
111
|
+
react_1.default.createElement(antd_1.Select.Option, { value: "14" }, "14"),
|
|
111
112
|
react_1.default.createElement(antd_1.Select.Option, { value: "15" }, "15"),
|
|
112
113
|
react_1.default.createElement(antd_1.Select.Option, { value: "26" }, "26")))),
|
|
113
114
|
react_1.default.createElement(antd_1.Col, { span: 12 },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NewReceiverRequirements } from "./NewReceiverRequirements";
|
|
2
|
+
import { PaymentMeansMetadataTypeEnum } from "@unimaze/api-clients/lib/mapi/models";
|
|
2
3
|
export interface CommonProps {
|
|
3
4
|
language?: LanguageProp;
|
|
4
5
|
mapiBaseUrl: string;
|
|
@@ -13,5 +14,6 @@ export interface CommonProps {
|
|
|
13
14
|
};
|
|
14
15
|
rapiApiKey: string;
|
|
15
16
|
dueDateMinimumOffset: number;
|
|
17
|
+
defaultPaymentType?: PaymentMeansMetadataTypeEnum;
|
|
16
18
|
}
|
|
17
19
|
export declare type LanguageProp = "en" | "is" | undefined;
|
|
@@ -46,6 +46,6 @@ var CreateInvoice = function (props) {
|
|
|
46
46
|
react_1.default.createElement(react_intl_1.IntlProvider, { locale: languageString, defaultLocale: "is", key: languageString, messages: locales_1.default[languageString] },
|
|
47
47
|
react_1.default.createElement(index_1.default, { customers: props.customers, language: languageString, mapiBaseUrl: props.mapiBaseUrl, rapiBaseUrl: props.rapiBaseUrl, rapiApiKey: props.rapiApiKey, receiverRequirements: props.receiverRequirements, getReceiverRequirements: props.getReceiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp,
|
|
48
48
|
// legalIdentifier={props.legalIdentifier}
|
|
49
|
-
uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset }))));
|
|
49
|
+
uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset, defaultPaymentType: props.defaultPaymentType }))));
|
|
50
50
|
};
|
|
51
51
|
exports.default = CreateInvoice;
|
|
@@ -7,7 +7,7 @@ interface Props extends CommonProps, InjectedIntlProps {
|
|
|
7
7
|
referenceIdentifiersHelpText?: string;
|
|
8
8
|
referenceIdentifiersLabelText?: string;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.ComponentClass<Pick<Props, "uploadSizeLimit" | "attachmentTooltipText" | "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl" | "referenceIdentifiersLabelText" | "referenceIdentifiersHelpText" | "dueDateMinimumOffset" | "customers" | "rapiApiKey" | "language" | "mapiBaseUrl" | "getReceiverRequirements">, any> & {
|
|
10
|
+
declare const _default: React.ComponentClass<Pick<Props, "uploadSizeLimit" | "attachmentTooltipText" | "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl" | "referenceIdentifiersLabelText" | "referenceIdentifiersHelpText" | "dueDateMinimumOffset" | "customers" | "rapiApiKey" | "language" | "mapiBaseUrl" | "getReceiverRequirements" | "defaultPaymentType">, any> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -34,6 +34,7 @@ var uuid_1 = require("uuid");
|
|
|
34
34
|
var ApiUtility_1 = require("../utils/ApiUtility");
|
|
35
35
|
var ConversionUtility_1 = require("../utils/ConversionUtility");
|
|
36
36
|
var reaptcha_1 = __importDefault(require("reaptcha"));
|
|
37
|
+
var models_1 = require("@unimaze/api-clients/lib/mapi/models");
|
|
37
38
|
var translationMessages = react_intl_1.defineMessages({
|
|
38
39
|
createInvoice_addDocumentLineMsg: {
|
|
39
40
|
id: "createInvoice_addDocumentLineMsg",
|
|
@@ -338,6 +339,9 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
338
339
|
setBillingLinesMetadata(mappedBillingLines);
|
|
339
340
|
}
|
|
340
341
|
};
|
|
342
|
+
var getDefaultPaymentType = function (defaultPaymentType) {
|
|
343
|
+
return defaultPaymentType || models_1.PaymentMeansMetadataTypeEnum.DomesticClaim;
|
|
344
|
+
};
|
|
341
345
|
return (react_1.default.createElement(antd_1.Spin, { spinning: submitting },
|
|
342
346
|
react_1.default.createElement(antd_1.Form, __assign({ onFieldsChange: function () {
|
|
343
347
|
if (captchaVerified && recaptchaRef) {
|
|
@@ -357,7 +361,7 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
357
361
|
countryCode: "IS"
|
|
358
362
|
} }),
|
|
359
363
|
paymentMeans: {
|
|
360
|
-
type:
|
|
364
|
+
type: getDefaultPaymentType(props.defaultPaymentType),
|
|
361
365
|
},
|
|
362
366
|
referenceIdentifiers: [
|
|
363
367
|
{}
|
package/lib/style/index.css
CHANGED
|
@@ -1,51 +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
|
-
}
|
|
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
51
|
/*# sourceMappingURL=index.css.map */
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"baseInformation_orderReferenceLabel_helpText": "Aðeins má nota númer raunverulegrar pöntunar. Ef engin pöntun er til, verður að nota tilvísun kaupanda.",
|
|
22
22
|
"baseInformation_notes": "Athugasemdir",
|
|
23
23
|
"baseInformation_currencyCode": "Gjaldmiðill",
|
|
24
|
+
"baseInformation_customerContactName": "Nafn tengiliðs",
|
|
24
25
|
"baseInformation_costCenter": "Kostnaðarstöð",
|
|
25
26
|
"baseInformation_accountingCostLabel": "Bókunarlykill",
|
|
26
27
|
"baseInformation_accountingCostLabel_helpText": "Bókunarlykill er kóti gefinn upp af kaupanda, gegnum tölvupóst eða síma eða fenginn beint úr pöntun sem tengist þessum reikningi",
|
|
@@ -23,6 +23,7 @@ declare const _default: {
|
|
|
23
23
|
"baseInformation_orderReferenceLabel_helpText": string;
|
|
24
24
|
"baseInformation_notes": string;
|
|
25
25
|
"baseInformation_currencyCode": string;
|
|
26
|
+
"baseInformation_customerContactName": string;
|
|
26
27
|
"baseInformation_costCenter": string;
|
|
27
28
|
"baseInformation_accountingCostLabel": string;
|
|
28
29
|
"baseInformation_accountingCostLabel_helpText": string;
|
|
@@ -8,4 +8,4 @@ export declare const calculateTaxableAmount: (discountValue: string | null | und
|
|
|
8
8
|
export declare const calculateTaxAmount: (taxableAmount: number, taxPercentage: number) => number;
|
|
9
9
|
export declare const calculateTaxPercentage: (taxCategoryType: TaxCategoryTypeEnum | undefined) => number;
|
|
10
10
|
export declare const generateTaxCategoryLabel: (taxCategoryType: TaxCategoryTypeEnum | undefined, taxCategoryTypeTranslated: string) => string;
|
|
11
|
-
export declare const getCorrectInputNode: (dataIdx: "key" | "name" | "description" | "referenceIdentifiers" | "accountingCost" | "notes" | "billingPeriod" | "unitOfMeasure" | "taxCategoryType" | "itemNo" | "quantity" | "unitPriceAmount" | "taxableAmount" | "taxAmount" | "taxPercentage" | "discountValue" | "discountReason" | "buyersItemNo" | "standardItemNo" | "originCountryCode" | "commodityClassification" | "additionalItemProperties" | "orderLineReference", intl: InjectedIntl) => React.ReactChild;
|
|
11
|
+
export declare const getCorrectInputNode: (dataIdx: "key" | "name" | "description" | "referenceIdentifiers" | "accountingCost" | "notes" | "billingPeriod" | "unitOfMeasure" | "taxCategoryType" | "itemNo" | "quantity" | "unitPriceAmount" | "taxableAmount" | "taxAmount" | "taxPercentage" | "discountValue" | "discountReason" | "chargeValue" | "chargeReason" | "buyersItemNo" | "standardItemNo" | "originCountryCode" | "commodityClassification" | "additionalItemProperties" | "orderLineReference", intl: InjectedIntl) => React.ReactChild;
|
|
@@ -127,6 +127,7 @@ var convertToInvoiceMetadataInput = function (formValues, invoiceLinesWithCalcul
|
|
|
127
127
|
contact: {
|
|
128
128
|
electronicMail: chosenCustomer.contact.electronicMail,
|
|
129
129
|
telephone: chosenCustomer.contact.telephone,
|
|
130
|
+
name: invoice.customer.contact && invoice.customer.contact.name ? invoice.customer.contact.name : undefined,
|
|
130
131
|
},
|
|
131
132
|
locationIdentifier: invoice.customer.locationIdentifier,
|
|
132
133
|
},
|
|
@@ -159,6 +160,12 @@ var convertToInvoiceMetadataInput = function (formValues, invoiceLinesWithCalcul
|
|
|
159
160
|
referenceIdentifiers: referenceIdentifiers,
|
|
160
161
|
documentReferences: documentReferences,
|
|
161
162
|
orderReference: orderReference,
|
|
163
|
+
documentDescriptions: [
|
|
164
|
+
{
|
|
165
|
+
identifier: "UNIMAZE-BILLING-WEB",
|
|
166
|
+
description: location.hostname,
|
|
167
|
+
}
|
|
168
|
+
],
|
|
162
169
|
}
|
|
163
170
|
};
|
|
164
171
|
if (resp.invoice && resp.invoice.delivery && resp.invoice.delivery === {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unimaze/billing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@ant-design/compatible": "latest",
|
|
12
|
-
"@unimaze/api-clients": "1.
|
|
12
|
+
"@unimaze/api-clients": "3.1.0",
|
|
13
13
|
"antd-mask-input": "^0.1.13",
|
|
14
14
|
"react-hot-loader": "^4.12.20",
|
|
15
15
|
"react-intl": "2.9.0",
|