@unimaze/billing 0.17.0 → 0.18.0
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/types/CommonProps.d.ts +0 -1
- package/lib/create-credit-note/index.js +1 -3
- package/lib/create-invoice/IntlLoader.js +3 -1
- package/lib/create-invoice/index.d.ts +1 -1
- package/lib/create-invoice/index.js +2 -2
- package/lib/translations/locales/is.json +1 -0
- package/lib/translations/locales.d.ts +1 -0
- package/package.json +1 -1
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
require("../style/index.css");
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var antd_1 = require("antd");
|
|
20
|
-
var components_1 = require("../common/components");
|
|
21
20
|
// const [createCorrectWithCreditRequest, setCreateCorrectWithCreditRequest] = useState<CreateCorrectWithCreditRequest>(
|
|
22
21
|
// {
|
|
23
22
|
// conversationIdentifier: "test",
|
|
@@ -54,8 +53,7 @@ var CreateInvoice = function (props) {
|
|
|
54
53
|
react_1.default.createElement(antd_1.Row, { gutter: [16, 16] },
|
|
55
54
|
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } }),
|
|
56
55
|
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } }),
|
|
57
|
-
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 8 } },
|
|
58
|
-
react_1.default.createElement(components_1.BaseInformation, { receiverRequirements: props.receiverRequirements, form: form, documentType: "creditNote", updateReceiverRequirementsProp: props.updateReceiverRequirementsProp, rapiBaseUrl: props.rapiBaseUrl, legalIdentifier: props.legalIdentifier, referenceIdentifierValidateStatus: referenceIdentifierValidateStatus, setReferenceIdentifierValidateStatus: setReferenceIdentifierValidateStatus, dueDateMinimumOffset: props.dueDateMinimumOffset })),
|
|
56
|
+
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 8 } }),
|
|
59
57
|
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 }, xl: { span: 16 } }),
|
|
60
58
|
react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 }, xl: { span: 24 } }),
|
|
61
59
|
react_1.default.createElement(antd_1.Col, { span: 24 },
|
|
@@ -44,6 +44,8 @@ var CreateInvoice = function (props) {
|
|
|
44
44
|
react_intl_1.addLocaleData(en_1.default.concat(is_1.default));
|
|
45
45
|
return (react_1.default.createElement(antd_1.ConfigProvider, { locale: antLocale, componentSize: "small" },
|
|
46
46
|
react_1.default.createElement(react_intl_1.IntlProvider, { locale: languageString, defaultLocale: "is", key: languageString, messages: locales_1.default[languageString] },
|
|
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,
|
|
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
|
+
// legalIdentifier={props.legalIdentifier}
|
|
49
|
+
uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset }))));
|
|
48
50
|
};
|
|
49
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" | "
|
|
10
|
+
declare const _default: React.ComponentClass<Pick<Props, "uploadSizeLimit" | "attachmentTooltipText" | "receiverRequirements" | "updateReceiverRequirementsProp" | "rapiBaseUrl" | "referenceIdentifiersLabelText" | "referenceIdentifiersHelpText" | "dueDateMinimumOffset" | "customers" | "rapiApiKey" | "language" | "mapiBaseUrl" | "getReceiverRequirements">, any> & {
|
|
11
11
|
WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -137,11 +137,11 @@ var CreateInvoiceConstructor = function (props) {
|
|
|
137
137
|
react_1.useEffect(function () {
|
|
138
138
|
if (supplierEmailValue) {
|
|
139
139
|
form.validateFields([["invoice", "supplier", "contact", "electronicMail"]])
|
|
140
|
-
.then(function (
|
|
140
|
+
.then(function () {
|
|
141
141
|
setSendCopyDisabled(!supplierEmailValue);
|
|
142
142
|
setSendCopy(true);
|
|
143
143
|
})
|
|
144
|
-
.catch(function (
|
|
144
|
+
.catch(function () {
|
|
145
145
|
setSendCopyDisabled(true);
|
|
146
146
|
setSendCopy(false);
|
|
147
147
|
});
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"baseInformation_costCenter": "Kostnaðarstöð",
|
|
25
25
|
"baseInformation_accountingCostLabel": "Bókunarlykill",
|
|
26
26
|
"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",
|
|
27
|
+
"baseInformation_projectReferenceLabel": "Verknúmer",
|
|
27
28
|
"billingCalculations_labels_TaxAmountWithoutVat": "Samtals án VSK",
|
|
28
29
|
"billingCalculations_labels_TotalVatAmount": "Samtals VSK upphæð",
|
|
29
30
|
"billingCalculations_labels_TotalAmountWithVat": "Samtals með VSK",
|
|
@@ -26,6 +26,7 @@ declare const _default: {
|
|
|
26
26
|
"baseInformation_costCenter": string;
|
|
27
27
|
"baseInformation_accountingCostLabel": string;
|
|
28
28
|
"baseInformation_accountingCostLabel_helpText": string;
|
|
29
|
+
"baseInformation_projectReferenceLabel": string;
|
|
29
30
|
"billingCalculations_labels_TaxAmountWithoutVat": string;
|
|
30
31
|
"billingCalculations_labels_TotalVatAmount": string;
|
|
31
32
|
"billingCalculations_labels_TotalAmountWithVat": string;
|