@unimaze/billing 0.21.2 → 0.21.4

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 (231) hide show
  1. package/lib/common/components/CommonTranslations.d.ts +1 -29
  2. package/lib/common/components/CommonTranslations.js +4 -32
  3. package/lib/common/components/attachments/Attachment.d.ts +1 -1
  4. package/lib/common/components/attachments/AttachmentModal.d.ts +1 -1
  5. package/lib/common/components/attachments/index.d.ts +1 -1
  6. package/lib/common/components/base-information/AccountingCost.d.ts +1 -1
  7. package/lib/common/components/base-information/OrderReference.d.ts +1 -1
  8. package/lib/common/components/base-information/ProjectReference.d.ts +1 -1
  9. package/lib/common/components/base-information/ReferenceIdentifiers.d.ts +2 -1
  10. package/lib/common/components/base-information/ReferenceIdentifiers.js +29 -11
  11. package/lib/common/components/base-information/index.d.ts +10 -1
  12. package/lib/common/components/base-information/index.js +9 -1
  13. package/lib/common/components/billing-lines/BillingCalculations.d.ts +1 -1
  14. package/lib/common/components/billing-lines/BillingCalculations.js +5 -1
  15. package/lib/common/components/billing-lines/BillingLinePreview.d.ts +2 -1
  16. package/lib/common/components/billing-lines/BillingLinePreview.js +4 -2
  17. package/lib/common/components/billing-lines/BillingTaxSummary.d.ts +1 -1
  18. package/lib/common/components/billing-lines/BillingTaxSummary.js +0 -1
  19. package/lib/common/components/billing-lines/CurrencySelector.d.ts +20 -0
  20. package/lib/common/components/billing-lines/CurrencySelector.js +17 -0
  21. package/lib/common/components/billing-lines/DiscountTypeSelector.d.ts +10 -0
  22. package/lib/common/components/billing-lines/DiscountTypeSelector.js +16 -0
  23. package/lib/common/components/billing-lines/NewBillingLines.d.ts +2 -1
  24. package/lib/common/components/billing-lines/NewBillingLines.js +37 -327
  25. package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  26. package/lib/common/components/billing-lines/NewNewBillingLines.js +36 -0
  27. package/lib/common/components/billing-lines/SingleBillingLine.d.ts +19 -0
  28. package/lib/common/components/billing-lines/SingleBillingLine.js +262 -0
  29. package/lib/common/components/billing-lines/UnitOfMeasureSelector.d.ts +14 -0
  30. package/lib/common/components/billing-lines/UnitOfMeasureSelector.js +15 -0
  31. package/lib/common/components/billing-lines/cwdwdw.d.ts +1 -0
  32. package/lib/common/components/billing-lines/cwdwdw.js +14 -0
  33. package/lib/common/components/billing-lines/index.d.ts +3 -6
  34. package/lib/common/components/billing-lines/index.js +1 -1
  35. package/lib/common/components/customer/CostCenter.d.ts +1 -1
  36. package/lib/common/components/customer/CustomerContactName.d.ts +1 -1
  37. package/lib/common/components/customer/index.d.ts +1 -1
  38. package/lib/common/components/customer/index.js +6 -4
  39. package/lib/common/components/delivery-location/index.d.ts +1 -1
  40. package/lib/common/components/form-item/index.d.ts +1 -1
  41. package/lib/common/components/input/index.d.ts +1 -1
  42. package/lib/common/components/invoice/index.d.ts +3 -1
  43. package/lib/common/components/invoice/index.js +21 -14
  44. package/lib/common/components/invoice-preview/InvoicePreviewHeader.d.ts +1 -1
  45. package/lib/common/components/invoice-preview/InvoicePreviewHeader.js +7 -8
  46. package/lib/common/components/invoice-preview/index.d.ts +1 -1
  47. package/lib/common/components/invoice-preview/index.js +8 -2
  48. package/lib/common/components/payment-method/index.d.ts +1 -1
  49. package/lib/common/components/payment-method/index.js +22 -7
  50. package/lib/common/components/supplier/CityAutofill.d.ts +1 -1
  51. package/lib/common/components/supplier/index.d.ts +1 -1
  52. package/lib/common/components/welcome-modal/index.d.ts +1 -1
  53. package/lib/common/types/ReceiverRequirements.d.ts +2 -0
  54. package/lib/common/types/ReceiverRequirements.js +2 -0
  55. package/lib/create-invoice/index.d.ts +9 -1
  56. package/lib/create-invoice/index.js +88 -61
  57. package/lib/enums.d.ts +3 -0
  58. package/lib/translations/locales/en.json +7 -10
  59. package/lib/translations/locales/is.json +5 -8
  60. package/lib/translations/locales.d.ts +10 -16
  61. package/lib/unimaze-api-clients/src/mapi/api.d.ts +6664 -0
  62. package/lib/unimaze-api-clients/src/mapi/api.js +4743 -0
  63. package/lib/unimaze-api-clients/src/mapi/base.d.ts +55 -0
  64. package/lib/unimaze-api-clients/src/mapi/base.js +84 -0
  65. package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +63 -0
  66. package/lib/unimaze-api-clients/src/mapi/configuration.js +28 -0
  67. package/lib/unimaze-api-clients/src/mapi/index.d.ts +13 -0
  68. package/lib/unimaze-api-clients/src/mapi/index.js +30 -0
  69. package/lib/unimaze-api-clients/src/rapi/api.d.ts +5015 -0
  70. package/lib/unimaze-api-clients/src/rapi/api.js +5582 -0
  71. package/lib/unimaze-api-clients/src/rapi/base.d.ts +55 -0
  72. package/lib/unimaze-api-clients/src/rapi/base.js +84 -0
  73. package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +63 -0
  74. package/lib/unimaze-api-clients/src/rapi/configuration.js +28 -0
  75. package/lib/unimaze-api-clients/src/rapi/index.d.ts +13 -0
  76. package/lib/unimaze-api-clients/src/rapi/index.js +30 -0
  77. package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +102 -0
  78. package/lib/unimaze-billing/src/common/components/CommonTranslations.js +106 -0
  79. package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +20 -0
  80. package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +164 -0
  81. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +21 -0
  82. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +203 -0
  83. package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +27 -0
  84. package/lib/unimaze-billing/src/common/components/attachments/index.js +214 -0
  85. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +17 -0
  86. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +61 -0
  87. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +16 -0
  88. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +58 -0
  89. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +14 -0
  90. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +30 -0
  91. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +48 -0
  92. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +306 -0
  93. package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +68 -0
  94. package/lib/unimaze-billing/src/common/components/base-information/index.js +178 -0
  95. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +14 -0
  96. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +153 -0
  97. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +21 -0
  98. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +41 -0
  99. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +13 -0
  100. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +134 -0
  101. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +20 -0
  102. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +17 -0
  103. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +10 -0
  104. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +16 -0
  105. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +129 -0
  106. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +495 -0
  107. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  108. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +36 -0
  109. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +14 -0
  110. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +199 -0
  111. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +14 -0
  112. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +15 -0
  113. package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +52 -0
  114. package/lib/unimaze-billing/src/common/components/billing-lines/index.js +104 -0
  115. package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +7 -0
  116. package/lib/unimaze-billing/src/common/components/component-container/Content.js +13 -0
  117. package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +9 -0
  118. package/lib/unimaze-billing/src/common/components/component-container/Header.js +28 -0
  119. package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +12 -0
  120. package/lib/unimaze-billing/src/common/components/component-container/index.js +22 -0
  121. package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +17 -0
  122. package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +163 -0
  123. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +17 -0
  124. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +53 -0
  125. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +7 -0
  126. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +41 -0
  127. package/lib/unimaze-billing/src/common/components/customer/index.d.ts +26 -0
  128. package/lib/unimaze-billing/src/common/components/customer/index.js +168 -0
  129. package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +21 -0
  130. package/lib/unimaze-billing/src/common/components/date-picker/index.js +23 -0
  131. package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +12 -0
  132. package/lib/unimaze-billing/src/common/components/delivery-location/index.js +89 -0
  133. package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
  134. package/lib/unimaze-billing/src/common/components/editable-cell/index.js +295 -0
  135. package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +5 -0
  136. package/lib/unimaze-billing/src/common/components/editable-row/index.js +59 -0
  137. package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +35 -0
  138. package/lib/unimaze-billing/src/common/components/form-item/index.js +60 -0
  139. package/lib/unimaze-billing/src/common/components/index.d.ts +18 -0
  140. package/lib/unimaze-billing/src/common/components/index.js +42 -0
  141. package/lib/unimaze-billing/src/common/components/input/index.d.ts +23 -0
  142. package/lib/unimaze-billing/src/common/components/input/index.js +37 -0
  143. package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +40 -0
  144. package/lib/unimaze-billing/src/common/components/invoice/index.js +52 -0
  145. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +12 -0
  146. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +105 -0
  147. package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +16 -0
  148. package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +405 -0
  149. package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
  150. package/lib/unimaze-billing/src/common/components/locale-intl/index.js +51 -0
  151. package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +76 -0
  152. package/lib/unimaze-billing/src/common/components/payment-method/index.js +356 -0
  153. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +8 -0
  154. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +37 -0
  155. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
  156. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
  157. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +8 -0
  158. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +34 -0
  159. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +18 -0
  160. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +159 -0
  161. package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +94 -0
  162. package/lib/unimaze-billing/src/common/components/supplier/index.js +334 -0
  163. package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +7 -0
  164. package/lib/unimaze-billing/src/common/components/tooltip/index.js +15 -0
  165. package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +15 -0
  166. package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +26 -0
  167. package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +74 -0
  168. package/lib/unimaze-billing/src/common/consts/formLayout.js +45 -0
  169. package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +6 -0
  170. package/lib/unimaze-billing/src/common/consts/validationRules.js +69 -0
  171. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +5 -0
  172. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +8 -0
  173. package/lib/unimaze-billing/src/common/enums/index.d.ts +1 -0
  174. package/lib/unimaze-billing/src/common/enums/index.js +8 -0
  175. package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +23 -0
  176. package/lib/unimaze-billing/src/common/types/AppConfiguration.js +2 -0
  177. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +10 -0
  178. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +2 -0
  179. package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +33 -0
  180. package/lib/unimaze-billing/src/common/types/CommonProps.js +2 -0
  181. package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +1 -0
  182. package/lib/unimaze-billing/src/common/types/DiscountType.js +2 -0
  183. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +1 -0
  184. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +2 -0
  185. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +27 -0
  186. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +2 -0
  187. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +81 -0
  188. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +391 -0
  189. package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +11 -0
  190. package/lib/unimaze-billing/src/common/types/SupplierInfo.js +2 -0
  191. package/lib/unimaze-billing/src/common/types/index.d.ts +1 -0
  192. package/lib/unimaze-billing/src/common/types/index.js +17 -0
  193. package/lib/unimaze-billing/src/create-credit-note/index.d.ts +9 -0
  194. package/lib/unimaze-billing/src/create-credit-note/index.js +62 -0
  195. package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +11 -0
  196. package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +116 -0
  197. package/lib/unimaze-billing/src/create-invoice/index.d.ts +74 -0
  198. package/lib/unimaze-billing/src/create-invoice/index.js +680 -0
  199. package/lib/unimaze-billing/src/enums.d.ts +11 -0
  200. package/lib/unimaze-billing/src/enums.js +18 -0
  201. package/lib/unimaze-billing/src/index.d.ts +4 -0
  202. package/lib/unimaze-billing/src/index.js +28 -0
  203. package/lib/unimaze-billing/src/translations/locales/en.json +183 -0
  204. package/lib/unimaze-billing/src/translations/locales/is.json +183 -0
  205. package/lib/unimaze-billing/src/translations/locales.d.ts +369 -0
  206. package/lib/unimaze-billing/src/translations/locales.js +11 -0
  207. package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +23 -0
  208. package/lib/unimaze-billing/src/utils/ApiUtility.js +115 -0
  209. package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +22 -0
  210. package/lib/unimaze-billing/src/utils/BillingLineUtility.js +158 -0
  211. package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +9 -0
  212. package/lib/unimaze-billing/src/utils/ConversionUtility.js +223 -0
  213. package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +9 -0
  214. package/lib/unimaze-billing/src/utils/FileUploadUtility.js +45 -0
  215. package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +5 -0
  216. package/lib/unimaze-billing/src/utils/IntlUtility.js +55 -0
  217. package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +1 -0
  218. package/lib/unimaze-billing/src/utils/LocationUtility.js +81 -0
  219. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +7 -0
  220. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +26 -0
  221. package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +19 -0
  222. package/lib/unimaze-billing/src/utils/RequirementsUtility.js +189 -0
  223. package/lib/unimaze-billing/src/utils/index.d.ts +2 -0
  224. package/lib/unimaze-billing/src/utils/index.js +8 -0
  225. package/lib/utils/ApiUtility.d.ts +9 -3
  226. package/lib/utils/ApiUtility.js +30 -2
  227. package/lib/utils/BillingLineUtility.d.ts +3 -0
  228. package/lib/utils/BillingLineUtility.js +45 -2
  229. package/lib/utils/RequirementsUtility.d.ts +4 -1
  230. package/lib/utils/RequirementsUtility.js +56 -1
  231. package/package.json +2 -2
@@ -0,0 +1,153 @@
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_1 = __importStar(require("react"));
27
+ var antd_1 = require("antd");
28
+ var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
29
+ var api_1 = require("@unimaze/api-clients/lib/mapi/api");
30
+ var react_intl_1 = require("react-intl");
31
+ var IntlUtility_1 = require("../../../utils/IntlUtility");
32
+ var translationMessages = (0, react_intl_1.defineMessages)({
33
+ billingCalculations_labels_TaxAmountWithoutVat: {
34
+ id: "billingCalculations_labels_TaxAmountWithoutVat",
35
+ defaultMessage: "Total amount without VAT",
36
+ },
37
+ billingCalculations_labels_TotalVatAmount: {
38
+ id: "billingCalculations_labels_TotalVatAmount",
39
+ defaultMessage: "Total VAT amount",
40
+ },
41
+ billingCalculations_labels_TotalAmountWithVat: {
42
+ id: "billingCalculations_labels_TotalAmountWithVat",
43
+ defaultMessage: "Total amount with VAT",
44
+ },
45
+ billingCalculations_labels_AmountPayable: {
46
+ id: "billingCalculations_labels_AmountPayable",
47
+ defaultMessage: "Amount payable",
48
+ },
49
+ billingCalculations_labels_RoundingAmount: {
50
+ id: "billingCalculations_labels_RoundingAmount",
51
+ defaultMessage: "Rounding amount",
52
+ },
53
+ billingLines_discount: {
54
+ id: "billingLines_discount",
55
+ defaultMessage: "Discount",
56
+ },
57
+ });
58
+ ;
59
+ var BillingCalculations = function (props) {
60
+ var _a = (0, react_1.useState)(props.formInstance.getFieldValue(["invoice", "invoiceLines"])), invoiceLines = _a[0], setInvoiceLines = _a[1];
61
+ (0, react_1.useEffect)(function () {
62
+ setInvoiceLines(props.formInstance.getFieldValue(["invoice", "invoiceLines"]));
63
+ }, [props.outsideVatScope, props.formInstance.getFieldValue(["invoice", "invoiceLines"])]);
64
+ var totals = {
65
+ totalTaxableAmount: 0,
66
+ totalTaxAmount: 0,
67
+ totalTaxInclusiveAmount: 0,
68
+ roundingAmount: 0,
69
+ discountAmount: 0,
70
+ };
71
+ if (invoiceLines) {
72
+ invoiceLines.map(function (billingLine) {
73
+ if (billingLine) {
74
+ var taxAmount = (0, BillingLineUtility_1.calculateTaxAmount)((0, BillingLineUtility_1.calculateTaxableAmount)(billingLine.discountValue, billingLine.quantity, billingLine.unitPriceAmount, billingLine.discountType), (0, BillingLineUtility_1.calculateTaxPercentage)(billingLine.taxCategoryType ? api_1.TaxCategoryTypeEnum[billingLine.taxCategoryType] : undefined));
75
+ var taxableAmount = (0, BillingLineUtility_1.calculateTaxableAmount)(billingLine.discountValue, billingLine.quantity, billingLine.unitPriceAmount, billingLine.discountType);
76
+ var taxInclusiveAmount = taxableAmount + taxAmount;
77
+ var discountAmount = billingLine.discountType === "PERCENTAGE"
78
+ ? (0, BillingLineUtility_1.calculateDiscountAmount)(billingLine.discountValue, billingLine.quantity, billingLine.unitPriceAmount)
79
+ : billingLine.discountValue
80
+ ? parseFloat(billingLine.discountValue)
81
+ : 0;
82
+ totals = {
83
+ totalTaxAmount: totals.totalTaxAmount + taxAmount,
84
+ totalTaxableAmount: totals.totalTaxableAmount + taxableAmount,
85
+ totalTaxInclusiveAmount: totals.totalTaxInclusiveAmount + taxInclusiveAmount,
86
+ roundingAmount: Math.abs(totals.totalTaxInclusiveAmount +
87
+ taxInclusiveAmount -
88
+ Math.round(totals.totalTaxInclusiveAmount + taxInclusiveAmount)),
89
+ discountAmount: totals.discountAmount + discountAmount,
90
+ };
91
+ }
92
+ });
93
+ }
94
+ if (totals.totalTaxableAmount <= 0 || totals.totalTaxInclusiveAmount <= 0) {
95
+ return null;
96
+ }
97
+ var roundedAmount = Math.round(totals.totalTaxInclusiveAmount);
98
+ var roundingAmount = totals.totalTaxInclusiveAmount - roundedAmount;
99
+ return (react_1.default.createElement(antd_1.Flex, { vertical: true },
100
+ react_1.default.createElement(antd_1.Flex, { justify: "end", gap: 'large' },
101
+ react_1.default.createElement(antd_1.Flex, { vertical: true, style: { fontWeight: 300 } },
102
+ react_1.default.createElement(antd_1.Typography.Text, null,
103
+ props.intl.formatMessage(translationMessages.billingCalculations_labels_TaxAmountWithoutVat),
104
+ ":"),
105
+ react_1.default.createElement(antd_1.Typography.Text, null,
106
+ props.intl.formatMessage(translationMessages.billingCalculations_labels_TotalAmountWithVat),
107
+ ":"),
108
+ totals.discountAmount > 0 && (react_1.default.createElement(antd_1.Typography.Text, null,
109
+ props.intl.formatMessage(translationMessages.billingLines_discount),
110
+ ":")),
111
+ roundingAmount !== 0 && (react_1.default.createElement(antd_1.Typography.Text, null,
112
+ props.intl.formatMessage(translationMessages.billingCalculations_labels_RoundingAmount),
113
+ ":"))),
114
+ react_1.default.createElement(antd_1.Flex, { vertical: true },
115
+ react_1.default.createElement(antd_1.Typography.Text, { strong: true },
116
+ (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(totals.totalTaxableAmount, props.intl, {
117
+ style: "decimal",
118
+ }),
119
+ " ",
120
+ props.formInstance.getFieldValue(["invoice", "currencyCode"])),
121
+ react_1.default.createElement(antd_1.Typography.Text, { strong: true },
122
+ (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(totals.totalTaxInclusiveAmount, props.intl, {
123
+ style: "decimal",
124
+ }),
125
+ " ",
126
+ props.formInstance.getFieldValue(["invoice", "currencyCode"])),
127
+ totals.discountAmount > 0 && (react_1.default.createElement(antd_1.Typography.Text, { strong: true },
128
+ (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(totals.discountAmount, props.intl, {
129
+ style: "decimal",
130
+ }),
131
+ " ",
132
+ props.formInstance.getFieldValue(["invoice", "currencyCode"]))),
133
+ roundingAmount !== 0 && (react_1.default.createElement(antd_1.Typography.Text, { strong: true },
134
+ (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(roundingAmount, props.intl, {
135
+ style: "decimal",
136
+ }),
137
+ " ",
138
+ props.formInstance.getFieldValue(["invoice", "currencyCode"]))))),
139
+ react_1.default.createElement(antd_1.Row, null,
140
+ react_1.default.createElement(antd_1.Col, { span: 24 },
141
+ react_1.default.createElement("hr", null))),
142
+ react_1.default.createElement(antd_1.Flex, { justify: "end" },
143
+ react_1.default.createElement(antd_1.Typography.Text, { strong: true, style: { fontSize: "18px" } },
144
+ " ",
145
+ "=",
146
+ " ",
147
+ (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(roundedAmount, props.intl, {
148
+ style: "decimal",
149
+ }),
150
+ " ",
151
+ props.formInstance.getFieldValue(["invoice", "currencyCode"])))));
152
+ };
153
+ exports.default = (0, react_intl_1.injectIntl)(BillingCalculations);
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { AvailableTaxCategoryTypeEnum } from "../../../enums";
3
+ import { WrappedComponentProps } from "react-intl";
4
+ interface BillingLinePreviewProps extends WrappedComponentProps {
5
+ name?: string;
6
+ taxableAmount?: number;
7
+ quantity?: number;
8
+ unit?: string;
9
+ unitPriceAmount?: number;
10
+ taxCategoryType?: AvailableTaxCategoryTypeEnum;
11
+ discountValue?: string;
12
+ discountType?: string;
13
+ currencyCode: string;
14
+ onDelete: () => void;
15
+ }
16
+ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<BillingLinePreviewProps, "intl"> & {
17
+ forwardedRef?: React.Ref<any> | undefined;
18
+ } & React.RefAttributes<any>> & {
19
+ WrappedComponent: React.ComponentType<BillingLinePreviewProps>;
20
+ };
21
+ export default _default;
@@ -0,0 +1,41 @@
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 react_1 = __importDefault(require("react"));
7
+ var enums_1 = require("../../../enums");
8
+ var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
9
+ var antd_1 = require("antd");
10
+ var icons_1 = require("@ant-design/icons");
11
+ var NewBillingLines_1 = require("./NewBillingLines");
12
+ var react_intl_1 = require("react-intl");
13
+ var BillingLinePreview = function (props) {
14
+ var taxPercentage = (0, BillingLineUtility_1.calculateTaxPercentage)(enums_1.AvailableTaxCategoryTypeEnum[props.taxCategoryType]);
15
+ return (react_1.default.createElement(antd_1.Card, { style: { backgroundColor: "#F5F5F5", width: "full" }, size: "small", bordered: false },
16
+ react_1.default.createElement(antd_1.Flex, { gap: "middle", align: "center", justify: "space-between" },
17
+ react_1.default.createElement(antd_1.Flex, { vertical: true },
18
+ react_1.default.createElement(antd_1.Typography.Text, { strong: true },
19
+ props.name,
20
+ " = ",
21
+ props.taxableAmount,
22
+ " ",
23
+ props.currencyCode),
24
+ react_1.default.createElement(antd_1.Typography.Text, null,
25
+ props.quantity,
26
+ " ",
27
+ props.unit,
28
+ " | ",
29
+ props.unitPriceAmount,
30
+ " ",
31
+ props.currencyCode,
32
+ " / ",
33
+ props.unit,
34
+ " | ",
35
+ taxPercentage,
36
+ "%",
37
+ " ",
38
+ props.discountValue && " | ".concat(props.discountValue).concat(props.discountType === "PERCENTAGE" ? "%" : " ".concat(props.currencyCode), " ").concat(props.intl.formatMessage(NewBillingLines_1.translationMessages.billingLines_discount)))),
39
+ react_1.default.createElement(antd_1.Button, { onClick: props.onDelete, icon: react_1.default.createElement(icons_1.DeleteOutlined, null), type: "text", danger: true }))));
40
+ };
41
+ exports.default = (0, react_intl_1.injectIntl)(BillingLinePreview);
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { WrappedComponentProps } from "react-intl";
3
+ import { FormInstance } from "antd/es/form";
4
+ interface Props extends WrappedComponentProps {
5
+ formInstance: FormInstance;
6
+ outsideVatScope: boolean;
7
+ }
8
+ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
9
+ forwardedRef?: React.Ref<any> | undefined;
10
+ } & React.RefAttributes<any>> & {
11
+ WrappedComponent: React.ComponentType<Props>;
12
+ };
13
+ export default _default;
@@ -0,0 +1,134 @@
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
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
26
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
27
+ if (ar || !(i in from)) {
28
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
29
+ ar[i] = from[i];
30
+ }
31
+ }
32
+ return to.concat(ar || Array.prototype.slice.call(from));
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ var react_1 = __importStar(require("react"));
36
+ var antd_1 = require("antd");
37
+ var BillingLineUtility_1 = require("../../../utils/BillingLineUtility");
38
+ var api_1 = require("@unimaze/api-clients/lib/mapi/api");
39
+ var react_intl_1 = require("react-intl");
40
+ var CommonTranslations_1 = require("../CommonTranslations");
41
+ var IntlUtility_1 = require("../../../utils/IntlUtility");
42
+ var translationMessages = (0, react_intl_1.defineMessages)({
43
+ billingTaxSummary_taxOverview: {
44
+ id: "billingTaxSummary_taxOverview",
45
+ defaultMessage: "Tax overview"
46
+ },
47
+ billingTaxSummary_taxableAmount: {
48
+ id: "billingTaxSummary_taxableAmount",
49
+ defaultMessage: "Taxable amount"
50
+ },
51
+ billingTaxSummary_taxAmount: {
52
+ id: "billingTaxSummary_taxAmount",
53
+ defaultMessage: "Tax"
54
+ },
55
+ billingTaxSummary_taxCategoryType_labels_StandardRated: {
56
+ id: "billingTaxSummary_taxCategoryType_labels_StandardRated",
57
+ defaultMessage: "Standard rated",
58
+ },
59
+ billingTaxSummary_taxCategoryType_labels_ReducedRated: {
60
+ id: "billingTaxSummary_taxCategoryType_labels_ReducedRated",
61
+ defaultMessage: "Reduced rated",
62
+ },
63
+ billingTaxSummary_taxCategoryType_labels_ZeroRated: {
64
+ id: "billingTaxSummary_taxCategoryType_labels_ZeroRated",
65
+ defaultMessage: "Zero rated",
66
+ },
67
+ billingTaxSummary_taxCategoryType_labels_Exempt: {
68
+ id: "billingTaxSummary_taxCategoryType_labels_Exempt",
69
+ defaultMessage: "Exempt",
70
+ },
71
+ billingTaxSummary_taxCategoryType_labels_OutsideTaxScope: {
72
+ id: "billingTaxSummary_taxCategoryType_labels_OutsideTaxScope",
73
+ defaultMessage: "Outside tax scope",
74
+ },
75
+ });
76
+ ;
77
+ var BillingTaxSummary = function (props) {
78
+ var _a = (0, react_1.useState)(props.formInstance.getFieldValue(["invoice", "invoiceLines"])), invoiceLines = _a[0], setInvoiceLines = _a[1];
79
+ (0, react_1.useEffect)(function () {
80
+ setInvoiceLines(props.formInstance.getFieldValue(["invoice", "invoiceLines"]));
81
+ }, [props.outsideVatScope, props.formInstance.getFieldValue(["invoice", "invoiceLines"])]);
82
+ var dataSource = invoiceLines
83
+ ? invoiceLines.map(function (billingLine) {
84
+ var taxCategoryType = billingLine.taxCategoryType ? api_1.TaxCategoryTypeEnum[billingLine.taxCategoryType] : undefined;
85
+ var translationString = "taxCategoryType_labels_".concat(taxCategoryType);
86
+ var taxCategoryTypeTranslated = CommonTranslations_1.commonTranslationMessages.hasOwnProperty(translationString)
87
+ ? props.intl.formatMessage(CommonTranslations_1.commonTranslationMessages[translationString])
88
+ : "";
89
+ return {
90
+ taxOverview: (0, BillingLineUtility_1.generateTaxCategoryLabel)(taxCategoryType, taxCategoryTypeTranslated),
91
+ taxableAmount: (0, BillingLineUtility_1.calculateTaxableAmount)(billingLine.discountValue, billingLine.quantity, billingLine.unitPriceAmount, billingLine.discountType),
92
+ taxAmount: (0, BillingLineUtility_1.calculateTaxAmount)((0, BillingLineUtility_1.calculateTaxableAmount)(billingLine.discountValue, billingLine.quantity, billingLine.unitPriceAmount, billingLine.discountType), (0, BillingLineUtility_1.calculateTaxPercentage)(billingLine.taxCategoryType ? api_1.TaxCategoryTypeEnum[billingLine.taxCategoryType] : undefined))
93
+ };
94
+ })
95
+ : [];
96
+ var hlpArray = dataSource ? __spreadArray([], dataSource, true) : [];
97
+ var helper = {};
98
+ var result = hlpArray.reduce(function (r, o) {
99
+ var key = o.taxOverview;
100
+ if (!helper[key]) {
101
+ helper[key] = Object.assign({}, o); // create a copy of o
102
+ r.push(helper[key]);
103
+ }
104
+ else {
105
+ helper[key].taxAmount += o.taxAmount;
106
+ helper[key].taxableAmount += o.taxableAmount;
107
+ }
108
+ return r;
109
+ }, []);
110
+ var columns = [
111
+ {
112
+ title: props.intl.formatMessage(translationMessages.billingTaxSummary_taxOverview),
113
+ dataIndex: "taxOverview",
114
+ },
115
+ {
116
+ title: props.intl.formatMessage(translationMessages.billingTaxSummary_taxableAmount),
117
+ dataIndex: "taxableAmount",
118
+ render: function (value, record) {
119
+ return (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(record.taxableAmount, props.intl, { style: "decimal" });
120
+ }
121
+ },
122
+ {
123
+ title: props.intl.formatMessage(translationMessages.billingTaxSummary_taxAmount),
124
+ dataIndex: "taxAmount",
125
+ render: function (value, record) {
126
+ return (0, IntlUtility_1.icelandicNumberLocaleWorkaroundChrome)(record.taxAmount, props.intl, { style: "decimal" });
127
+ }
128
+ },
129
+ ];
130
+ return (react_1.default.createElement(antd_1.Table, { style: { minHeight: "170px" },
131
+ // showHeader={false}
132
+ columns: columns, dataSource: result, pagination: false, rowKey: (function (record, index) { return index.toString(); }) }));
133
+ };
134
+ exports.default = (0, react_intl_1.injectIntl)(BillingTaxSummary);
@@ -0,0 +1,20 @@
1
+ import { FieldValues, NewReceiverRequirements } from "../../types/NewReceiverRequirements";
2
+ import { WrappedComponentProps } from "react-intl";
3
+ import { FormInstance } from "antd/es/form";
4
+ import React from "react";
5
+ interface Props extends WrappedComponentProps {
6
+ receiverRequirements: NewReceiverRequirements;
7
+ fieldName: any;
8
+ formInstance: FormInstance;
9
+ currencies: FieldValues[];
10
+ mobile: boolean;
11
+ onSelect: (value: any) => void;
12
+ disabled: boolean;
13
+ callbackfn: (currency: FieldValues) => React.JSX.Element;
14
+ }
15
+ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
16
+ forwardedRef?: React.Ref<any>;
17
+ } & React.RefAttributes<any>> & {
18
+ WrappedComponent: React.ComponentType<Props>;
19
+ };
20
+ export default _default;
@@ -0,0 +1,17 @@
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 react_intl_1 = require("react-intl");
7
+ 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");
11
+ var NewBillingLines_1 = require("./NewBillingLines");
12
+ 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.formInstance.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)));
16
+ };
17
+ exports.default = (0, react_intl_1.injectIntl)(CurrencySelector);
@@ -0,0 +1,10 @@
1
+ import { FormInstance } from "antd/es/form";
2
+ import React from "react";
3
+ interface Props {
4
+ fieldName: any;
5
+ initialValue: "PERCENTAGE" | "AMOUNT";
6
+ onSelect: (value: any) => void;
7
+ formInstance: FormInstance;
8
+ }
9
+ export declare const DiscountTypeSelector: React.FC<Props>;
10
+ export default DiscountTypeSelector;
@@ -0,0 +1,16 @@
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
+ exports.DiscountTypeSelector = void 0;
7
+ var antd_1 = require("antd");
8
+ var react_1 = __importDefault(require("react"));
9
+ var DiscountTypeSelector = function (props) {
10
+ return (react_1.default.createElement(antd_1.Form.Item, { name: [props.fieldName, "discountType"], initialValue: props.initialValue, style: { marginBottom: "-2px" } },
11
+ react_1.default.createElement(antd_1.Select, { popupMatchSelectWidth: false, onSelect: props.onSelect, value: props.initialValue, style: { width: 90 } },
12
+ react_1.default.createElement(antd_1.Select.Option, { value: "AMOUNT" }, props.formInstance.getFieldValue(["invoice", "currencyCode"])),
13
+ react_1.default.createElement(antd_1.Select.Option, { value: "PERCENTAGE" }, "%"))));
14
+ };
15
+ exports.DiscountTypeSelector = DiscountTypeSelector;
16
+ exports.default = exports.DiscountTypeSelector;
@@ -0,0 +1,129 @@
1
+ import React from "react";
2
+ import { WrappedComponentProps } from "react-intl";
3
+ import { FormInstance } from "antd/es/form";
4
+ import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
5
+ export declare const translationMessages: {
6
+ billingLines_labels_addButton: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ billingLines_itemNo: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ billingLines_name: {
15
+ id: string;
16
+ defaultMessage: string;
17
+ };
18
+ billingLines_quantity: {
19
+ id: string;
20
+ defaultMessage: string;
21
+ };
22
+ billingLines_unitOfMeasure: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ };
26
+ billingLines_unitPriceAmount: {
27
+ id: string;
28
+ defaultMessage: string;
29
+ };
30
+ billingLines_taxCategoryType: {
31
+ id: string;
32
+ defaultMessage: string;
33
+ };
34
+ billingLines_taxCategoryType_title: {
35
+ id: string;
36
+ defaultMessage: string;
37
+ };
38
+ billingLines_taxCategoryPercentage: {
39
+ id: string;
40
+ defaultMessage: string;
41
+ };
42
+ billingLines_discount: {
43
+ id: string;
44
+ defaultMessage: string;
45
+ };
46
+ billingLines_discount_helpText: {
47
+ id: string;
48
+ defaultMessage: string;
49
+ };
50
+ billingLines_lineAmount: {
51
+ id: string;
52
+ defaultMessage: string;
53
+ };
54
+ billingLines_taxAmount: {
55
+ id: string;
56
+ defaultMessage: string;
57
+ };
58
+ billingLines_currencyCode: {
59
+ id: string;
60
+ defaultMessage: string;
61
+ };
62
+ billingLines_currency_ISK: {
63
+ id: string;
64
+ defaultMessage: string;
65
+ };
66
+ billingLines_currency_ISK_short: {
67
+ id: string;
68
+ defaultMessage: string;
69
+ };
70
+ billingLines_currency_DKK: {
71
+ id: string;
72
+ defaultMessage: string;
73
+ };
74
+ billingLines_currency_DKK_short: {
75
+ id: string;
76
+ defaultMessage: string;
77
+ };
78
+ billingLines_currency_NOK: {
79
+ id: string;
80
+ defaultMessage: string;
81
+ };
82
+ billingLines_currency_NOK_short: {
83
+ id: string;
84
+ defaultMessage: string;
85
+ };
86
+ billingLines_currency_SEK: {
87
+ id: string;
88
+ defaultMessage: string;
89
+ };
90
+ billingLines_currency_SEK_short: {
91
+ id: string;
92
+ defaultMessage: string;
93
+ };
94
+ billingLines_currency_EUR: {
95
+ id: string;
96
+ defaultMessage: string;
97
+ };
98
+ billingLines_currency_EUR_short: {
99
+ id: string;
100
+ defaultMessage: string;
101
+ };
102
+ billingLines_currency_USD: {
103
+ id: string;
104
+ defaultMessage: string;
105
+ };
106
+ billingLines_currency_USD_short: {
107
+ id: string;
108
+ defaultMessage: string;
109
+ };
110
+ billingLines_currency_GBP: {
111
+ id: string;
112
+ defaultMessage: string;
113
+ };
114
+ billingLines_currency_GBP_short: {
115
+ id: string;
116
+ defaultMessage: string;
117
+ };
118
+ };
119
+ interface Props extends WrappedComponentProps {
120
+ receiverRequirements: NewReceiverRequirements;
121
+ formInstance: FormInstance;
122
+ outsideVatScope: boolean;
123
+ }
124
+ declare const BillingLinesWithIntl: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
125
+ forwardedRef?: React.Ref<any> | undefined;
126
+ } & React.RefAttributes<any>> & {
127
+ WrappedComponent: React.ComponentType<Props>;
128
+ };
129
+ export default BillingLinesWithIntl;