@unimaze/billing 0.3.4 → 0.3.5-sjova.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.
Files changed (72) hide show
  1. package/lib/common/components/attachments/Attachment.js +15 -12
  2. package/lib/common/components/attachments/index.js +12 -11
  3. package/lib/common/components/base-information/ReferenceIdentifiers.js +24 -14
  4. package/lib/common/components/base-information/index.js +66 -39
  5. package/lib/common/components/billing-lines/BillingCalculations.d.ts +2 -2
  6. package/lib/common/components/billing-lines/BillingCalculations.js +8 -7
  7. package/lib/common/components/billing-lines/BillingTaxSummary.js +33 -5
  8. package/lib/common/components/billing-lines/index.d.ts +10 -1
  9. package/lib/common/components/billing-lines/index.js +74 -41
  10. package/lib/common/components/customer/index.d.ts +1 -1
  11. package/lib/common/components/customer/index.js +5 -11
  12. package/lib/common/components/editable-cell/index.d.ts +7 -3
  13. package/lib/common/components/editable-cell/index.js +131 -8
  14. package/lib/common/components/form-item/index.d.ts +4 -2
  15. package/lib/common/components/form-item/index.js +27 -7
  16. package/lib/common/components/payment-method/index.js +38 -62
  17. package/lib/common/components/payment-method/paymentMethodForConversion.js +2 -11
  18. package/lib/common/components/supplier/index.js +18 -35
  19. package/lib/common/consts/formLayout.d.ts +30 -0
  20. package/lib/common/consts/formLayout.js +9 -0
  21. package/lib/common/consts/validationRules.d.ts +2 -2
  22. package/lib/common/consts/validationRules.js +11 -8
  23. package/lib/common/types/AppConfiguration.d.ts +1 -1
  24. package/lib/common/types/BillingLineMetadataOverride.d.ts +5 -3
  25. package/lib/common/types/CommonProps.d.ts +1 -1
  26. package/lib/common/types/ReceiverRequirements.js +1 -1
  27. package/lib/create-invoice/IntlLoader.js +49 -0
  28. package/lib/create-invoice/index.d.ts +7 -10
  29. package/lib/create-invoice/index.js +110 -69
  30. package/lib/translations/locales/is.json +65 -4
  31. package/lib/translations/locales.d.ts +62 -1
  32. package/lib/utils/BillingLineUtility.d.ts +2 -2
  33. package/lib/utils/BillingLineUtility.js +2 -2
  34. package/lib/utils/FormatingUtility.d.ts +2 -0
  35. package/lib/utils/FormatingUtility.js +6 -0
  36. package/lib/utils/IntlUtility.d.ts +4 -0
  37. package/lib/utils/IntlUtility.js +54 -0
  38. package/package.json +3 -9
  39. package/lib/common/types/Configuration.d.ts +0 -14
  40. package/lib/common/types/Configuration.js +0 -2
  41. package/lib/example/src/index.d.ts +0 -1
  42. package/lib/src/common/components/attachments/Attachment.d.ts +0 -18
  43. package/lib/src/common/components/attachments/index.d.ts +0 -6
  44. package/lib/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -17
  45. package/lib/src/common/components/base-information/index.d.ts +0 -11
  46. package/lib/src/common/components/billing-lines/BillingCalculations.d.ts +0 -11
  47. package/lib/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -10
  48. package/lib/src/common/components/billing-lines/NewBillingLines.d.ts +0 -10
  49. package/lib/src/common/components/billing-lines/index.d.ts +0 -19
  50. package/lib/src/common/components/component-container/Content.d.ts +0 -7
  51. package/lib/src/common/components/component-container/Header.d.ts +0 -9
  52. package/lib/src/common/components/component-container/index.d.ts +0 -11
  53. package/lib/src/common/components/customer/index.d.ts +0 -16
  54. package/lib/src/common/components/delivery-location/index.d.ts +0 -6
  55. package/lib/src/common/components/editable-cell/index.d.ts +0 -11
  56. package/lib/src/common/components/editable-row/index.d.ts +0 -5
  57. package/lib/src/common/components/form-item/index.d.ts +0 -23
  58. package/lib/src/common/components/index.d.ts +0 -10
  59. package/lib/src/common/components/locale-intl/index.d.ts +0 -10
  60. package/lib/src/common/components/payment-method/index.d.ts +0 -6
  61. package/lib/src/common/components/payment-method/paymentMethodForConversion.d.ts +0 -9
  62. package/lib/src/common/components/supplier/index.d.ts +0 -10
  63. package/lib/src/common/consts/formLayout.d.ts +0 -44
  64. package/lib/src/common/consts/validationRules.d.ts +0 -6
  65. package/lib/src/common/types/ReceiverRequirements.d.ts +0 -81
  66. package/lib/src/translations/locales.d.ts +0 -78
  67. package/lib/src/utils/ApiUtility.d.ts +0 -21
  68. package/lib/src/utils/BillingLineUtility.d.ts +0 -10
  69. package/lib/src/utils/ConversionUtility.d.ts +0 -8
  70. package/lib/src/utils/RequirementsUtility.d.ts +0 -5
  71. package/lib/src/utils/index.d.ts +0 -2
  72. /package/lib/{src/create-invoice/index.d.ts → create-invoice/IntlLoader.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unimaze/billing",
3
- "version": "0.3.4",
3
+ "version": "0.3.5-sjova.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -11,6 +11,7 @@
11
11
  "@ant-design/compatible": "latest",
12
12
  "@unimaze/api-clients": "1.2.0",
13
13
  "react-hot-loader": "^4.12.20",
14
+ "react-intl": "2.9.0",
14
15
  "uuid": "latest"
15
16
  },
16
17
  "devDependencies": {
@@ -36,7 +37,6 @@
36
37
  "open-browser-webpack-plugin": "^0.0.5",
37
38
  "react": "16.13.1",
38
39
  "react-dom": "16.13.1",
39
- "react-intl": "^2.9.0",
40
40
  "rimraf": "^3.0.2",
41
41
  "style-loader": "^1.1.3",
42
42
  "tslint": "^6.1.1",
@@ -51,8 +51,7 @@
51
51
  "antd": "4.3.3",
52
52
  "axios": "^0.19.2",
53
53
  "react": "16.13.1",
54
- "react-dom": "16.13.1",
55
- "react-intl": "^2.9.0"
54
+ "react-dom": "16.13.1"
56
55
  },
57
56
  "resolutions": {
58
57
  "@types/react": "16.9.34",
@@ -83,11 +82,6 @@
83
82
  "examples:build": "webpack -d --mode development --config example/webpack.config.js",
84
83
  "start": "yarn run examples"
85
84
  },
86
- "babelMacros": {
87
- "react-intl": {
88
- "pure": true
89
- }
90
- },
91
85
  "author": "",
92
86
  "license": "SEE LICENSE IN LICENSE.txt",
93
87
  "repository": {
@@ -1,14 +0,0 @@
1
- import { ProfileOutput } from "@unimaze/api-clients/lib/wapi2";
2
- interface Configuration {
3
- language: "en" | "is";
4
- mapiUrl: string;
5
- rapiUrl: string;
6
- env: HostConfiguration[];
7
- }
8
- interface HostConfiguration {
9
- host: string;
10
- legalIdentifier: string;
11
- apiKey: string;
12
- customer: ProfileOutput[];
13
- }
14
- export { Configuration, HostConfiguration };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- import "antd/dist/antd.compact.css";
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { InjectedIntlProps } from "react-intl";
3
- interface Props extends InjectedIntlProps {
4
- fieldName: "file1" | "file2" | "file3";
5
- }
6
- interface States {
7
- file: any[];
8
- }
9
- declare class Attachment extends React.Component<Props, States> {
10
- constructor(props: Props);
11
- handleRemoveFile: () => void;
12
- normFile: (e: any) => any;
13
- render(): JSX.Element;
14
- }
15
- declare const _default: React.ComponentClass<Pick<Props & React.RefAttributes<Attachment>, "ref" | "key" | "fieldName">, any> & {
16
- WrappedComponent: React.ComponentType<Props & React.RefAttributes<Attachment> & InjectedIntlProps>;
17
- };
18
- export default _default;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { InjectedIntlProps } from "react-intl";
3
- declare const AttachmentGroupIntl: React.ComponentClass<Pick<InjectedIntlProps, never>, any> & {
4
- WrappedComponent: React.ComponentType<InjectedIntlProps>;
5
- };
6
- export default AttachmentGroupIntl;
@@ -1,17 +0,0 @@
1
- import React from "react";
2
- import { InjectedIntlProps } from "react-intl";
3
- import { StoreValue } from "rc-field-form/lib/interface";
4
- interface FieldData {
5
- name: number;
6
- key: number;
7
- fieldKey: number;
8
- }
9
- interface Props extends InjectedIntlProps {
10
- fields: FieldData[];
11
- add: (defaultValue?: StoreValue) => void;
12
- remove: (index: number) => void;
13
- }
14
- declare const _default: React.ComponentClass<Pick<Props, "remove" | "fields" | "add">, any> & {
15
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
16
- };
17
- export default _default;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { FormInstance } from "antd/es/form";
3
- import { InjectedIntlProps } from "react-intl";
4
- interface Props extends InjectedIntlProps {
5
- form: FormInstance;
6
- documentType: "creditNote" | "invoice";
7
- }
8
- declare const BaseInformationIntl: React.ComponentClass<Pick<Props, "form" | "documentType">, any> & {
9
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
10
- };
11
- export default BaseInformationIntl;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { BillingLineMetadataOverride } from "../../types/BillingLineMetadataOverride";
3
- import { InjectedIntlProps } from "react-intl";
4
- interface Props extends InjectedIntlProps {
5
- billingLinesMetadata: BillingLineMetadataOverride[] | undefined;
6
- renderCurrencyColumn: (text: string | number) => string;
7
- }
8
- declare const _default: React.ComponentClass<Pick<Props, "billingLinesMetadata" | "renderCurrencyColumn">, any> & {
9
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
10
- };
11
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { BillingLineMetadataOverride } from "../../types/BillingLineMetadataOverride";
3
- import { InjectedIntlProps } from "react-intl";
4
- interface Props extends InjectedIntlProps {
5
- billingLines: BillingLineMetadataOverride[] | undefined;
6
- }
7
- declare const _default: React.ComponentClass<Pick<Props, "billingLines">, any> & {
8
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
9
- };
10
- export default _default;
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { InjectedIntlProps } from "react-intl";
3
- import { FormInstance } from "antd/es/form";
4
- interface Props extends InjectedIntlProps {
5
- formInstance: FormInstance;
6
- }
7
- declare const _default: React.ComponentClass<Pick<Props, "formInstance">, any> & {
8
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
9
- };
10
- export default _default;
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import { BillingLineMetadata } from "@unimaze/api-clients/lib/mapi/models";
3
- import { InjectedIntlProps } from "react-intl";
4
- import { BillingLineMetadataOverride } from "../../types/BillingLineMetadataOverride";
5
- import { FormInstance } from "antd/es/form";
6
- interface Props extends InjectedIntlProps {
7
- formInstance: FormInstance;
8
- setBillingLineMetadata: (formInstance: FormInstance, billingLineMetadata: BillingLineMetadata[]) => void;
9
- dataSource: BillingLineMetadataOverride[];
10
- handleDelete: (index: number) => void;
11
- handleAdd: (billingLineToAdd: BillingLineMetadataOverride) => void;
12
- handleSave: (row: BillingLineMetadataOverride, formInstance: FormInstance) => void;
13
- initialBillingLineData: BillingLineMetadataOverride;
14
- editableIndex: number;
15
- }
16
- declare const BillingLinesIntl: React.ComponentClass<Pick<Props, "formInstance" | "setBillingLineMetadata" | "dataSource" | "handleDelete" | "handleAdd" | "handleSave" | "initialBillingLineData" | "editableIndex">, any> & {
17
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
18
- };
19
- export default BillingLinesIntl;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { HeightProperty } from "csstype";
3
- interface Props {
4
- height?: HeightProperty<number>;
5
- }
6
- declare const Content: React.FC<Props>;
7
- export default Content;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from "@ant-design/compatible/es/icon";
3
- interface HeaderProps {
4
- iconProps?: IconProps;
5
- title?: string | React.ReactNode;
6
- action?: React.ReactNode;
7
- }
8
- declare const Header: React.FC<HeaderProps>;
9
- export default Header;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from "@ant-design/compatible/es/icon";
3
- interface Props {
4
- iconProps?: IconProps;
5
- title?: string | React.ReactNode;
6
- action?: React.ReactNode;
7
- noPadding?: boolean;
8
- noHeader?: boolean;
9
- }
10
- declare const ComponentContainer: React.FC<Props>;
11
- export default ComponentContainer;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { InjectedIntlProps } from "react-intl";
3
- import { FormInstance } from "antd/es/form";
4
- import { PartyMetadata } from "@unimaze/api-clients/lib/mapi";
5
- import { ProfileOutputWithApiKey } from "../../types/AppConfiguration";
6
- interface Props extends InjectedIntlProps {
7
- customers: ProfileOutputWithApiKey[];
8
- formInstance: FormInstance;
9
- chosenCustomer: PartyMetadata | undefined;
10
- setChosenCustomer: (chosenCustomer: PartyMetadata) => void;
11
- setChosenCustomerApiKey: (chosenCustomerApiKey: string) => void;
12
- }
13
- declare const CustomerIntl: React.ComponentClass<Pick<Props, "chosenCustomer" | "setChosenCustomer" | "setChosenCustomerApiKey" | "customers" | "formInstance">, any> & {
14
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
15
- };
16
- export default CustomerIntl;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { InjectedIntlProps } from "react-intl";
3
- declare const DeliveryLocationIntl: React.ComponentClass<Pick<InjectedIntlProps, never>, any> & {
4
- WrappedComponent: React.ComponentType<InjectedIntlProps>;
5
- };
6
- export default DeliveryLocationIntl;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { BillingLineMetadataOverride } from "../../types/BillingLineMetadataOverride";
3
- interface EditableCellProps {
4
- record: BillingLineMetadataOverride;
5
- handleSave: (billingLineMetadata: BillingLineMetadataOverride) => void;
6
- dataIndex: keyof Omit<BillingLineMetadataOverride, 'key'>;
7
- editable: boolean;
8
- index: number;
9
- }
10
- declare const EditableCell: React.FC<EditableCellProps>;
11
- export default EditableCell;
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
- import { FormInstance } from "antd/lib/form";
3
- export declare const EditableContext: React.Context<FormInstance>;
4
- declare const EditableRow: ({ index, ...props }: any) => JSX.Element;
5
- export default EditableRow;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { AvailableFields } from "../../types/ReceiverRequirements";
3
- import { NamePath, Rule } from "rc-field-form/lib/interface";
4
- import { InjectedIntlProps } from "react-intl";
5
- interface StringMap {
6
- [key: string]: string;
7
- }
8
- interface Props extends InjectedIntlProps {
9
- receiverRequirementsKey: AvailableFields;
10
- defaultLabel: React.ReactNode;
11
- defaultIsRequired: boolean;
12
- fieldName: NamePath;
13
- additionalRules?: Rule[];
14
- style?: React.CSSProperties;
15
- initialValue?: StringMap;
16
- verticalLabels?: boolean;
17
- onlyLabelOnFirstInList?: boolean;
18
- index?: number;
19
- }
20
- declare const _default: React.ComponentClass<Pick<Props, "style" | "initialValue" | "fieldName" | "receiverRequirementsKey" | "defaultLabel" | "defaultIsRequired" | "additionalRules" | "verticalLabels" | "onlyLabelOnFirstInList" | "index">, any> & {
21
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
22
- };
23
- export default _default;
@@ -1,10 +0,0 @@
1
- export { default as Attachments } from "./attachments";
2
- export { default as BaseInformation } from "./base-information";
3
- export { default as BillingLines } from "./billing-lines";
4
- export { default as ComponentContainer } from "./component-container";
5
- export { default as Customer } from "./customer";
6
- export { default as DeliveryLocation } from "./delivery-location";
7
- export { default as EditableCell } from "./editable-cell";
8
- export { default as EditableRow } from "./editable-row";
9
- export { default as PaymentMethod } from "./payment-method";
10
- export { default as Supplier } from "./supplier";
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- import "moment/locale/is";
3
- import "moment/locale/sr";
4
- interface IHotSwappingIntlProviderOwnProps {
5
- initialLocale: string;
6
- initialMessages: any;
7
- languageString?: string;
8
- }
9
- declare const HotIntlProvider: React.FC<IHotSwappingIntlProviderOwnProps>;
10
- export default HotIntlProvider;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { InjectedIntlProps } from "react-intl";
3
- declare const _default: React.ComponentClass<Pick<InjectedIntlProps, never>, any> & {
4
- WrappedComponent: React.ComponentType<InjectedIntlProps>;
5
- };
6
- export default _default;
@@ -1,9 +0,0 @@
1
- import { PaymentMeansType } from "@unimaze/api-clients/lib/mapi";
2
- import { TransferMetadata, ClaimMetadata } from '@unimaze/api-clients/lib/mapi/models';
3
- import { Store } from 'antd/es/form/interface';
4
- export interface IPaymentMeans {
5
- type: PaymentMeansType;
6
- domesticTransfer?: TransferMetadata | undefined;
7
- domesticClaim?: ClaimMetadata | undefined;
8
- }
9
- export declare const PaymentMethodFormData: (formData: Store) => IPaymentMeans;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { InjectedIntlProps } from "react-intl";
3
- import { BillingLineMetadataOverride } from "../../types/BillingLineMetadataOverride";
4
- interface Props extends InjectedIntlProps {
5
- billingLinesDataSource: BillingLineMetadataOverride[];
6
- }
7
- declare const SupplierIntl: React.ComponentClass<Pick<Props, "billingLinesDataSource">, any> & {
8
- WrappedComponent: React.ComponentType<Props & InjectedIntlProps>;
9
- };
10
- export default SupplierIntl;
@@ -1,44 +0,0 @@
1
- declare const formItemLayout: {
2
- labelCol: {
3
- xs: {
4
- span: number;
5
- };
6
- sm: {
7
- span: number;
8
- };
9
- };
10
- wrapperCol: {
11
- xs: {
12
- span: number;
13
- };
14
- sm: {
15
- span: number;
16
- };
17
- };
18
- };
19
- declare const formItemVerticalLayout: {
20
- labelCol: {
21
- span: number;
22
- };
23
- wrapperCol: {
24
- span: number;
25
- };
26
- };
27
- declare const fullWidthInput: {
28
- wrapperCol: {
29
- span: number;
30
- };
31
- };
32
- declare const formItemLayoutWithOutLabel: {
33
- wrapperCol: {
34
- xs: {
35
- span: number;
36
- offset: number;
37
- };
38
- sm: {
39
- span: number;
40
- offset: number;
41
- };
42
- };
43
- };
44
- export { formItemLayout, formItemVerticalLayout, fullWidthInput, formItemLayoutWithOutLabel };
@@ -1,6 +0,0 @@
1
- import { BillingLineMetadataOverride } from "../types/BillingLineMetadataOverride";
2
- import { Rule } from "rc-field-form/lib/interface";
3
- export declare type ValidationRulesObject = {
4
- [key in keyof Omit<BillingLineMetadataOverride, 'key'>]: Rule[];
5
- };
6
- export declare const validationRules: ValidationRulesObject;
@@ -1,81 +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 };
81
- export declare const receiverRequirementsObject: ReceiverRequirements;
@@ -1,78 +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
- "baseInformation_title": string;
11
- "baseInformation_invoiceNo": string;
12
- "baseInformation_issueDate": string;
13
- "baseInformation_dueDate": string;
14
- "baseInformation_orderReference_documentNo": string;
15
- "baseInformation_notes": string;
16
- "baseInformation_currencyCode": string;
17
- "billingCalculations_labels_TaxAmountWithoutVat": string;
18
- "billingCalculations_labels_TotalVatAmount": string;
19
- "billingCalculations_labels_TotalAmountWithVat": string;
20
- "billingTaxSummary_taxOverview": string;
21
- "billingTaxSummary_taxableAmount": string;
22
- "billingTaxSummary_taxAmount": string;
23
- "billingLines_title": string;
24
- "billingLines_itemNo": string;
25
- "billingLines_name": string;
26
- "billingLines_quantity": string;
27
- "billingLines_unitOfMeasure": string;
28
- "billingLines_unitPriceAmount": string;
29
- "billingLines_taxCategoryType": string;
30
- "billingLines_taxCategoryPercentage": string;
31
- "billingLines_discount": string;
32
- "billingLines_lineAmount": string;
33
- "billingLines_taxAmount": string;
34
- "billingLines_button_addRow": string;
35
- "deliveryLocation_title": string;
36
- "deliveryLocation_partyName": string;
37
- "deliveryLocation_streetNameAndNumber": string;
38
- "deliveryLocation_postalZone": string;
39
- "deliveryLocation_city": string;
40
- "deliveryLocation_countryCode": string;
41
- "formItem_required_errorMessage": string;
42
- "paymentMethod_labels_domesticTransfer_bankNo": string;
43
- "paymentMethod_labels_domesticTransfer_typeNo": string;
44
- "paymentMethod_labels_domesticTransfer_accountNo": string;
45
- "paymentMethod_labels_domesticTransfer_paymentReference": string;
46
- "paymentMethod_labels_icelandicClaim_bankNo": string;
47
- "paymentMethod_labels_icelandicClaim_claimNo": string;
48
- "paymentMethod_labels_methods_undefined": string;
49
- "paymentMethod_labels_methods_mutuallyAgreed": string;
50
- "paymentMethod_labels_methods_domesticTransfer": string;
51
- "paymentMethod_labels_methods_domesticClaim": string;
52
- "paymentMethod_rulles_number": string;
53
- "supplier_title": string;
54
- "supplier_name": string;
55
- "supplier_identifier": string;
56
- "supplier_vatNumber": string;
57
- "supplier_address_streetNameAndNumber": string;
58
- "supplier_address_zip_postalCode": string;
59
- "supplier_address_city": string;
60
- "supplier_address_countryCode": string;
61
- "supplier_contact_email": string;
62
- "supplier_contact_name": string;
63
- "supplier_notValidEmail": string;
64
- "customer_title": string;
65
- "customer_selectTheCustomer": string;
66
- "customer_name": string;
67
- "customer_identifier": string;
68
- "customer_address_streetNameAndNumber": string;
69
- "customer_address_zip_postalCode": string;
70
- "customer_address_city": string;
71
- "customer_address_countryCode": string;
72
- "customer_contact_email": string;
73
- "customer_contact_name": string;
74
- "referenceIdentifiers_labels_addButton": string;
75
- "referenceIdentifiers_labels_referenceIdentifier": string;
76
- };
77
- };
78
- 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) => string;
10
- export declare const getCorrectInputNode: (dataIdx: "unitOfMeasure" | "itemNo" | "name" | "description" | "quantity" | "unitPriceAmount" | "taxCategoryType" | "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,5 +0,0 @@
1
- import React from 'react';
2
- import { AvailableFields, FieldRequirement, ReceiverRequirements } from "../common/types/ReceiverRequirements";
3
- export declare const getReceiverRequirements: (recRequirements: ReceiverRequirements, key: AvailableFields) => FieldRequirement;
4
- export declare const getReceiverRequirementsIsRequired: (recRequirements: ReceiverRequirements, key: AvailableFields, defaultIsRequired: boolean) => boolean;
5
- export declare const getReceiverRequirementsLabelWithDefault: (recRequirements: ReceiverRequirements, key: AvailableFields, defaultLabel: React.ReactNode) => React.ReactNode;
@@ -1,2 +0,0 @@
1
- export { convertToInvoiceMetadataInput } from "./ConversionUtility";
2
- export { submitInvoice, CreateSubmitInvoice, submitDocument, AttachDocument } from "./ApiUtility";