@unimaze/billing 0.8.3-rc.1 → 0.9.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/components/base-information/ReferenceIdentifiers.d.ts +3 -1
- package/lib/common/components/base-information/ReferenceIdentifiers.js +20 -15
- package/lib/common/components/base-information/index.d.ts +3 -1
- package/lib/common/components/base-information/index.js +11 -8
- package/lib/common/components/billing-lines/BillingTaxSummary.js +4 -0
- package/lib/common/components/billing-lines/NewBillingLines.d.ts +2 -2
- package/lib/common/components/billing-lines/NewBillingLines.js +2 -1
- package/lib/common/components/billing-lines/index.d.ts +3 -3
- package/lib/common/components/editable-cell/index.d.ts +1 -1
- package/lib/common/components/editable-cell/index.js +5 -1
- package/lib/common/components/form-item/index.js +3 -2
- package/lib/common/components/payment-method/index.d.ts +1 -1
- package/lib/common/components/payment-method/index.js +106 -81
- package/lib/common/components/supplier/index.js +15 -12
- package/lib/common/types/BillingLineMetadataOverride.d.ts +1 -1
- package/lib/common/types/CommonProps.d.ts +1 -0
- package/lib/create-invoice/IntlLoader.d.ts +2 -0
- package/lib/create-invoice/IntlLoader.js +1 -1
- package/lib/create-invoice/index.d.ts +3 -1
- package/lib/create-invoice/index.js +20 -8
- package/lib/translations/locales/is.json +12 -8
- package/lib/translations/locales.d.ts +6 -2
- package/lib/utils/ApiUtility.d.ts +2 -1
- package/lib/utils/ApiUtility.js +3 -3
- package/lib/utils/BillingLineUtility.d.ts +1 -1
- package/lib/utils/BillingLineUtility.js +3 -3
- package/lib/utils/RequirementsUtility.d.ts +1 -0
- package/lib/utils/RequirementsUtility.js +14 -0
- package/package.json +2 -2
- package/lib/example/src/index.d.ts +0 -1
- package/lib/src/common/components/attachments/Attachment.d.ts +0 -18
- package/lib/src/common/components/attachments/index.d.ts +0 -6
- package/lib/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -18
- package/lib/src/common/components/base-information/index.d.ts +0 -13
- package/lib/src/common/components/billing-lines/BillingCalculations.d.ts +0 -11
- package/lib/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -10
- package/lib/src/common/components/billing-lines/index.d.ts +0 -28
- package/lib/src/common/components/component-container/Content.d.ts +0 -7
- package/lib/src/common/components/component-container/Header.d.ts +0 -9
- package/lib/src/common/components/component-container/index.d.ts +0 -11
- package/lib/src/common/components/customer/index.d.ts +0 -18
- package/lib/src/common/components/delivery-location/index.d.ts +0 -10
- package/lib/src/common/components/editable-cell/index.d.ts +0 -15
- package/lib/src/common/components/editable-row/index.d.ts +0 -5
- package/lib/src/common/components/form-item/index.d.ts +0 -28
- package/lib/src/common/components/index.d.ts +0 -10
- package/lib/src/common/components/payment-method/index.d.ts +0 -11
- package/lib/src/common/components/payment-method/paymentMethodForConversion.d.ts +0 -9
- package/lib/src/common/components/supplier/index.d.ts +0 -12
- package/lib/src/common/consts/formLayout.d.ts +0 -74
- package/lib/src/common/consts/validationRules.d.ts +0 -6
- package/lib/src/common/types/ReceiverRequirements.d.ts +0 -80
- package/lib/src/create-invoice/IntlLoader.d.ts +0 -14
- package/lib/src/create-invoice/index.d.ts +0 -11
- package/lib/src/translations/locales.d.ts +0 -142
- package/lib/src/utils/ApiUtility.d.ts +0 -21
- package/lib/src/utils/BillingLineUtility.d.ts +0 -10
- package/lib/src/utils/ConversionUtility.d.ts +0 -8
- package/lib/src/utils/IntlUtility.d.ts +0 -4
- package/lib/src/utils/RequirementsUtility.d.ts +0 -6
- package/lib/src/utils/index.d.ts +0 -2
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
declare const formItemLayout: {
|
|
2
|
-
labelCol: {
|
|
3
|
-
xs: {
|
|
4
|
-
span: number;
|
|
5
|
-
};
|
|
6
|
-
sm: {
|
|
7
|
-
span: number;
|
|
8
|
-
};
|
|
9
|
-
md: {
|
|
10
|
-
span: number;
|
|
11
|
-
};
|
|
12
|
-
lg: {
|
|
13
|
-
span: number;
|
|
14
|
-
};
|
|
15
|
-
xxl: {
|
|
16
|
-
span: number;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
wrapperCol: {
|
|
20
|
-
xs: {
|
|
21
|
-
span: number;
|
|
22
|
-
};
|
|
23
|
-
sm: {
|
|
24
|
-
span: number;
|
|
25
|
-
};
|
|
26
|
-
md: {
|
|
27
|
-
span: number;
|
|
28
|
-
};
|
|
29
|
-
lg: {
|
|
30
|
-
span: number;
|
|
31
|
-
};
|
|
32
|
-
xxl: {
|
|
33
|
-
span: number;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
declare const formItemVerticalLayout: {
|
|
38
|
-
labelCol: {
|
|
39
|
-
span: number;
|
|
40
|
-
};
|
|
41
|
-
wrapperCol: {
|
|
42
|
-
span: number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
declare const fullWidthInput: {
|
|
46
|
-
wrapperCol: {
|
|
47
|
-
span: number;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
declare const formItemLayoutWithOutLabel: {
|
|
51
|
-
wrapperCol: {
|
|
52
|
-
xs: {
|
|
53
|
-
span: number;
|
|
54
|
-
offset: number;
|
|
55
|
-
};
|
|
56
|
-
sm: {
|
|
57
|
-
span: number;
|
|
58
|
-
offset: number;
|
|
59
|
-
};
|
|
60
|
-
md: {
|
|
61
|
-
span: number;
|
|
62
|
-
offset: number;
|
|
63
|
-
};
|
|
64
|
-
lg: {
|
|
65
|
-
span: number;
|
|
66
|
-
offset: number;
|
|
67
|
-
};
|
|
68
|
-
xxl: {
|
|
69
|
-
span: number;
|
|
70
|
-
offset: number;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
export { formItemLayout, formItemVerticalLayout, fullWidthInput, formItemLayoutWithOutLabel };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BillingLineMetadataOverride } from "../types/BillingLineMetadataOverride";
|
|
2
|
-
import { RuleObject } from "rc-field-form/lib/interface";
|
|
3
|
-
export declare type ValidationRulesObject = {
|
|
4
|
-
[key in keyof Omit<BillingLineMetadataOverride, 'key'>]: RuleObject[];
|
|
5
|
-
};
|
|
6
|
-
export declare const validationRules: ValidationRulesObject;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
interface Values {
|
|
2
|
-
key?: string;
|
|
3
|
-
label?: string;
|
|
4
|
-
values?: Values[];
|
|
5
|
-
}
|
|
6
|
-
interface FieldRequirement extends Values {
|
|
7
|
-
isRequired: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare type ReceiverRequirements = {
|
|
10
|
-
[key in AvailableFields]?: FieldRequirement;
|
|
11
|
-
};
|
|
12
|
-
export declare enum AvailableFields {
|
|
13
|
-
"invoiceNo" = "invoiceNo",
|
|
14
|
-
"issueDate" = "issueDate",
|
|
15
|
-
"dueDate" = "dueDate",
|
|
16
|
-
"graceDate" = "graceDate",
|
|
17
|
-
"currencyCode" = "currencyCode",
|
|
18
|
-
"notes" = "notes",
|
|
19
|
-
"accountingCost" = "accountingCost",
|
|
20
|
-
"buyerReference" = "buyerReference",
|
|
21
|
-
"orderReference.documentNo" = "orderReference.documentNo",
|
|
22
|
-
"billingReferences.invoices" = "billingReferences.invoices",
|
|
23
|
-
"billingReferences.documentNo" = "billingReferences.documentNo",
|
|
24
|
-
"billingReferences.issueDate" = "billingReferences.issueDate",
|
|
25
|
-
"billingReferences.creditNotes" = "billingReferences.creditNotes",
|
|
26
|
-
"referenceIdentifiers.type" = "referenceIdentifiers.type",
|
|
27
|
-
"referenceIdentifiers.code" = "referenceIdentifiers.code",
|
|
28
|
-
"referenceIdentifiers.value" = "referenceIdentifiers.value",
|
|
29
|
-
"referenceIdentifiers" = "referenceIdentifiers",
|
|
30
|
-
"supplier.vatNumber" = "supplier.vatNumber",
|
|
31
|
-
"supplier.address.streetNameAndNumber" = "supplier.address.streetNameAndNumber",
|
|
32
|
-
"supplier.address.city" = "supplier.address.city",
|
|
33
|
-
"supplier.address.postalZone" = "supplier.address.postalZone",
|
|
34
|
-
"supplier.address.countryCode" = "supplier.address.countryCode",
|
|
35
|
-
"supplier.contact.name" = "supplier.contact.name",
|
|
36
|
-
"supplier.contact.electronicMail" = "supplier.contact.electronicMail",
|
|
37
|
-
"supplier.contact.telephone" = "supplier.contact.telephone",
|
|
38
|
-
"supplier.name" = "supplier.name",
|
|
39
|
-
"supplier.identifier" = "supplier.identifier",
|
|
40
|
-
"customer.address.streetNameAndNumber" = "customer.address.streetNameAndNumber",
|
|
41
|
-
"customer.address.city" = "customer.address.city",
|
|
42
|
-
"customer.address.postalZone" = "customer.address.postalZone",
|
|
43
|
-
"customer.address.countryCode" = "customer.address.countryCode",
|
|
44
|
-
"customer.contact.name" = "customer.contact.name",
|
|
45
|
-
"customer.contact.electronicMail" = "customer.contact.electronicMail",
|
|
46
|
-
"customer.contact.telephone" = "customer.contact.telephone",
|
|
47
|
-
"customer.name" = "customer.name",
|
|
48
|
-
"customer.identifier" = "customer.identifier",
|
|
49
|
-
"customer.locationIdentifier" = "customer.locationIdentifier",
|
|
50
|
-
"payee.name" = "payee.name",
|
|
51
|
-
"payee.identifier" = "payee.identifier",
|
|
52
|
-
"payee.sepaBankIdentification" = "payee.sepaBankIdentification",
|
|
53
|
-
"invoiceLines.itemNo" = "invoiceLines.itemNo",
|
|
54
|
-
"invoiceLines.name" = "invoiceLines.name",
|
|
55
|
-
"invoiceLines.quantity" = "invoiceLines.quantity",
|
|
56
|
-
"invoiceLines.uniteOfMeasure.unit" = "invoiceLines.unitOfMeasure.unit",
|
|
57
|
-
"invoiceLines.uniteOfMeasure.code" = "invoiceLines.unitOfMeasure.code",
|
|
58
|
-
"invoiceLines.unitPriceAmount" = "invoiceLines.unitPriceAmount",
|
|
59
|
-
"invoiceLines.taxCategoryType" = "invoiceLines.taxCategoryType",
|
|
60
|
-
"invoiceLines.taxableAmount" = "invoiceLines.taxableAmount",
|
|
61
|
-
"invoiceLines.taxAmount" = "invoiceLines.taxAmount",
|
|
62
|
-
"invoiceLines.taxPercentage" = "invoiceLines.taxPercentage",
|
|
63
|
-
"invoiceLines.discountValue" = "invoiceLines.discountValue",
|
|
64
|
-
"paymentTerms.note" = "paymentTerms.note",
|
|
65
|
-
"paymentMeans.type" = "paymentMeans.type",
|
|
66
|
-
"paymentMeans.internationalTransfer" = "paymentMeans.internationalTransfer",
|
|
67
|
-
"paymentMeans.domesticTransfer" = "paymentMeans.domesticTransfer",
|
|
68
|
-
"paymentMeans.domesticClaim" = "paymentMeans.domesticClaim",
|
|
69
|
-
"delivery.partyName" = "delivery.partyName",
|
|
70
|
-
"delivery.locationIdentifier" = "delivery.locationIdentifier",
|
|
71
|
-
"delivery.address.streetNameAndNumber" = "delivery.address.streetNameAndNumber",
|
|
72
|
-
"delivery.address.city" = "delivery.address.city",
|
|
73
|
-
"delivery.address.postalZone" = "delivery.address.postalZone",
|
|
74
|
-
"delivery.address.countryCode" = "delivery.address.countryCode",
|
|
75
|
-
"delivery.actualDeliveryDate" = "delivery.actualDeliveryDate",
|
|
76
|
-
"prepaidAmount" = "prepaidAmount",
|
|
77
|
-
"payableAmount" = "payableAmount",
|
|
78
|
-
"payableRoundingAmount" = "payableRoundingAmount"
|
|
79
|
-
}
|
|
80
|
-
export { ReceiverRequirements, FieldRequirement };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import "../style/index.css";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { CommonProps } from "../common/types/CommonProps";
|
|
4
|
-
import { ProfileOutputWithApiKey } from "../common/types/AppConfiguration";
|
|
5
|
-
interface Props extends CommonProps {
|
|
6
|
-
customers: ProfileOutputWithApiKey[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Component for creating a form for creating an invoice and submitting it to the MAPI transaction services
|
|
10
|
-
*
|
|
11
|
-
* @component
|
|
12
|
-
*/
|
|
13
|
-
declare const CreateInvoice: React.FC<Props>;
|
|
14
|
-
export default CreateInvoice;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ProfileOutputWithApiKey } from "../common/types/AppConfiguration";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { InjectedIntlProps } from "react-intl";
|
|
4
|
-
import { CommonProps } from "../common/types/CommonProps";
|
|
5
|
-
interface Props extends CommonProps, InjectedIntlProps {
|
|
6
|
-
customers: ProfileOutputWithApiKey[];
|
|
7
|
-
}
|
|
8
|
-
declare const _default: React.ComponentClass<Pick<Props, "customers" | "language" | "mapiBaseUrl" | "rapiBaseUrl" | "receiverRequirements">, any> & {
|
|
9
|
-
WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {};
|
|
3
|
-
is: {
|
|
4
|
-
"attachment_labels_Reference": string;
|
|
5
|
-
"attachment_labels_Reference_requiredMessage": string;
|
|
6
|
-
"attachment_labels_Description": string;
|
|
7
|
-
"attachment_labels_Description_requiredMessage": string;
|
|
8
|
-
"attachment_labels_File": string;
|
|
9
|
-
"attachment_title": string;
|
|
10
|
-
"attachment_tooltip_title": string;
|
|
11
|
-
"baseInformation_title": string;
|
|
12
|
-
"baseInformation_invoiceNo": string;
|
|
13
|
-
"baseInformation_issueDate": string;
|
|
14
|
-
"baseInformation_issueDate_title": string;
|
|
15
|
-
"baseInformation_dueDate": string;
|
|
16
|
-
"baseInformation_dueDate_title": string;
|
|
17
|
-
"baseInformation_orderReference_documentNo": string;
|
|
18
|
-
"baseInformation_orderReference_documentNo_title": string;
|
|
19
|
-
"baseInformation_notes": string;
|
|
20
|
-
"baseInformation_currencyCode": string;
|
|
21
|
-
"billingCalculations_labels_TaxAmountWithoutVat": string;
|
|
22
|
-
"billingCalculations_labels_TotalVatAmount": string;
|
|
23
|
-
"billingCalculations_labels_TotalAmountWithVat": string;
|
|
24
|
-
"billingCalculations_labels_RoundingAmount": string;
|
|
25
|
-
"billingCalculations_labels_AmountPayable": string;
|
|
26
|
-
"billingTaxSummary_taxOverview": string;
|
|
27
|
-
"billingTaxSummary_taxableAmount": string;
|
|
28
|
-
"billingTaxSummary_taxAmount": string;
|
|
29
|
-
"billingTaxSummary_taxCategoryType_labels_StandardRated": string;
|
|
30
|
-
"billingTaxSummary_taxCategoryType_labels_ReducedRated": string;
|
|
31
|
-
"billingTaxSummary_taxCategoryType_labels_ZeroRated": string;
|
|
32
|
-
"billingTaxSummary_taxCategoryType_labels_Exempt": string;
|
|
33
|
-
"billingLines_title": string;
|
|
34
|
-
"billingLines_tooltip_title": string;
|
|
35
|
-
"billingLines_itemNo": string;
|
|
36
|
-
"billingLines_name": string;
|
|
37
|
-
"billingLines_quantity": string;
|
|
38
|
-
"billingLines_unitOfMeasure": string;
|
|
39
|
-
"billingLines_unitPriceAmount": string;
|
|
40
|
-
"billingLines_taxCategoryType": string;
|
|
41
|
-
"billingLines_taxCategoryType_title": string;
|
|
42
|
-
"billingLines_taxCategoryPercentage": string;
|
|
43
|
-
"billingLines_discount": string;
|
|
44
|
-
"billingLines_lineAmount": string;
|
|
45
|
-
"billingLines_taxAmount": string;
|
|
46
|
-
"billingLines_button_addRow": string;
|
|
47
|
-
"billingLines_placeholders_itemNo": string;
|
|
48
|
-
"billingLines_placeholders_newItem": string;
|
|
49
|
-
"deliveryLocation_title": string;
|
|
50
|
-
"deliveryLocation_partyName": string;
|
|
51
|
-
"deliveryLocation_streetNameAndNumber": string;
|
|
52
|
-
"deliveryLocation_postalZone": string;
|
|
53
|
-
"deliveryLocation_city": string;
|
|
54
|
-
"deliveryLocation_countryCode": string;
|
|
55
|
-
"formItem_required_errorMessage": string;
|
|
56
|
-
"paymentMethod_title": string;
|
|
57
|
-
"paymentMethod_labels_domesticTransfer_bankNo": string;
|
|
58
|
-
"paymentMethod_labels_domesticTransfer_typeNo": string;
|
|
59
|
-
"paymentMethod_labels_domesticTransfer_accountType": string;
|
|
60
|
-
"paymentMethod_labels_domesticTransfer_accountNo": string;
|
|
61
|
-
"paymentMethod_labels_domesticTransfer_paymentReference": string;
|
|
62
|
-
"paymentMethod_labels_icelandicClaim_bankNo": string;
|
|
63
|
-
"paymentMethod_labels_icelandicClaim_claimNo": string;
|
|
64
|
-
"paymentMethod_labels_methods_undefined": string;
|
|
65
|
-
"paymentMethod_labels_methods_mutuallyAgreed": string;
|
|
66
|
-
"paymentMethod_labels_methods_domesticTransfer": string;
|
|
67
|
-
"paymentMethod_labels_methods_domesticClaim": string;
|
|
68
|
-
"paymentMethod_rules_number": string;
|
|
69
|
-
"paymentMethod_rules_Length": string;
|
|
70
|
-
"supplier_title": string;
|
|
71
|
-
"supplier_name": string;
|
|
72
|
-
"supplier_identifier": string;
|
|
73
|
-
"supplier_vatNumber": string;
|
|
74
|
-
"supplier_address_streetNameAndNumber": string;
|
|
75
|
-
"supplier_address_zip_postalCode": string;
|
|
76
|
-
"supplier_address_city": string;
|
|
77
|
-
"supplier_address_countryCode": string;
|
|
78
|
-
"supplier_contact_email": string;
|
|
79
|
-
"supplier_contact_email_title": string;
|
|
80
|
-
"supplier_contact_name": string;
|
|
81
|
-
"supplier_notValidEmail": string;
|
|
82
|
-
"customer_title": string;
|
|
83
|
-
"customer_selectTheCustomer": string;
|
|
84
|
-
"customer_name": string;
|
|
85
|
-
"customer_identifier": string;
|
|
86
|
-
"customer_address_streetNameAndNumber": string;
|
|
87
|
-
"customer_address_zip_postalCode": string;
|
|
88
|
-
"customer_address_city": string;
|
|
89
|
-
"customer_address_countryCode": string;
|
|
90
|
-
"customer_contact_email": string;
|
|
91
|
-
"customer_contact_name": string;
|
|
92
|
-
"referenceIdentifiers_labels_addButton": string;
|
|
93
|
-
"referenceIdentifiers_labels_referenceIdentifier": string;
|
|
94
|
-
"referenceIdentifiers_labels_referenceIdentifier_title": string;
|
|
95
|
-
"attachment_labels_uploadFileMsg": string;
|
|
96
|
-
"attachment_labels_descriptionErrorMsg": string;
|
|
97
|
-
"baseInformation_currency_ISK": string;
|
|
98
|
-
"baseInformation_currency_DKK": string;
|
|
99
|
-
"baseInformation_currency_NOK": string;
|
|
100
|
-
"baseInformation_currency_SEK": string;
|
|
101
|
-
"baseInformation_currency_EUR": string;
|
|
102
|
-
"baseInformation_currency_USD": string;
|
|
103
|
-
"baseInformation_currency_GBP": string;
|
|
104
|
-
"baseInformation_dueDateErrorMsg": string;
|
|
105
|
-
"taxCategoryType_labels_StandardRated": string;
|
|
106
|
-
"taxCategoryType_labels_ReducedRated": string;
|
|
107
|
-
"taxCategoryType_labels_ZeroRated": string;
|
|
108
|
-
"taxCategoryType_labels_Exempt": string;
|
|
109
|
-
"unitOfMeasure_labels_Piece": string;
|
|
110
|
-
"unitOfMeasure_labels_Kilogram": string;
|
|
111
|
-
"unitOfMeasure_labels_Month": string;
|
|
112
|
-
"unitOfMeasure_labels_Package": string;
|
|
113
|
-
"unitOfMeasure_labels_Year": string;
|
|
114
|
-
"unitOfMeasure_labels_Day": string;
|
|
115
|
-
"unitOfMeasure_labels_Hour": string;
|
|
116
|
-
"unitOfMeasure_labels_Kilometre": string;
|
|
117
|
-
"unitOfMeasure_labels_Metre": string;
|
|
118
|
-
"unitOfMeasure_labels_Litre": string;
|
|
119
|
-
"unitOfMeasure_labels_SquareMetre": string;
|
|
120
|
-
"unitOfMeasure_labels_CubicMetre": string;
|
|
121
|
-
"unitOfMeasure_labels_Tonne": string;
|
|
122
|
-
"unitOfMeasure_labels_KiloWattHour": string;
|
|
123
|
-
"unitOfMeasure_labels_One": string;
|
|
124
|
-
"createInvoice_addDocumentLineMsg": string;
|
|
125
|
-
"createInvoice_selectCustomerMsg": string;
|
|
126
|
-
"createInvoice_successfullySubmittedInvoiceMsg": string;
|
|
127
|
-
"createInvoice_successfullyUploadedAttachmentMsg": string;
|
|
128
|
-
"createInvoice_ErrorUploadedAttachmentMsg": string;
|
|
129
|
-
"createInvoice_Submit": string;
|
|
130
|
-
"billingLines_labels_addButton": string;
|
|
131
|
-
"rulesMessages_name_required": string;
|
|
132
|
-
"rulesMessages_unitOfMeasure_required": string;
|
|
133
|
-
"rulesMessages_unitPriceAmount_required": string;
|
|
134
|
-
"rulesMessages_unitPriceAmount_type": string;
|
|
135
|
-
"rulesMessages_taxCategoryType_required": string;
|
|
136
|
-
"rulesMessages_discountValue_pattern": string;
|
|
137
|
-
"referenceIdentifiers_labels_carNumber": string;
|
|
138
|
-
"referenceIdentifiers_labels_identifier": string;
|
|
139
|
-
"referenceIdentifiers_labels_propertyNumber": string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { mapi } from "@unimaze/api-clients";
|
|
2
|
-
import { InvoiceMetadataInput, TransactionProcessingMode } from "@unimaze/api-clients/lib/mapi/api";
|
|
3
|
-
import { AxiosPromise } from "axios";
|
|
4
|
-
import { LanguageProp } from "../common/types/CommonProps";
|
|
5
|
-
interface CreateSubmitInvoice {
|
|
6
|
-
messageId: string;
|
|
7
|
-
more: boolean;
|
|
8
|
-
conversationIdentifier?: string;
|
|
9
|
-
processingMode?: TransactionProcessingMode;
|
|
10
|
-
services?: string[];
|
|
11
|
-
invoiceMetadataInput?: InvoiceMetadataInput;
|
|
12
|
-
}
|
|
13
|
-
interface AttachDocument {
|
|
14
|
-
messageId: string;
|
|
15
|
-
name: string;
|
|
16
|
-
contentType: string;
|
|
17
|
-
more: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const submitDocument: (data: any, attachDocument: AttachDocument, mapiBaseUrl: string, apiKey?: string | undefined) => AxiosPromise<mapi.MessageOutput>;
|
|
20
|
-
declare const submitInvoice: (createSubmitInvoice: CreateSubmitInvoice, mapiBaseUrl: string, apiKey?: string | undefined, callName?: string | undefined, language?: LanguageProp) => AxiosPromise<mapi.MessageOutput>;
|
|
21
|
-
export { submitInvoice, CreateSubmitInvoice, submitDocument, AttachDocument };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BillingLineMetadata } from '@unimaze/api-clients/lib/mapi';
|
|
2
|
-
import { FormInstance } from "antd/es/form";
|
|
3
|
-
import { TaxCategoryTypeEnum } from "@unimaze/api-clients/lib/mapi/api";
|
|
4
|
-
import React from "react";
|
|
5
|
-
export declare const billingLinesFieldsMetadata: (formInstance: FormInstance) => BillingLineMetadata[];
|
|
6
|
-
export declare const calculateTaxableAmount: (discountValue: string | null | undefined, quantity: number | null, unitPriceAmount: number | null) => number;
|
|
7
|
-
export declare const calculateTaxAmount: (taxableAmount: number, taxPercentage: number) => number;
|
|
8
|
-
export declare const calculateTaxPercentage: (taxCategoryType: TaxCategoryTypeEnum) => number;
|
|
9
|
-
export declare const generateTaxCategoryLabel: (taxCategoryType: TaxCategoryTypeEnum, taxCategoryTypeTranslated: string) => string;
|
|
10
|
-
export declare const getCorrectInputNode: (dataIdx: "unitOfMeasure" | "taxCategoryType" | "itemNo" | "name" | "description" | "quantity" | "unitPriceAmount" | "taxableAmount" | "taxAmount" | "taxPercentage" | "discountValue" | "discountReason" | "notes" | "accountingCost" | "billingPeriod" | "buyersItemNo" | "standardItemNo" | "originCountryCode" | "commodityClassification" | "additionalItemProperties" | "referenceIdentifiers" | "orderLineReference" | "key") => React.ReactChild;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BillingLineMetadata, InvoiceMetadataInput, PartyMetadata } from "@unimaze/api-clients/lib/mapi";
|
|
2
|
-
import { Store } from "antd/es/form/interface";
|
|
3
|
-
import { ProfileOutput } from "@unimaze/api-clients/lib/wapi2";
|
|
4
|
-
import { PaymentMeansMetadata } from "@unimaze/api-clients/lib/mapi/api";
|
|
5
|
-
declare const convertToInvoiceMetadataInput: (formValues: Store, billingLines: BillingLineMetadata[], paymentMethod: PaymentMeansMetadata, chosenCustomer: PartyMetadata) => InvoiceMetadataInput;
|
|
6
|
-
declare const profileOutputToPartyMetadata: (profileOutput: ProfileOutput) => PartyMetadata;
|
|
7
|
-
declare const convertToReadableKennitala: (isoIdentifier: string) => string;
|
|
8
|
-
export { convertToInvoiceMetadataInput, profileOutputToPartyMetadata, convertToReadableKennitala };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FormattedNumber, InjectedIntl } from "react-intl";
|
|
2
|
-
declare const icelandicNumberLocaleWorkaroundChrome: (value: number, intl: InjectedIntl, options?: FormattedNumber.PropsBase | undefined) => string;
|
|
3
|
-
declare const returnDecimalSeparatorForLocale: (locale: string | null) => string | undefined;
|
|
4
|
-
export { icelandicNumberLocaleWorkaroundChrome, returnDecimalSeparatorForLocale };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AvailableFields } from "../common/types/ReceiverRequirements";
|
|
3
|
-
import { FieldDefinition, NewReceiverRequirements } from "../common/types/NewReceiverRequirements";
|
|
4
|
-
export declare const getFieldRequirements: (receiverRequirements: NewReceiverRequirements, key: AvailableFields) => FieldDefinition | undefined;
|
|
5
|
-
export declare const getFieldLabelOverride: (receiverRequirements: NewReceiverRequirements, key: AvailableFields, defaultLabel: React.ReactNode) => React.ReactNode;
|
|
6
|
-
export declare const getFieldIsRequired: (receiverRequirements: NewReceiverRequirements, key: AvailableFields, defaultIsRequired: boolean) => boolean;
|
package/lib/src/utils/index.d.ts
DELETED