@unimaze/billing 0.21.46 → 0.21.48

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 (193) hide show
  1. package/lib/common/components/billing-lines/CurrencySelector.d.ts +1 -3
  2. package/lib/common/components/billing-lines/CurrencySelector.js +45 -8
  3. package/lib/common/components/billing-lines/NewBillingLines.js +0 -8
  4. package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  5. package/lib/common/components/billing-lines/NewNewBillingLines.js +36 -0
  6. package/lib/common/components/billing-lines/SingleBillingLine.js +9 -5
  7. package/lib/common/components/billing-lines/cwdwdw.d.ts +1 -0
  8. package/lib/common/components/billing-lines/cwdwdw.js +14 -0
  9. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
  10. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +109 -0
  11. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
  12. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +110 -0
  13. package/lib/translations/locales/is.json +1 -1
  14. package/lib/unimaze-api-clients/src/mapi/api.d.ts +6664 -0
  15. package/lib/unimaze-api-clients/src/mapi/api.js +4743 -0
  16. package/lib/unimaze-api-clients/src/mapi/base.d.ts +55 -0
  17. package/lib/unimaze-api-clients/src/mapi/base.js +84 -0
  18. package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +63 -0
  19. package/lib/unimaze-api-clients/src/mapi/configuration.js +28 -0
  20. package/lib/unimaze-api-clients/src/mapi/index.d.ts +13 -0
  21. package/lib/unimaze-api-clients/src/mapi/index.js +30 -0
  22. package/lib/unimaze-api-clients/src/rapi/api.d.ts +5015 -0
  23. package/lib/unimaze-api-clients/src/rapi/api.js +5582 -0
  24. package/lib/unimaze-api-clients/src/rapi/base.d.ts +55 -0
  25. package/lib/unimaze-api-clients/src/rapi/base.js +84 -0
  26. package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +63 -0
  27. package/lib/unimaze-api-clients/src/rapi/configuration.js +28 -0
  28. package/lib/unimaze-api-clients/src/rapi/index.d.ts +13 -0
  29. package/lib/unimaze-api-clients/src/rapi/index.js +30 -0
  30. package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +74 -0
  31. package/lib/unimaze-billing/src/common/components/CommonTranslations.js +78 -0
  32. package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +20 -0
  33. package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +164 -0
  34. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +21 -0
  35. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +206 -0
  36. package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +27 -0
  37. package/lib/unimaze-billing/src/common/components/attachments/index.js +214 -0
  38. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +17 -0
  39. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +61 -0
  40. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +16 -0
  41. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +58 -0
  42. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +14 -0
  43. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +30 -0
  44. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +53 -0
  45. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +328 -0
  46. package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +77 -0
  47. package/lib/unimaze-billing/src/common/components/base-information/index.js +186 -0
  48. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +14 -0
  49. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +151 -0
  50. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +24 -0
  51. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +61 -0
  52. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +13 -0
  53. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +133 -0
  54. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +20 -0
  55. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +17 -0
  56. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +10 -0
  57. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +16 -0
  58. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +134 -0
  59. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +209 -0
  60. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  61. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +36 -0
  62. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +19 -0
  63. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +275 -0
  64. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +14 -0
  65. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +15 -0
  66. package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +49 -0
  67. package/lib/unimaze-billing/src/common/components/billing-lines/index.js +104 -0
  68. package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +7 -0
  69. package/lib/unimaze-billing/src/common/components/component-container/Content.js +13 -0
  70. package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +9 -0
  71. package/lib/unimaze-billing/src/common/components/component-container/Header.js +28 -0
  72. package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +12 -0
  73. package/lib/unimaze-billing/src/common/components/component-container/index.js +22 -0
  74. package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +17 -0
  75. package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +163 -0
  76. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +17 -0
  77. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +53 -0
  78. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +7 -0
  79. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +41 -0
  80. package/lib/unimaze-billing/src/common/components/customer/index.d.ts +26 -0
  81. package/lib/unimaze-billing/src/common/components/customer/index.js +166 -0
  82. package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +21 -0
  83. package/lib/unimaze-billing/src/common/components/date-picker/index.js +23 -0
  84. package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +12 -0
  85. package/lib/unimaze-billing/src/common/components/delivery-location/index.js +89 -0
  86. package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
  87. package/lib/unimaze-billing/src/common/components/editable-cell/index.js +295 -0
  88. package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +5 -0
  89. package/lib/unimaze-billing/src/common/components/editable-row/index.js +59 -0
  90. package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +35 -0
  91. package/lib/unimaze-billing/src/common/components/form-item/index.js +60 -0
  92. package/lib/unimaze-billing/src/common/components/index.d.ts +18 -0
  93. package/lib/unimaze-billing/src/common/components/index.js +42 -0
  94. package/lib/unimaze-billing/src/common/components/input/index.d.ts +23 -0
  95. package/lib/unimaze-billing/src/common/components/input/index.js +37 -0
  96. package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +42 -0
  97. package/lib/unimaze-billing/src/common/components/invoice/index.js +59 -0
  98. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +14 -0
  99. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +75 -0
  100. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +14 -0
  101. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +73 -0
  102. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +12 -0
  103. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +104 -0
  104. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +12 -0
  105. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +93 -0
  106. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +14 -0
  107. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +77 -0
  108. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +14 -0
  109. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +58 -0
  110. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +14 -0
  111. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +52 -0
  112. package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +102 -0
  113. package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +196 -0
  114. package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
  115. package/lib/unimaze-billing/src/common/components/locale-intl/index.js +51 -0
  116. package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +76 -0
  117. package/lib/unimaze-billing/src/common/components/payment-method/index.js +356 -0
  118. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +8 -0
  119. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +37 -0
  120. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
  121. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
  122. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +8 -0
  123. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +34 -0
  124. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +18 -0
  125. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +159 -0
  126. package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +94 -0
  127. package/lib/unimaze-billing/src/common/components/supplier/index.js +334 -0
  128. package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +7 -0
  129. package/lib/unimaze-billing/src/common/components/tooltip/index.js +15 -0
  130. package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +15 -0
  131. package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +26 -0
  132. package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +74 -0
  133. package/lib/unimaze-billing/src/common/consts/formLayout.js +45 -0
  134. package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +6 -0
  135. package/lib/unimaze-billing/src/common/consts/validationRules.js +69 -0
  136. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +5 -0
  137. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +8 -0
  138. package/lib/unimaze-billing/src/common/enums/index.d.ts +1 -0
  139. package/lib/unimaze-billing/src/common/enums/index.js +8 -0
  140. package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +26 -0
  141. package/lib/unimaze-billing/src/common/types/AppConfiguration.js +2 -0
  142. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +10 -0
  143. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +2 -0
  144. package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +33 -0
  145. package/lib/unimaze-billing/src/common/types/CommonProps.js +2 -0
  146. package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +1 -0
  147. package/lib/unimaze-billing/src/common/types/DiscountType.js +2 -0
  148. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +1 -0
  149. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +2 -0
  150. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +27 -0
  151. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +2 -0
  152. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +83 -0
  153. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +393 -0
  154. package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +11 -0
  155. package/lib/unimaze-billing/src/common/types/SupplierInfo.js +2 -0
  156. package/lib/unimaze-billing/src/common/types/index.d.ts +1 -0
  157. package/lib/unimaze-billing/src/common/types/index.js +17 -0
  158. package/lib/unimaze-billing/src/create-credit-note/index.d.ts +9 -0
  159. package/lib/unimaze-billing/src/create-credit-note/index.js +62 -0
  160. package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +11 -0
  161. package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +116 -0
  162. package/lib/unimaze-billing/src/create-invoice/index.d.ts +82 -0
  163. package/lib/unimaze-billing/src/create-invoice/index.js +710 -0
  164. package/lib/unimaze-billing/src/enums.d.ts +14 -0
  165. package/lib/unimaze-billing/src/enums.js +18 -0
  166. package/lib/unimaze-billing/src/index.d.ts +4 -0
  167. package/lib/unimaze-billing/src/index.js +28 -0
  168. package/lib/unimaze-billing/src/translations/locales/en.json +183 -0
  169. package/lib/unimaze-billing/src/translations/locales/is.json +183 -0
  170. package/lib/unimaze-billing/src/translations/locales.d.ts +369 -0
  171. package/lib/unimaze-billing/src/translations/locales.js +11 -0
  172. package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +29 -0
  173. package/lib/unimaze-billing/src/utils/ApiUtility.js +133 -0
  174. package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +25 -0
  175. package/lib/unimaze-billing/src/utils/BillingLineUtility.js +190 -0
  176. package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +9 -0
  177. package/lib/unimaze-billing/src/utils/ConversionUtility.js +222 -0
  178. package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +9 -0
  179. package/lib/unimaze-billing/src/utils/FileUploadUtility.js +45 -0
  180. package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +6 -0
  181. package/lib/unimaze-billing/src/utils/IntlUtility.js +78 -0
  182. package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +1 -0
  183. package/lib/unimaze-billing/src/utils/LocationUtility.js +81 -0
  184. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +7 -0
  185. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +26 -0
  186. package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +21 -0
  187. package/lib/unimaze-billing/src/utils/RequirementsUtility.js +237 -0
  188. package/lib/unimaze-billing/src/utils/index.d.ts +2 -0
  189. package/lib/unimaze-billing/src/utils/index.js +8 -0
  190. package/lib/utils/RequirementsUtility.d.ts +3 -2
  191. package/lib/utils/RequirementsUtility.js +12 -2
  192. package/package.json +1 -1
  193. package/lib/style/index.css +0 -51
@@ -1,4 +1,4 @@
1
- import { FieldValues, NewReceiverRequirements } from "../../types/NewReceiverRequirements";
1
+ import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
2
2
  import { WrappedComponentProps } from "react-intl";
3
3
  import { FormInstance } from "antd/es/form";
4
4
  import React from "react";
@@ -7,11 +7,9 @@ interface Props extends WrappedComponentProps {
7
7
  fieldName: any;
8
8
  invoiceLinesFormInstance: FormInstance;
9
9
  formInstance: FormInstance;
10
- currencies: FieldValues[];
11
10
  mobile: boolean;
12
11
  onSelect: (value: any) => void;
13
12
  disabled: boolean;
14
- callbackfn: (currency: FieldValues) => React.JSX.Element;
15
13
  }
16
14
  declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
17
15
  forwardedRef?: React.Ref<any>;
@@ -1,17 +1,54 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
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;
4
24
  };
5
25
  Object.defineProperty(exports, "__esModule", { value: true });
6
26
  var react_intl_1 = require("react-intl");
7
27
  var antd_1 = require("antd");
8
- var react_1 = __importDefault(require("react"));
9
- var form_item_1 = __importDefault(require("../form-item"));
10
- var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
28
+ var react_1 = __importStar(require("react"));
11
29
  var NewBillingLines_1 = require("./NewBillingLines");
30
+ var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
12
31
  var CurrencySelector = function (props) {
13
- var _a;
14
- return react_1.default.createElement(form_item_1.default, { receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields.currencyCode, defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_currencyCode), defaultIsRequired: true, fieldName: [props.fieldName, "currencyCode"], initialValue: (_a = props.invoiceLinesFormInstance.getFieldValue(["invoice", "currencyCode"])) !== null && _a !== void 0 ? _a : props.currencies[0].key, style: { marginBottom: "-2px" } },
15
- react_1.default.createElement(antd_1.Select, { popupMatchSelectWidth: false, style: { width: props.mobile ? 64 : "auto" }, placeholder: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_currencyCode), onSelect: props.onSelect, disabled: props.disabled }, props.currencies.map(props.callbackfn)));
32
+ var _a = (0, react_1.useState)([]), currencies = _a[0], setCurrencies = _a[1];
33
+ var _b = (0, react_1.useState)(), selectedValue = _b[0], setSelectedValue = _b[1];
34
+ (0, react_1.useEffect)(function () {
35
+ var currenciesFromReceiverRequirements = (0, RequirementsUtility_1.getCurrencies)(props.receiverRequirements, props.intl);
36
+ setCurrencies(currenciesFromReceiverRequirements);
37
+ if (props.formInstance.getFieldValue(["invoice", "currencyCode"])) {
38
+ currenciesFromReceiverRequirements.forEach(function (currency) {
39
+ if (currency.value === props.formInstance.getFieldValue(["invoice", "currencyCode"])) {
40
+ setSelectedValue(currency);
41
+ props.invoiceLinesFormInstance.setFieldsValue({ invoice: { currencyCode: currency.value } });
42
+ }
43
+ });
44
+ }
45
+ else {
46
+ setSelectedValue(currenciesFromReceiverRequirements[0]);
47
+ props.invoiceLinesFormInstance.setFieldsValue({ invoice: { currencyCode: currenciesFromReceiverRequirements[0].value } });
48
+ }
49
+ }, [props.receiverRequirements, props.formInstance.getFieldValue(["invoice", "currencyCode"])]);
50
+ return (react_1.default.createElement(antd_1.Select, { popupMatchSelectWidth: false, style: { width: props.mobile ? 64 : "auto" }, placeholder: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_currencyCode), value: selectedValue, onSelect: props.onSelect, disabled: props.disabled }, currencies.map(function (currency) {
51
+ return react_1.default.createElement(antd_1.Select.Option, { value: currency.value, key: currency.value }, currency.label);
52
+ })));
16
53
  };
17
54
  exports.default = (0, react_intl_1.injectIntl)(CurrencySelector);
@@ -39,7 +39,6 @@ exports.translationMessages = void 0;
39
39
  var react_1 = __importStar(require("react"));
40
40
  var react_intl_1 = require("react-intl");
41
41
  var antd_1 = require("antd");
42
- var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
43
42
  var SingleBillingLine_1 = __importDefault(require("./SingleBillingLine"));
44
43
  var enums_1 = require("../../../enums");
45
44
  exports.translationMessages = (0, react_intl_1.defineMessages)({
@@ -180,13 +179,6 @@ var BillingLines = function (props) {
180
179
  invoiceLines: [{}],
181
180
  }
182
181
  }), formData = _b[0], setFormData = _b[1];
183
- (0, react_1.useEffect)(function () {
184
- if (!props.formInstance.getFieldValue(["invoice", "currencyCode"])) {
185
- props.formInstance.setFieldsValue({
186
- invoice: { currencyCode: (0, RequirementsUtility_1.getCurrencies)(props.receiverRequirements, props.intl)[0].key },
187
- });
188
- }
189
- }, []);
190
182
  // INIT
191
183
  (0, react_1.useEffect)(function () {
192
184
  var _a;
@@ -0,0 +1,15 @@
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;
@@ -0,0 +1,36 @@
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;
@@ -221,14 +221,18 @@ var SingleBillingLine = function (props) {
221
221
  }
222
222
  return 0;
223
223
  };
224
- var currencySelectorCallbackFunction = function (currency) {
225
- return (React.createElement(antd_1.Select.Option, { value: currency.key, title: currency.name, key: currency.key }, currency.name));
226
- };
227
224
  var currencySelectorOnSelect = function (value) {
228
225
  props.invoiceLinesFormInstance.setFieldsValue({ invoice: { currencyCode: value } });
229
226
  props.formInstance.setFieldsValue({ invoice: { currencyCode: value } });
230
227
  };
231
228
  var discountTypeSelectorOnSelectHandle = function (value) { return setDiscountType(value); };
229
+ var handleAddNewLine = function (_fieldName) {
230
+ if (!props.formInstance.getFieldValue(["invoice", "currencyCode"])) {
231
+ var currencyFromLine = props.invoiceLinesFormInstance.getFieldValue(["invoice", "currencyCode"]);
232
+ props.formInstance.setFieldsValue({ invoice: { currencyCode: currencyFromLine } });
233
+ }
234
+ props.handleAddNewLine(_fieldName);
235
+ };
232
236
  var editingRender = (React.createElement(antd_1.Flex, { vertical: true, key: "invoiceLine-".concat(index) },
233
237
  React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.itemNo"], defaultIsRequired: false, fieldName: [fieldName, "itemNo"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_itemNo), verticalLabels: true, onlyLabelOnFirstInList: true }, (0, BillingLineUtility_1.getCorrectInputNode)("itemNo", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_itemNo), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.itemNo"], false))),
234
238
  React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.name"], defaultIsRequired: true, fieldName: [fieldName, "name"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_name), verticalLabels: true, onlyLabelOnFirstInList: true, index: index }, (0, BillingLineUtility_1.getCorrectInputNode)("name", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_name), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.name"], true))),
@@ -236,7 +240,7 @@ var SingleBillingLine = function (props) {
236
240
  React.createElement(antd_1.Col, { span: 12 },
237
241
  React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.quantity"], defaultIsRequired: true, fieldName: [fieldName, "quantity"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_quantity), verticalLabels: true, onlyLabelOnFirstInList: true, index: index }, (0, BillingLineUtility_1.getCorrectInputNode)("quantity", props.intl, props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_quantity), (0, RequirementsUtility_1.getFieldIsRequired)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.quantity"], true), React.createElement(UnitOfMeasureSelector_1.default, { receiverRequirements: props.receiverRequirements, fieldName: fieldName, mobile: isMobile })))),
238
242
  React.createElement(antd_1.Col, { span: 12 },
239
- React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], defaultIsRequired: true, fieldName: [fieldName, "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), React.createElement(CurrencySelector_1.default, { receiverRequirements: props.receiverRequirements, fieldName: fieldName, invoiceLinesFormInstance: props.invoiceLinesFormInstance, formInstance: props.formInstance, currencies: (0, RequirementsUtility_1.getCurrencies)(props.receiverRequirements, intl), mobile: isMobile, onSelect: currencySelectorOnSelect, disabled: isCurrencyDisabled, callbackfn: currencySelectorCallbackFunction }))))),
243
+ React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.unitPriceAmount"], defaultIsRequired: true, fieldName: [fieldName, "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), React.createElement(CurrencySelector_1.default, { receiverRequirements: props.receiverRequirements, fieldName: fieldName, invoiceLinesFormInstance: props.invoiceLinesFormInstance, formInstance: props.formInstance, mobile: isMobile, onSelect: currencySelectorOnSelect, disabled: isCurrencyDisabled }))))),
240
244
  React.createElement(form_item_1.default, { className: "umz_noValidationMessage", receiverRequirements: props.receiverRequirements, receiverRequirementsKey: ReceiverRequirements_1.AvailableFields["invoiceLines.taxableAmount"], defaultIsRequired: false, fieldName: [fieldName, "taxableAmount"], defaultLabel: props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_lineAmount), verticalLabels: true, onlyLabelOnFirstInList: true, index: index },
241
245
  React.createElement(antd_1.InputNumber, { style: { width: "100%" }, disabled: true, defaultValue: (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(getTaxableAmount(), props.intl) })),
242
246
  React.createElement(antd_1.Row, { gutter: 20 },
@@ -276,7 +280,7 @@ var SingleBillingLine = function (props) {
276
280
  React.createElement(tooltip_1.default, { title: (0, RequirementsUtility_1.getFieldLabelTooltipOverride)(props.receiverRequirements, ReceiverRequirements_1.AvailableFields["invoiceLines.discountValue"], props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_discount_helpText)) }))))),
277
281
  React.createElement(antd_1.Form.Item, __assign({}, formLayout_1.fullWidthInput),
278
282
  React.createElement(antd_1.Tooltip, { title: addNewLinesTooltip },
279
- React.createElement(antd_1.Button, { type: "primary", onClick: function () { return props.handleAddNewLine(fieldName); }, style: { width: "100%" }, disabled: isSaveButtonDisabled },
283
+ React.createElement(antd_1.Button, { type: "primary", onClick: function () { return handleAddNewLine(fieldName); }, style: { width: "100%" }, disabled: isSaveButtonDisabled },
280
284
  React.createElement(icons_1.CheckCircleOutlined, null),
281
285
  props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_labels_addButton))))));
282
286
  return (React.createElement(React.Fragment, null, isEditing
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
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)));
@@ -0,0 +1,109 @@
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
+ //
@@ -0,0 +1,110 @@
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
+ //
@@ -60,7 +60,7 @@
60
60
  "billingLines_each": "stk",
61
61
  "billingLines_input_must_be_number_validationMessage": "Inntak verður að vera tala",
62
62
  "billingLines_itemNo": "Vörunr.",
63
- "billingLines_labels_addButton": "Bæta við línu",
63
+ "billingLines_labels_addButton": "Vista línu",
64
64
  "billingLines_lineAmount": "Upphæð",
65
65
  "billingLines_lineDiscount": "afsláttur á línu",
66
66
  "billingLines_name": "Nafn",