@unimaze/billing 0.21.52 → 0.21.53

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 (187) hide show
  1. package/lib/create-invoice/index.js +5 -0
  2. package/lib/style/index.css +51 -0
  3. package/package.json +2 -10
  4. package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
  5. package/lib/common/components/billing-lines/NewNewBillingLines.js +0 -36
  6. package/lib/common/components/billing-lines/cwdwdw.d.ts +0 -1
  7. package/lib/common/components/billing-lines/cwdwdw.js +0 -14
  8. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
  9. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -109
  10. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
  11. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -110
  12. package/lib/unimaze-api-clients/src/mapi/api.d.ts +0 -6664
  13. package/lib/unimaze-api-clients/src/mapi/api.js +0 -4743
  14. package/lib/unimaze-api-clients/src/mapi/base.d.ts +0 -55
  15. package/lib/unimaze-api-clients/src/mapi/base.js +0 -84
  16. package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +0 -63
  17. package/lib/unimaze-api-clients/src/mapi/configuration.js +0 -28
  18. package/lib/unimaze-api-clients/src/mapi/index.d.ts +0 -13
  19. package/lib/unimaze-api-clients/src/mapi/index.js +0 -30
  20. package/lib/unimaze-api-clients/src/rapi/api.d.ts +0 -5015
  21. package/lib/unimaze-api-clients/src/rapi/api.js +0 -5582
  22. package/lib/unimaze-api-clients/src/rapi/base.d.ts +0 -55
  23. package/lib/unimaze-api-clients/src/rapi/base.js +0 -84
  24. package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +0 -63
  25. package/lib/unimaze-api-clients/src/rapi/configuration.js +0 -28
  26. package/lib/unimaze-api-clients/src/rapi/index.d.ts +0 -13
  27. package/lib/unimaze-api-clients/src/rapi/index.js +0 -30
  28. package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +0 -74
  29. package/lib/unimaze-billing/src/common/components/CommonTranslations.js +0 -78
  30. package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +0 -20
  31. package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +0 -164
  32. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +0 -21
  33. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +0 -206
  34. package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +0 -27
  35. package/lib/unimaze-billing/src/common/components/attachments/index.js +0 -214
  36. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +0 -17
  37. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +0 -61
  38. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +0 -16
  39. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +0 -58
  40. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +0 -14
  41. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +0 -30
  42. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -53
  43. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +0 -328
  44. package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +0 -77
  45. package/lib/unimaze-billing/src/common/components/base-information/index.js +0 -186
  46. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +0 -14
  47. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +0 -151
  48. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +0 -24
  49. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +0 -61
  50. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -13
  51. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +0 -133
  52. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +0 -20
  53. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +0 -17
  54. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +0 -10
  55. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +0 -16
  56. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +0 -134
  57. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +0 -209
  58. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
  59. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +0 -36
  60. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +0 -19
  61. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +0 -275
  62. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +0 -14
  63. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +0 -15
  64. package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +0 -49
  65. package/lib/unimaze-billing/src/common/components/billing-lines/index.js +0 -104
  66. package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +0 -7
  67. package/lib/unimaze-billing/src/common/components/component-container/Content.js +0 -13
  68. package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +0 -9
  69. package/lib/unimaze-billing/src/common/components/component-container/Header.js +0 -28
  70. package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +0 -12
  71. package/lib/unimaze-billing/src/common/components/component-container/index.js +0 -22
  72. package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +0 -17
  73. package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +0 -163
  74. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +0 -17
  75. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +0 -53
  76. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +0 -7
  77. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +0 -41
  78. package/lib/unimaze-billing/src/common/components/customer/index.d.ts +0 -26
  79. package/lib/unimaze-billing/src/common/components/customer/index.js +0 -166
  80. package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +0 -21
  81. package/lib/unimaze-billing/src/common/components/date-picker/index.js +0 -23
  82. package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +0 -12
  83. package/lib/unimaze-billing/src/common/components/delivery-location/index.js +0 -89
  84. package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
  85. package/lib/unimaze-billing/src/common/components/editable-cell/index.js +0 -295
  86. package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +0 -5
  87. package/lib/unimaze-billing/src/common/components/editable-row/index.js +0 -59
  88. package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +0 -35
  89. package/lib/unimaze-billing/src/common/components/form-item/index.js +0 -60
  90. package/lib/unimaze-billing/src/common/components/index.d.ts +0 -18
  91. package/lib/unimaze-billing/src/common/components/index.js +0 -42
  92. package/lib/unimaze-billing/src/common/components/input/index.d.ts +0 -23
  93. package/lib/unimaze-billing/src/common/components/input/index.js +0 -37
  94. package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +0 -42
  95. package/lib/unimaze-billing/src/common/components/invoice/index.js +0 -59
  96. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -14
  97. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -75
  98. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +0 -14
  99. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +0 -73
  100. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +0 -12
  101. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +0 -104
  102. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +0 -12
  103. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +0 -93
  104. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -14
  105. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -77
  106. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +0 -14
  107. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +0 -58
  108. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +0 -14
  109. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +0 -52
  110. package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +0 -102
  111. package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +0 -196
  112. package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
  113. package/lib/unimaze-billing/src/common/components/locale-intl/index.js +0 -51
  114. package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +0 -76
  115. package/lib/unimaze-billing/src/common/components/payment-method/index.js +0 -356
  116. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +0 -8
  117. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +0 -37
  118. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +0 -3
  119. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +0 -17
  120. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +0 -8
  121. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +0 -34
  122. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +0 -18
  123. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +0 -159
  124. package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +0 -94
  125. package/lib/unimaze-billing/src/common/components/supplier/index.js +0 -334
  126. package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +0 -7
  127. package/lib/unimaze-billing/src/common/components/tooltip/index.js +0 -15
  128. package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +0 -15
  129. package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +0 -26
  130. package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +0 -74
  131. package/lib/unimaze-billing/src/common/consts/formLayout.js +0 -45
  132. package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +0 -6
  133. package/lib/unimaze-billing/src/common/consts/validationRules.js +0 -69
  134. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +0 -5
  135. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +0 -8
  136. package/lib/unimaze-billing/src/common/enums/index.d.ts +0 -1
  137. package/lib/unimaze-billing/src/common/enums/index.js +0 -8
  138. package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +0 -26
  139. package/lib/unimaze-billing/src/common/types/AppConfiguration.js +0 -2
  140. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +0 -10
  141. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +0 -2
  142. package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +0 -33
  143. package/lib/unimaze-billing/src/common/types/CommonProps.js +0 -2
  144. package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +0 -1
  145. package/lib/unimaze-billing/src/common/types/DiscountType.js +0 -2
  146. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +0 -1
  147. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +0 -2
  148. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +0 -27
  149. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +0 -2
  150. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +0 -83
  151. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +0 -393
  152. package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +0 -11
  153. package/lib/unimaze-billing/src/common/types/SupplierInfo.js +0 -2
  154. package/lib/unimaze-billing/src/common/types/index.d.ts +0 -1
  155. package/lib/unimaze-billing/src/common/types/index.js +0 -17
  156. package/lib/unimaze-billing/src/create-credit-note/index.d.ts +0 -9
  157. package/lib/unimaze-billing/src/create-credit-note/index.js +0 -62
  158. package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +0 -11
  159. package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +0 -116
  160. package/lib/unimaze-billing/src/create-invoice/index.d.ts +0 -82
  161. package/lib/unimaze-billing/src/create-invoice/index.js +0 -710
  162. package/lib/unimaze-billing/src/enums.d.ts +0 -14
  163. package/lib/unimaze-billing/src/enums.js +0 -18
  164. package/lib/unimaze-billing/src/index.d.ts +0 -4
  165. package/lib/unimaze-billing/src/index.js +0 -28
  166. package/lib/unimaze-billing/src/translations/locales/en.json +0 -183
  167. package/lib/unimaze-billing/src/translations/locales/is.json +0 -183
  168. package/lib/unimaze-billing/src/translations/locales.d.ts +0 -369
  169. package/lib/unimaze-billing/src/translations/locales.js +0 -11
  170. package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +0 -29
  171. package/lib/unimaze-billing/src/utils/ApiUtility.js +0 -133
  172. package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +0 -25
  173. package/lib/unimaze-billing/src/utils/BillingLineUtility.js +0 -190
  174. package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +0 -9
  175. package/lib/unimaze-billing/src/utils/ConversionUtility.js +0 -222
  176. package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +0 -9
  177. package/lib/unimaze-billing/src/utils/FileUploadUtility.js +0 -45
  178. package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +0 -6
  179. package/lib/unimaze-billing/src/utils/IntlUtility.js +0 -78
  180. package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +0 -1
  181. package/lib/unimaze-billing/src/utils/LocationUtility.js +0 -81
  182. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +0 -7
  183. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +0 -26
  184. package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +0 -21
  185. package/lib/unimaze-billing/src/utils/RequirementsUtility.js +0 -237
  186. package/lib/unimaze-billing/src/utils/index.d.ts +0 -2
  187. package/lib/unimaze-billing/src/utils/index.js +0 -8
@@ -1,393 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AvailableFields = void 0;
4
- var AvailableFields;
5
- (function (AvailableFields) {
6
- AvailableFields["invoiceNo"] = "invoiceNo";
7
- AvailableFields["issueDate"] = "issueDate";
8
- AvailableFields["dueDate"] = "dueDate";
9
- AvailableFields["graceDate"] = "graceDate";
10
- AvailableFields["currencyCode"] = "currencyCode";
11
- AvailableFields["notes"] = "notes";
12
- AvailableFields["accountingCost"] = "accountingCost";
13
- AvailableFields["buyerReference"] = "buyerReference";
14
- AvailableFields["documentReferences.project.documentNo"] = "documentReferences.project.documentNo";
15
- AvailableFields["orderReference.documentNo"] = "orderReference.documentNo";
16
- AvailableFields["billingReferences.invoices"] = "billingReferences.invoices";
17
- AvailableFields["billingReferences.documentNo"] = "billingReferences.documentNo";
18
- AvailableFields["billingReferences.issueDate"] = "billingReferences.issueDate";
19
- AvailableFields["billingReferences.creditNotes"] = "billingReferences.creditNotes";
20
- AvailableFields["referenceIdentifiers.type"] = "referenceIdentifiers.type";
21
- AvailableFields["referenceIdentifiers.code"] = "referenceIdentifiers.code";
22
- AvailableFields["referenceIdentifiers.value"] = "referenceIdentifiers.value";
23
- AvailableFields["referenceIdentifier.*"] = "referenceIdentifier.*";
24
- AvailableFields["singleReferenceIdentifier"] = "singleReferenceIdentifier";
25
- AvailableFields["referenceIdentifiers"] = "referenceIdentifiers";
26
- AvailableFields["supplier.vatNumber"] = "supplier.vatNumber";
27
- AvailableFields["supplier.address.streetNameAndNumber"] = "supplier.address.streetNameAndNumber";
28
- AvailableFields["supplier.address.city"] = "supplier.address.city";
29
- AvailableFields["supplier.address.postalZone"] = "supplier.address.postalZone";
30
- AvailableFields["supplier.address.countryCode"] = "supplier.address.countryCode";
31
- AvailableFields["supplier.contact.name"] = "supplier.contact.name";
32
- AvailableFields["supplier.contact.electronicMail"] = "supplier.contact.electronicMail";
33
- AvailableFields["supplier.contact.telephone"] = "supplier.contact.telephone";
34
- AvailableFields["supplier.name"] = "supplier.name";
35
- AvailableFields["supplier.identifier"] = "supplier.identifier";
36
- AvailableFields["customer.address.streetNameAndNumber"] = "customer.address.streetNameAndNumber";
37
- AvailableFields["customer.address.city"] = "customer.address.city";
38
- AvailableFields["customer.address.postalZone"] = "customer.address.postalZone";
39
- AvailableFields["customer.address.countryCode"] = "customer.address.countryCode";
40
- AvailableFields["customer.contact.name"] = "customer.contact.name";
41
- AvailableFields["customer.contact.electronicMail"] = "customer.contact.electronicMail";
42
- AvailableFields["customer.contact.telephone"] = "customer.contact.telephone";
43
- AvailableFields["customer.name"] = "customer.name";
44
- AvailableFields["customer.identifier"] = "customer.identifier";
45
- AvailableFields["customer.locationIdentifier"] = "customer.locationIdentifier";
46
- AvailableFields["payee.name"] = "payee.name";
47
- AvailableFields["payee.identifier"] = "payee.identifier";
48
- AvailableFields["payee.sepaBankIdentification"] = "payee.sepaBankIdentification";
49
- AvailableFields["invoiceLines.itemNo"] = "invoiceLines.itemNo";
50
- AvailableFields["invoiceLines.name"] = "invoiceLines.name";
51
- AvailableFields["invoiceLines.quantity"] = "invoiceLines.quantity";
52
- AvailableFields["invoiceLines.uniteOfMeasure.unit"] = "invoiceLines.unitOfMeasure.unit";
53
- AvailableFields["invoiceLines.uniteOfMeasure.code"] = "invoiceLines.unitOfMeasure.code";
54
- AvailableFields["invoiceLines.unitPriceAmount"] = "invoiceLines.unitPriceAmount";
55
- AvailableFields["invoiceLines.taxCategoryType"] = "invoiceLines.taxCategoryType";
56
- AvailableFields["invoiceLines.taxableAmount"] = "invoiceLines.taxableAmount";
57
- AvailableFields["invoiceLines.taxAmount"] = "invoiceLines.taxAmount";
58
- AvailableFields["invoiceLines.taxPercentage"] = "invoiceLines.taxPercentage";
59
- AvailableFields["invoiceLines.discountValue"] = "invoiceLines.discountValue";
60
- AvailableFields["paymentTerms.note"] = "paymentTerms.note";
61
- AvailableFields["paymentMeans.type"] = "paymentMeans.type";
62
- AvailableFields["paymentMeans.internationalTransfer"] = "paymentMeans.internationalTransfer";
63
- AvailableFields["paymentMeans.domesticTransfer"] = "paymentMeans.domesticTransfer";
64
- AvailableFields["paymentMeans.domesticClaim"] = "paymentMeans.domesticClaim";
65
- AvailableFields["delivery.partyName"] = "delivery.partyName";
66
- AvailableFields["delivery.locationIdentifier"] = "delivery.locationIdentifier";
67
- AvailableFields["delivery.address.streetNameAndNumber"] = "delivery.address.streetNameAndNumber";
68
- AvailableFields["delivery.address.city"] = "delivery.address.city";
69
- AvailableFields["delivery.address.postalZone"] = "delivery.address.postalZone";
70
- AvailableFields["delivery.address.countryCode"] = "delivery.address.countryCode";
71
- AvailableFields["delivery.actualDeliveryDate"] = "delivery.actualDeliveryDate";
72
- AvailableFields["prepaidAmount"] = "prepaidAmount";
73
- AvailableFields["payableAmount"] = "payableAmount";
74
- AvailableFields["payableRoundingAmount"] = "payableRoundingAmount";
75
- })(AvailableFields = exports.AvailableFields || (exports.AvailableFields = {}));
76
- // export const receiverRequirementsObject: ReceiverRequirements = {
77
- // invoiceNo: {
78
- // isRequired: true,
79
- // key: "",
80
- // },
81
- // issueDate: {
82
- // isRequired: true,
83
- // key: "",
84
- // },
85
- // dueDate: {
86
- // isRequired: true,
87
- // key: "",
88
- // },
89
- // graceDate: {
90
- // isRequired: false,
91
- // key: "",
92
- // },
93
- // currencyCode: {
94
- // isRequired: true,
95
- // key: "",
96
- // values: [{
97
- // key: "ISK",
98
- // // label: "Icelandic krona (ISK)"
99
- // label: "Íslensk króna (ISK)"
100
- // }]
101
- // },
102
- // notes: {
103
- // isRequired: false,
104
- // key: "",
105
- // },
106
- // accountingCost: {
107
- // isRequired: false,
108
- // key: "",
109
- // },
110
- // buyerReference: {
111
- // isRequired: true,
112
- // key: "",
113
- // label: "Tjónsnúmer / Tilvísun kaupanda" // Claim number / Buyer reference
114
- // },
115
- // "orderReference.documentNo": {
116
- // isRequired: true,
117
- // key: "",
118
- // },
119
- // "billingReferences.invoices": {
120
- // isRequired: false,
121
- // key: "",
122
- // },
123
- // "billingReferences.documentNo": {
124
- // isRequired: true,
125
- // key: "",
126
- // },
127
- // "billingReferences.issueDate": {
128
- // isRequired: false,
129
- // key: "",
130
- // },
131
- // "billingReferences.creditNotes": {
132
- // isRequired: false,
133
- // key: "",
134
- // },
135
- // // "referenceIdentifiers.type": {
136
- // // isRequired: false,
137
- // // key: "",
138
- // // label: "Reference identifier type"
139
- // // },
140
- // // "referenceIdentifiers.code": {
141
- // // isRequired: false,
142
- // // key: "",
143
- // // label: "Reference identifier code"
144
- // // },
145
- // // "referenceIdentifiers.value": {
146
- // // isRequired: true,
147
- // // key: "",
148
- // // label: "Reference identifier value"
149
- // // },
150
- // "referenceIdentifiers": {
151
- // "isRequired": true,
152
- // "key": "",
153
- // "values": [
154
- // {
155
- // "key": "AKY",
156
- // "label": "Bílnúmer",
157
- // "values": [
158
- // {
159
- // "key": "NY753",
160
- // "label": "NY753"
161
- // }, // displaed as "NY753"
162
- // {
163
- // "key": "IS123"
164
- // }, // display key
165
- // {
166
- // "key": "RR888"
167
- // }, // display key
168
- // ]
169
- // },
170
- // {
171
- // "key": "ARR", // WAS SSN!!!!
172
- // "label": "Kennitala" // "Social security number"
173
- // },
174
- // {
175
- // "key": "LOC",
176
- // "label": "Fasteignanúmer", // Place or location identifier
177
- // "values": [{
178
- // "key": "30909",
179
- // "label": "Mýrargata 26 (30909)"
180
- // }, // displayed as "Mýrargata 26 (30909)"
181
- // {
182
- // "key": "34344",
183
- // "label": "Aragata 1 (34344)"
184
- // }, // displayed as "Aragata (34344)"
185
- // ]
186
- // }
187
- // ]
188
- // },
189
- //
190
- // "supplier.vatNumber": {
191
- // isRequired: false, // NBNB: this is by request from Sjova, but as the VAT number is required in model validation, we are inserting N/A if this field is empty
192
- // key: "",
193
- // },
194
- // "supplier.address.streetNameAndNumber": {
195
- // isRequired: true,
196
- // key: "",
197
- // },
198
- // "supplier.address.city": {
199
- // isRequired: false,
200
- // key: "",
201
- // },
202
- // "supplier.address.postalZone": {
203
- // isRequired: false,
204
- // key: "",
205
- // },
206
- // "supplier.address.countryCode": {
207
- // isRequired: true,
208
- // key: "",
209
- // },
210
- // "supplier.contact.name": {
211
- // isRequired: false,
212
- // key: "",
213
- // },
214
- // "supplier.contact.electronicMail": {
215
- // isRequired: false,
216
- // key: "",
217
- // },
218
- // "supplier.contact.telephone": {
219
- // isRequired: false,
220
- // key: "",
221
- // },
222
- // "supplier.name": {
223
- // isRequired: true,
224
- // key: "",
225
- // },
226
- // "supplier.identifier": {
227
- // isRequired: true,
228
- // key: "",
229
- // },
230
- //
231
- // "customer.address.streetNameAndNumber": {
232
- // isRequired: true,
233
- // key: "",
234
- // },
235
- // "customer.address.city": {
236
- // isRequired: false,
237
- // key: "",
238
- // },
239
- // "customer.address.postalZone": {
240
- // isRequired: false,
241
- // key: "",
242
- // },
243
- // "customer.address.countryCode": {
244
- // isRequired: true,
245
- // key: "",
246
- // },
247
- // "customer.contact.name": {
248
- // isRequired: false,
249
- // key: "",
250
- // },
251
- // "customer.contact.electronicMail": {
252
- // isRequired: false,
253
- // key: "",
254
- // },
255
- // "customer.contact.telephone": {
256
- // isRequired: false,
257
- // key: "",
258
- // },
259
- // "customer.name": {
260
- // isRequired: true,
261
- // key: "",
262
- // },
263
- // "customer.identifier": {
264
- // isRequired: true,
265
- // key: "",
266
- // },
267
- // "customer.locationIdentifier": {
268
- // isRequired: false,
269
- // key: "",
270
- // },
271
- //
272
- // "payee.name": {
273
- // isRequired: true,
274
- // key: "",
275
- // },
276
- // "payee.identifier": {
277
- // isRequired: true,
278
- // key: "",
279
- // },
280
- // "payee.sepaBankIdentification": {
281
- // isRequired: false,
282
- // key: "",
283
- // },
284
- //
285
- // "invoiceLines.itemNo": {
286
- // isRequired: true,
287
- // key: "",
288
- // },
289
- // "invoiceLines.name": {
290
- // isRequired: true,
291
- // key: "",
292
- // },
293
- // "invoiceLines.quantity": {
294
- // isRequired: true,
295
- // key: "",
296
- // },
297
- // "invoiceLines.unitOfMeasure.unit": {
298
- // isRequired: true,
299
- // key: "",
300
- // },
301
- // "invoiceLines.unitOfMeasure.code": {
302
- // isRequired: true,
303
- // key: "",
304
- // },
305
- // "invoiceLines.unitPriceAmount": {
306
- // isRequired: true,
307
- // key: "",
308
- // },
309
- // "invoiceLines.taxCategoryType": {
310
- // isRequired: true,
311
- // key: "",
312
- // },
313
- // "invoiceLines.taxAmount": {
314
- // isRequired: true,
315
- // key: "",
316
- // },
317
- // "invoiceLines.taxableAmount": {
318
- // isRequired: true,
319
- // key: "",
320
- // },
321
- // "invoiceLines.taxPercentage": {
322
- // isRequired: true,
323
- // key: "",
324
- // },
325
- // "invoiceLines.discountValue": {
326
- // isRequired: true,
327
- // key: "",
328
- // },
329
- //
330
- // "paymentTerms.note": {
331
- // isRequired: false,
332
- // key: "",
333
- // },
334
- // "paymentMeans.type": {
335
- // isRequired: true,
336
- // key: "",
337
- // },
338
- //
339
- // "paymentMeans.internationalTransfer": {
340
- // isRequired: false,
341
- // key: "",
342
- // },
343
- // "paymentMeans.domesticTransfer": {
344
- // isRequired: false,
345
- // key: "",
346
- // },
347
- // "paymentMeans.domesticClaim": {
348
- // isRequired: false,
349
- // key: "",
350
- // },
351
- //
352
- // "delivery.partyName": {
353
- // isRequired: false,
354
- // key: "",
355
- // },
356
- // "delivery.locationIdentifier": {
357
- // isRequired: false,
358
- // key: "",
359
- // },
360
- // "delivery.address.streetNameAndNumber": {
361
- // isRequired: false, // ??
362
- // key: "",
363
- // },
364
- // "delivery.address.city": {
365
- // isRequired: false,
366
- // key: "",
367
- // },
368
- // "delivery.address.postalZone": {
369
- // isRequired: false,
370
- // key: "",
371
- // },
372
- // "delivery.address.countryCode": {
373
- // isRequired: false, // ??
374
- // key: "",
375
- // },
376
- // "delivery.actualDeliveryDate": {
377
- // isRequired: false,
378
- // key: "",
379
- // },
380
- //
381
- // prepaidAmount: {
382
- // isRequired: false,
383
- // key: "",
384
- // },
385
- // payableAmount: {
386
- // isRequired: false,
387
- // key: "",
388
- // },
389
- // payableRoundingAmount: {
390
- // isRequired: false,
391
- // key: "",
392
- // }
393
- // };
@@ -1,11 +0,0 @@
1
- export interface SuplierOutput {
2
- city: string;
3
- country: string;
4
- id: number;
5
- legalIsoIdentifier: string;
6
- legalName: string;
7
- postalCode: string;
8
- refreshTimestamp: Date;
9
- status: string;
10
- streetAndNumber: string;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./";
@@ -1,17 +0,0 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./"), exports);
@@ -1,9 +0,0 @@
1
- import "../style/index.css";
2
- import React from "react";
3
- import { CommonProps } from "../common/types/CommonProps";
4
- import { ProfileOutputWithApiKey } from "../common/types/AppConfiguration";
5
- interface Props extends CommonProps {
6
- customer: ProfileOutputWithApiKey;
7
- }
8
- declare const CreateInvoice: React.FC<Props>;
9
- export default CreateInvoice;
@@ -1,62 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- require("../style/index.css");
18
- var react_1 = __importDefault(require("react"));
19
- var antd_1 = require("antd");
20
- // const [createCorrectWithCreditRequest, setCreateCorrectWithCreditRequest] = useState<CreateCorrectWithCreditRequest>(
21
- // {
22
- // conversationIdentifier: "test",
23
- // creditNoteMetadataInput: {} as CreditNoteMetadataInput,
24
- // messageId: "test_mid",
25
- // more: false,
26
- // services: [],
27
- // }
28
- // );
29
- var form = antd_1.Form.useForm()[0];
30
- var _a = react_1.default.useState(""), referenceIdentifierValidateStatus = _a[0], setReferenceIdentifierValidateStatus = _a[1];
31
- var handleSetBillingLineMetadata = function (formInstance, billingLineMetadata) {
32
- formInstance.setFieldsValue({
33
- "billingLineMetadata": billingLineMetadata,
34
- });
35
- };
36
- var handleSubmit = function (values) {
37
- // console.log('Received values of form: ', values);
38
- };
39
- var CreateInvoice = function (props) {
40
- // props.form.getFieldDecorator('billingLineMetadata', {initialValue: []});
41
- var formItemLayout = {
42
- labelCol: {
43
- xs: { span: 24 },
44
- sm: { span: 8 },
45
- },
46
- wrapperCol: {
47
- xs: { span: 24 },
48
- sm: { span: 16 },
49
- },
50
- };
51
- return (react_1.default.createElement(antd_1.Form, __assign({}, formItemLayout, { onFinish: handleSubmit }),
52
- react_1.default.createElement("h1", null, "Credit note"),
53
- react_1.default.createElement(antd_1.Row, { gutter: [16, 16] },
54
- react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } }),
55
- react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 12 } }),
56
- react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 12 }, xl: { span: 8 } }),
57
- react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 }, xl: { span: 16 } }),
58
- react_1.default.createElement(antd_1.Col, { xs: { span: 24 }, md: { span: 24 }, xl: { span: 24 } }),
59
- react_1.default.createElement(antd_1.Col, { span: 24 },
60
- react_1.default.createElement(antd_1.Button, { type: "primary", htmlType: "submit" }, "Senda")))));
61
- };
62
- exports.default = CreateInvoice;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { CommonProps } from "../common/types/CommonProps";
3
- import { ProfileOutputWithApiKey } from "../common/types/AppConfiguration";
4
- import "moment/locale/is";
5
- interface Props extends CommonProps {
6
- customers: ProfileOutputWithApiKey[];
7
- referenceIdentifiersHelpText?: string;
8
- referenceIdentifiersLabelText?: string;
9
- }
10
- declare const CreateInvoice: React.FC<Props>;
11
- export default CreateInvoice;
@@ -1,116 +0,0 @@
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 antd_1 = require("antd");
8
- var is_IS_1 = __importDefault(require("antd/es/locale/is_IS"));
9
- var en_US_1 = __importDefault(require("antd/es/locale/en_US"));
10
- var locales_1 = __importDefault(require("../translations/locales"));
11
- var dayjs_1 = __importDefault(require("dayjs"));
12
- var index_1 = __importDefault(require("./index"));
13
- require("moment/locale/is");
14
- var react_intl_1 = require("react-intl");
15
- var colors_1 = require("@ant-design/colors");
16
- /**
17
- * Component for creating a form for creating an invoice and submitting it to the MAPI transaction services
18
- *
19
- * @component
20
- */
21
- function useWindowSize() {
22
- var _a = react_1.default.useState([0, 0]), size = _a[0], setSize = _a[1];
23
- react_1.default.useEffect(function () {
24
- function updateSize() {
25
- setSize([window.innerWidth, window.innerHeight]);
26
- }
27
- window.addEventListener("resize", updateSize);
28
- updateSize();
29
- return function () { return window.removeEventListener("resize", updateSize); };
30
- }, []);
31
- return size;
32
- }
33
- var CreateInvoice = function (props) {
34
- var _a, _b, _c, _d;
35
- var _e = react_1.default.useState(false), isMobile = _e[0], setIsMobile = _e[1];
36
- var width = useWindowSize()[0];
37
- react_1.default.useEffect(function () {
38
- if (width < 768) {
39
- setIsMobile(true);
40
- }
41
- else {
42
- setIsMobile(false);
43
- }
44
- }, [width]);
45
- var antLocale = is_IS_1.default;
46
- var languageString = "is";
47
- switch (props.language) {
48
- case "is":
49
- antLocale = is_IS_1.default;
50
- dayjs_1.default.locale("is");
51
- languageString = "is";
52
- break;
53
- case "en":
54
- antLocale = en_US_1.default;
55
- dayjs_1.default.locale("en");
56
- languageString = "en";
57
- break;
58
- default:
59
- antLocale = is_IS_1.default;
60
- dayjs_1.default.locale("is");
61
- languageString = "is";
62
- break;
63
- }
64
- localStorage.setItem("languageString", languageString);
65
- return (react_1.default.createElement(antd_1.ConfigProvider, { locale: antLocale, theme: {
66
- token: {
67
- colorPrimary: (_a = props.colorPrimary) !== null && _a !== void 0 ? _a : colors_1.blue.primary,
68
- colorError: (_b = props.colorError) !== null && _b !== void 0 ? _b : colors_1.red[4],
69
- colorLink: (_c = props.colorLink) !== null && _c !== void 0 ? _c : colors_1.blue.primary,
70
- colorInfoBg: (_d = props.colorInfoBg) !== null && _d !== void 0 ? _d : colors_1.blue[0],
71
- colorText: "rgba(0, 0, 0, 0.88)",
72
- colorTextDescription: "rgba(0, 0, 0, 0.60)",
73
- fontFamily: "Outfit",
74
- fontSizeHeading5: isMobile ? 16 : 24,
75
- fontSizeHeading4: isMobile ? 18 : 20,
76
- fontSizeLG: isMobile ? 16 : 20,
77
- fontSizeXL: 30,
78
- fontSizeSM: 12,
79
- fontSizeIcon: 20,
80
- controlHeightLG: isMobile ? 51 : 60,
81
- controlInteractiveSize: isMobile ? 16 : 26,
82
- },
83
- components: {
84
- Steps: {
85
- navArrowColor: "rgba(0, 0, 0, 0)",
86
- navContentMaxWidth: "calc(100vw / 4)",
87
- iconSize: isMobile ? 10 : 32,
88
- iconFontSize: isMobile ? 12 : 14,
89
- },
90
- Input: {
91
- inputFontSizeLG: isMobile ? 16 : 20,
92
- paddingBlockLG: 13,
93
- },
94
- Button: {
95
- contentFontSizeLG: isMobile ? 16 : 20,
96
- },
97
- DatePicker: {
98
- paddingBlockLG: 13,
99
- },
100
- Form: {
101
- itemMarginBottom: isMobile ? 24 : 32,
102
- },
103
- Layout: {
104
- footerBg: "none",
105
- },
106
- Card: {
107
- headerBg: "rgb(255,255,255)"
108
- },
109
- },
110
- } },
111
- react_1.default.createElement(react_intl_1.IntlProvider, { locale: languageString, defaultLocale: "is", key: languageString, messages: locales_1.default[languageString] },
112
- react_1.default.createElement(index_1.default, { customers: props.customers, language: languageString, mapiBaseUrl: props.mapiBaseUrl, rapiBaseUrl: props.rapiBaseUrl, rapiApiKey: props.rapiApiKey, receiverRequirements: props.receiverRequirements, getReceiverRequirements: props.getReceiverRequirements, updateReceiverRequirementsProp: props.updateReceiverRequirementsProp,
113
- // legalIdentifier={props.legalIdentifier}
114
- uploadSizeLimit: props.uploadSizeLimit, attachmentTooltipText: props.attachmentTooltipText, referenceIdentifiersHelpText: props.referenceIdentifiersHelpText, referenceIdentifiersLabelText: props.referenceIdentifiersLabelText, dueDateMinimumOffset: props.dueDateMinimumOffset, defaultPaymentType: props.defaultPaymentType, supportEmail: props.supportEmail, welcomeModalTitle: props.welcomeModalTitle, welcomeModalParagraph: props.welcomeModalParagraph, welcomeModalImageUrl: props.welcomeModalImageUrl }))));
115
- };
116
- exports.default = CreateInvoice;