@spaceinvoices/react-ui 0.4.1 → 0.4.3

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 (245) hide show
  1. package/cli/dist/index.js +1 -1
  2. package/package.json +1 -1
  3. package/registry.json +25 -0
  4. package/src/components/advance-invoices/advance-invoices.hooks.ts +32 -2
  5. package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +109 -4
  6. package/src/components/advance-invoices/create/locales/de.ts +2 -0
  7. package/src/components/advance-invoices/create/locales/es.ts +2 -0
  8. package/src/components/advance-invoices/create/locales/fr.ts +2 -0
  9. package/src/components/advance-invoices/create/locales/hr.ts +2 -0
  10. package/src/components/advance-invoices/create/locales/it.ts +2 -0
  11. package/src/components/advance-invoices/create/locales/nl.ts +2 -0
  12. package/src/components/advance-invoices/create/locales/pl.ts +2 -0
  13. package/src/components/advance-invoices/create/locales/pt.ts +2 -0
  14. package/src/components/advance-invoices/create/locales/sl.ts +2 -0
  15. package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +17 -0
  16. package/src/components/advance-invoices/list/list-row-actions.tsx +3 -6
  17. package/src/components/advance-invoices/list/list-table.tsx +105 -2
  18. package/src/components/advance-invoices/list/locales/de.ts +4 -0
  19. package/src/components/advance-invoices/list/locales/en.ts +4 -0
  20. package/src/components/advance-invoices/list/locales/es.ts +4 -0
  21. package/src/components/advance-invoices/list/locales/fr.ts +4 -0
  22. package/src/components/advance-invoices/list/locales/hr.ts +4 -0
  23. package/src/components/advance-invoices/list/locales/it.ts +4 -0
  24. package/src/components/advance-invoices/list/locales/nl.ts +4 -0
  25. package/src/components/advance-invoices/list/locales/pl.ts +4 -0
  26. package/src/components/advance-invoices/list/locales/pt.ts +4 -0
  27. package/src/components/advance-invoices/list/locales/sl.ts +4 -0
  28. package/src/components/credit-notes/create/create-credit-note-form.tsx +177 -6
  29. package/src/components/credit-notes/create/locales/de.ts +8 -0
  30. package/src/components/credit-notes/create/locales/es.ts +8 -0
  31. package/src/components/credit-notes/create/locales/fr.ts +7 -0
  32. package/src/components/credit-notes/create/locales/hr.ts +7 -0
  33. package/src/components/credit-notes/create/locales/it.ts +9 -0
  34. package/src/components/credit-notes/create/locales/nl.ts +7 -0
  35. package/src/components/credit-notes/create/locales/pl.ts +7 -0
  36. package/src/components/credit-notes/create/locales/pt.ts +7 -0
  37. package/src/components/credit-notes/create/locales/sl.ts +7 -0
  38. package/src/components/credit-notes/credit-notes.hooks.ts +30 -0
  39. package/src/components/credit-notes/list/list-row-actions.tsx +3 -6
  40. package/src/components/credit-notes/list/list-table.tsx +79 -8
  41. package/src/components/credit-notes/list/locales/de.ts +4 -1
  42. package/src/components/credit-notes/list/locales/en.ts +5 -0
  43. package/src/components/credit-notes/list/locales/es.ts +4 -1
  44. package/src/components/credit-notes/list/locales/fr.ts +4 -1
  45. package/src/components/credit-notes/list/locales/hr.ts +4 -1
  46. package/src/components/credit-notes/list/locales/it.ts +4 -1
  47. package/src/components/credit-notes/list/locales/nl.ts +4 -1
  48. package/src/components/credit-notes/list/locales/pl.ts +4 -1
  49. package/src/components/credit-notes/list/locales/pt.ts +4 -1
  50. package/src/components/credit-notes/list/locales/sl.ts +4 -1
  51. package/src/components/customers/create-customer-form/create-customer-form.tsx +0 -1
  52. package/src/components/dashboard/collection-rate-card/use-collection-rate.ts +2 -2
  53. package/src/components/dashboard/invoice-status-chart/use-invoice-status.ts +3 -3
  54. package/src/components/dashboard/payment-methods-chart/use-payment-methods.ts +1 -1
  55. package/src/components/dashboard/payment-trend-chart/use-payment-trend.ts +1 -1
  56. package/src/components/dashboard/revenue-trend-chart/use-revenue-trend.ts +1 -1
  57. package/src/components/dashboard/shared/use-revenue-data.ts +4 -4
  58. package/src/components/dashboard/shared/use-stats-counts.ts +4 -4
  59. package/src/components/dashboard/shared/use-stats-query.ts +1 -1
  60. package/src/components/dashboard/tax-collected-card/use-tax-collected.ts +2 -2
  61. package/src/components/dashboard/top-customers-chart/use-top-customers.ts +1 -1
  62. package/src/components/delivery-notes/create/create-delivery-note-form.tsx +332 -0
  63. package/src/components/delivery-notes/create/locales/de.ts +50 -0
  64. package/src/components/delivery-notes/create/locales/es.ts +49 -0
  65. package/src/components/delivery-notes/create/locales/fr.ts +50 -0
  66. package/src/components/delivery-notes/create/locales/hr.ts +49 -0
  67. package/src/components/delivery-notes/create/locales/it.ts +49 -0
  68. package/src/components/delivery-notes/create/locales/nl.ts +50 -0
  69. package/src/components/delivery-notes/create/locales/pl.ts +49 -0
  70. package/src/components/delivery-notes/create/locales/pt.ts +50 -0
  71. package/src/components/delivery-notes/create/locales/sl.ts +49 -0
  72. package/src/components/delivery-notes/create/prepare-delivery-note-submission.ts +38 -0
  73. package/src/components/delivery-notes/create/use-delivery-note-customer-form.ts +1 -0
  74. package/src/components/delivery-notes/delivery-notes.hooks.ts +15 -0
  75. package/src/components/delivery-notes/list/index.ts +3 -0
  76. package/src/components/delivery-notes/list/list-row-actions.tsx +103 -0
  77. package/src/components/delivery-notes/list/list-table.tsx +214 -0
  78. package/src/components/delivery-notes/list/locales/de.ts +9 -0
  79. package/src/components/delivery-notes/list/locales/en.ts +11 -0
  80. package/src/components/delivery-notes/list/locales/es.ts +9 -0
  81. package/src/components/delivery-notes/list/locales/fr.ts +9 -0
  82. package/src/components/delivery-notes/list/locales/hr.ts +9 -0
  83. package/src/components/delivery-notes/list/locales/it.ts +9 -0
  84. package/src/components/delivery-notes/list/locales/nl.ts +9 -0
  85. package/src/components/delivery-notes/list/locales/pl.ts +9 -0
  86. package/src/components/delivery-notes/list/locales/pt.ts +9 -0
  87. package/src/components/delivery-notes/list/locales/sl.ts +9 -0
  88. package/src/components/delivery-notes/list/use-delivery-note-download.ts +63 -0
  89. package/src/components/documents/create/document-details-section.tsx +103 -33
  90. package/src/components/documents/create/live-preview.tsx +37 -10
  91. package/src/components/documents/create/mark-as-paid-section.tsx +11 -2
  92. package/src/components/documents/create/prepare-document-submission.ts +1 -1
  93. package/src/components/documents/documents.hooks.ts +2 -1
  94. package/src/components/documents/shared/document-preview-display.tsx +12 -5
  95. package/src/components/documents/types.ts +10 -1
  96. package/src/components/documents/view/document-actions-bar.tsx +30 -0
  97. package/src/components/documents/view/document-details-card.tsx +3 -3
  98. package/src/components/documents/view/document-payments-list.tsx +3 -3
  99. package/src/components/documents/view/document-relations-list.tsx +105 -0
  100. package/src/components/documents/view/locales/de.ts +26 -0
  101. package/src/components/documents/view/locales/es.ts +26 -0
  102. package/src/components/documents/view/locales/fr.ts +26 -0
  103. package/src/components/documents/view/locales/hr.ts +26 -0
  104. package/src/components/documents/view/locales/it.ts +26 -0
  105. package/src/components/documents/view/locales/nl.ts +26 -0
  106. package/src/components/documents/view/locales/pl.ts +26 -0
  107. package/src/components/documents/view/locales/pt.ts +26 -0
  108. package/src/components/documents/view/locales/sl.ts +26 -0
  109. package/src/components/documents/view/use-document-download.ts +5 -3
  110. package/src/components/entities/create-entity-form.tsx +1 -1
  111. package/src/components/entities/entity-settings-form/entity-settings-form.tsx +2 -3
  112. package/src/components/entities/entity-settings-form/locales/es.ts +2 -0
  113. package/src/components/entities/entity-settings-form/locales/fr.ts +2 -0
  114. package/src/components/entities/entity-settings-form/locales/hr.ts +2 -0
  115. package/src/components/entities/entity-settings-form/locales/it.ts +2 -0
  116. package/src/components/entities/entity-settings-form/locales/nl.ts +2 -0
  117. package/src/components/entities/entity-settings-form/locales/pl.ts +2 -0
  118. package/src/components/entities/entity-settings-form/locales/pt.ts +2 -0
  119. package/src/components/entities/fina-settings-form/fina-operator-required-dialog.tsx +109 -0
  120. package/src/components/entities/fina-settings-form/fina-settings-form.tsx +377 -35
  121. package/src/components/entities/fina-settings-form/fina-settings.hooks.ts +106 -20
  122. package/src/components/entities/fina-settings-form/index.ts +1 -0
  123. package/src/components/entities/fina-settings-form/locales/de.ts +54 -34
  124. package/src/components/entities/fina-settings-form/locales/en.ts +51 -34
  125. package/src/components/entities/fina-settings-form/locales/es.ts +50 -34
  126. package/src/components/entities/fina-settings-form/locales/fr.ts +50 -34
  127. package/src/components/entities/fina-settings-form/locales/hr.ts +50 -34
  128. package/src/components/entities/fina-settings-form/locales/it.ts +50 -34
  129. package/src/components/entities/fina-settings-form/locales/nl.ts +50 -34
  130. package/src/components/entities/fina-settings-form/locales/pl.ts +50 -34
  131. package/src/components/entities/fina-settings-form/locales/pt.ts +50 -34
  132. package/src/components/entities/fina-settings-form/locales/sl.ts +50 -34
  133. package/src/components/entities/fina-settings-form/sections/certificate-settings-section.tsx +18 -0
  134. package/src/components/entities/fina-settings-form/sections/premises-management-section.tsx +64 -89
  135. package/src/components/entities/fina-settings-form/sections/register-premise-dialog.tsx +51 -323
  136. package/src/components/entities/furs-settings-form/furs-operator-required-dialog.tsx +106 -0
  137. package/src/components/entities/furs-settings-form/furs-settings-form.tsx +33 -10
  138. package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +12 -11
  139. package/src/components/entities/furs-settings-form/index.ts +1 -0
  140. package/src/components/entities/furs-settings-form/locales/de.ts +27 -3
  141. package/src/components/entities/furs-settings-form/locales/en.ts +17 -3
  142. package/src/components/entities/furs-settings-form/locales/es.ts +26 -3
  143. package/src/components/entities/furs-settings-form/locales/fr.ts +26 -3
  144. package/src/components/entities/furs-settings-form/locales/hr.ts +26 -3
  145. package/src/components/entities/furs-settings-form/locales/it.ts +26 -3
  146. package/src/components/entities/furs-settings-form/locales/nl.ts +26 -3
  147. package/src/components/entities/furs-settings-form/locales/pl.ts +26 -3
  148. package/src/components/entities/furs-settings-form/locales/pt.ts +26 -3
  149. package/src/components/entities/furs-settings-form/locales/sl.ts +16 -3
  150. package/src/components/entities/furs-settings-form/sections/certificate-settings-section.tsx +22 -0
  151. package/src/components/entities/furs-settings-form/sections/general-settings-section.tsx +26 -5
  152. package/src/components/entities/furs-settings-form/sections/register-premise-dialog.tsx +14 -2
  153. package/src/components/entities/settings/tax-rules-settings-form.tsx +4 -4
  154. package/src/components/estimates/list/list-row-actions.tsx +3 -7
  155. package/src/components/estimates/list/list-table.tsx +35 -2
  156. package/src/components/estimates/list/locales/de.ts +3 -0
  157. package/src/components/estimates/list/locales/en.ts +3 -0
  158. package/src/components/estimates/list/locales/es.ts +3 -0
  159. package/src/components/estimates/list/locales/fr.ts +3 -0
  160. package/src/components/estimates/list/locales/hr.ts +3 -0
  161. package/src/components/estimates/list/locales/it.ts +3 -0
  162. package/src/components/estimates/list/locales/nl.ts +3 -0
  163. package/src/components/estimates/list/locales/pl.ts +3 -0
  164. package/src/components/estimates/list/locales/pt.ts +3 -0
  165. package/src/components/estimates/list/locales/sl.ts +3 -0
  166. package/src/components/export/document-export-form.tsx +34 -34
  167. package/src/components/invoices/create/create-invoice-form.tsx +107 -5
  168. package/src/components/invoices/create/prepare-invoice-submission.ts +17 -0
  169. package/src/components/invoices/invoices-furs.hooks.ts +24 -9
  170. package/src/components/invoices/invoices.hooks.ts +32 -2
  171. package/src/components/invoices/list/list-row-actions.tsx +26 -11
  172. package/src/components/invoices/list/list-table.tsx +121 -5
  173. package/src/components/invoices/list/locales/de.ts +5 -0
  174. package/src/components/invoices/list/locales/en.ts +5 -0
  175. package/src/components/invoices/list/locales/es.ts +5 -0
  176. package/src/components/invoices/list/locales/fr.ts +5 -0
  177. package/src/components/invoices/list/locales/hr.ts +5 -0
  178. package/src/components/invoices/list/locales/it.ts +5 -0
  179. package/src/components/invoices/list/locales/nl.ts +5 -0
  180. package/src/components/invoices/list/locales/pl.ts +5 -0
  181. package/src/components/invoices/list/locales/pt.ts +5 -0
  182. package/src/components/invoices/list/locales/sl.ts +5 -0
  183. package/src/components/invoices/view/fiscalization-status-card.tsx +4 -1
  184. package/src/components/items/item-list-table/item-list-row-actions.tsx +5 -8
  185. package/src/components/items/item-list-table/item-list-row.tsx +5 -3
  186. package/src/components/items/item-list-table/item-list-table.tsx +5 -1
  187. package/src/components/recurring-invoices/create-recurring-invoice-form/create-recurring-invoice-form.tsx +418 -0
  188. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/de.ts +45 -0
  189. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/es.ts +44 -0
  190. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/fr.ts +44 -0
  191. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/hr.ts +44 -0
  192. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/it.ts +44 -0
  193. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/nl.ts +44 -0
  194. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/pl.ts +44 -0
  195. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/pt.ts +44 -0
  196. package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sl.ts +44 -0
  197. package/src/components/recurring-invoices/index.ts +3 -0
  198. package/src/components/recurring-invoices/list/index.ts +2 -0
  199. package/src/components/recurring-invoices/list/list-row-actions.tsx +139 -0
  200. package/src/components/recurring-invoices/list/list-table.tsx +179 -0
  201. package/src/components/recurring-invoices/list/locales/de.ts +27 -0
  202. package/src/components/recurring-invoices/list/locales/en.ts +5 -0
  203. package/src/components/recurring-invoices/list/locales/es.ts +27 -0
  204. package/src/components/recurring-invoices/list/locales/fr.ts +27 -0
  205. package/src/components/recurring-invoices/list/locales/hr.ts +27 -0
  206. package/src/components/recurring-invoices/list/locales/it.ts +27 -0
  207. package/src/components/recurring-invoices/list/locales/nl.ts +27 -0
  208. package/src/components/recurring-invoices/list/locales/pl.ts +27 -0
  209. package/src/components/recurring-invoices/list/locales/pt.ts +27 -0
  210. package/src/components/recurring-invoices/list/locales/sl.ts +27 -0
  211. package/src/components/recurring-invoices/recurring-invoices.hooks.ts +28 -0
  212. package/src/components/table/data-table.tsx +122 -5
  213. package/src/components/table/selection-toolbar.tsx +36 -0
  214. package/src/components/tax-reports/kir-export-form.tsx +75 -55
  215. package/src/components/taxes/tax-list-table/tax-list-row-actions.tsx +3 -6
  216. package/src/components/taxes/tax-list-table/tax-list-row.tsx +3 -2
  217. package/src/components/taxes/tax-list-table/tax-list-table.tsx +5 -1
  218. package/src/components/ui/checkbox.tsx +5 -5
  219. package/src/generate-schemas.ts +45 -18
  220. package/src/generated/schemas/authorizeshopify_body.ts +22 -0
  221. package/src/generated/schemas/creditnote.ts +0 -2
  222. package/src/generated/schemas/deliverynote.ts +134 -0
  223. package/src/generated/schemas/entity.ts +5 -1
  224. package/src/generated/schemas/index.ts +42 -28
  225. package/src/generated/schemas/order.ts +129 -0
  226. package/src/generated/schemas/orderintegration.ts +51 -0
  227. package/src/generated/schemas/payment.ts +24 -2
  228. package/src/generated/schemas/recurringinvoice.ts +61 -0
  229. package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +108 -140
  230. package/src/generated/schemas/rendercreditnotepreview_body.ts +109 -141
  231. package/src/generated/schemas/renderdeliverynotepreview_body.ts +185 -0
  232. package/src/generated/schemas/renderestimatepreview_body.ts +79 -82
  233. package/src/generated/schemas/renderinvoicepreview_body.ts +109 -141
  234. package/src/generated/schemas/startpdfexport_body.ts +18 -2
  235. package/src/generated/schemas/userfinasettings.ts +19 -0
  236. package/src/generated/schemas/webhook.ts +54 -0
  237. package/src/hooks/use-duplicate-document.ts +11 -3
  238. package/src/hooks/use-next-document-number.ts +2 -2
  239. package/src/lib/furs-error-utils.ts +36 -0
  240. package/src/lib/schemas/advance-invoice.ts +3 -3
  241. package/src/lib/schemas/credit-note.ts +3 -3
  242. package/src/lib/schemas/estimate.ts +3 -3
  243. package/src/lib/schemas/invoice.ts +3 -3
  244. package/src/providers/sdk-provider.tsx +5 -7
  245. package/src/providers/white-label-provider.tsx +3 -0
@@ -27,9 +27,12 @@ export default {
27
27
  "Operator Information": "Informacje o operatorze",
28
28
  "Configure default operator for API usage": "Skonfiguruj domyślnego operatora do użycia z API",
29
29
  "Operator OIB": "OIB operatora",
30
- "OIB of the operator (11 digits, optional)": "OIB operatora (11 cyfr, opcjonalnie)",
30
+ "OIB of the operator (11 digits)": "OIB operatora (11 cyfr)",
31
+ "OIB must be exactly 11 digits": "OIB musi mieć dokładnie 11 cyfr",
32
+ "Operator OIB set": "OIB operatora ustawiony",
33
+ "Set operator OIB in General Settings first": "Najpierw ustaw OIB operatora w Ustawieniach ogólnych",
31
34
  "Operator Label": "Etykieta operatora",
32
- "Descriptive label for the operator (optional)": "Opisowa etykieta operatora (opcjonalnie)",
35
+ "e.g. Cashier 1": "np. Kasjer 1",
33
36
  "PDV System": "System PDV",
34
37
  "Entity is registered in the Croatian PDV (VAT) system":
35
38
  "Podmiot jest zarejestrowany w chorwackim systemie PDV (VAT)",
@@ -40,6 +43,10 @@ export default {
40
43
  "Invalid file type. Please upload a .p12 or .pfx certificate file.":
41
44
  "Nieprawidłowy typ pliku. Prześlij plik certyfikatu .p12 lub .pfx.",
42
45
  "Please select a certificate file and enter the passphrase": "Wybierz plik certyfikatu i wprowadź hasło",
46
+ "Invalid certificate passphrase. Please check your passphrase and try again.":
47
+ "Nieprawidłowe hasło certyfikatu. Sprawdź hasło i spróbuj ponownie.",
48
+ "Certificate OIB does not match entity OIB. Please upload a certificate for this entity.":
49
+ "OIB certyfikatu nie zgadza się z OIB podmiotu. Prześlij certifikat dla tego podmiotu.",
43
50
  Valid: "Ważny",
44
51
  "Expiring Soon": "Wkrótce wygasa",
45
52
  Expired: "Wygasł",
@@ -54,23 +61,19 @@ export default {
54
61
  "Enter certificate passphrase": "Wprowadź hasło certyfikatu",
55
62
  "Upload Certificate": "Prześlij certyfikat",
56
63
  "Upload New Certificate": "Prześlij nowy certyfikat",
57
- "Register your business premises for FINA": "Zarejestruj swoje lokale użytkowe w FINA",
58
- "Each premise must be registered with FINA before you can issue fiscalized invoices from that location.":
59
- "Każdy lokal musi być zarejestrowany w FINA, zanim będziesz mógł wystawiać fiskalizowane faktury z tego miejsca.",
60
- "Add Real Estate": "Dodaj nieruchomość",
61
- "Add Movable": "Dodaj ruchomość",
64
+ "Manage your business premises for FINA": "Zarządzaj lokalami użytkowymi dla FINA",
65
+ "Register your premises on ePorezna first, then add the premise ID here.":
66
+ "Najpierw zarejestruj lokale na ePorezna, a następnie dodaj ID lokalu tutaj.",
67
+ "Add Premise": "Dodaj lokal",
62
68
  "No premises registered yet": "Brak zarejestrowanych lokali",
63
69
  Active: "Aktywny",
70
+ Inactive: "Nieaktywny",
64
71
  Closed: "Zamknięty",
65
- "Real Estate": "Nieruchomość",
66
- Movable: "Jednostka ruchoma",
67
- "Close Premise": "Zamknij lokal",
68
- "Are you sure you want to close this premise? This action cannot be undone.":
69
- "Czy na pewno chcesz zamknąć ten lokal? Tej operacji nie można cofnąć.",
70
- "Test Environment": "Środowisko testowe",
71
- Production: "Produkcja",
72
- Vehicle: "Pojazd",
73
- "Market Stall": "Stoisko targowe",
72
+ "Delete Premise": "Usuń lokal",
73
+ "Delete Device": "Usuń urządzenie",
74
+ "Are you sure you want to delete this premise? This will also deactivate all its devices.":
75
+ "Czy na pewno chcesz usunąć ten lokal? Spowoduje to również dezaktywację wszystkich jego urządzeń.",
76
+ "Are you sure you want to delete this device?": "Czy na pewno chcesz usunąć to urządzenie?",
74
77
  Other: "Inne",
75
78
  Device: "Urządzenie",
76
79
  Devices: "Urządzenia",
@@ -85,24 +88,12 @@ export default {
85
88
  Cancel: "Anuluj",
86
89
  "Register Device": "Zarejestruj urządzenie",
87
90
  "Registering...": "Rejestrowanie...",
88
- "Register Real Estate Premise": "Zarejestruj lokal nieruchomości",
89
- "Register Movable Premise": "Zarejestruj lokal ruchomy",
91
+ "Add Business Premise": "Dodaj lokal użytkowy",
92
+ "Enter the premise ID that you registered on ePorezna. After adding, you'll need to register at least one electronic device.":
93
+ "Wprowadź ID lokalu, który zarejestrowałeś na ePorezna. Po dodaniu będziesz musiał zarejestrować co najmniej jedno urządzenie elektroniczne.",
90
94
  "Premise ID": "ID lokalu",
91
95
  "Unique identifier for this premise (e.g., PP1, OFFICE1)": "Unikalny identyfikator tego lokalu (np. PP1, BIURO1)",
92
- "Cadastral Municipality": "Gmina katastralna",
93
- "Land Registry Number": "Numer katastralny",
94
- "Building Number": "Numer budynku",
95
- "Sub-Building Number": "Numer podbudynku",
96
- Street: "Ulica",
97
- "House Number": "Numer domu",
98
- "House Number Additional": "Dodatek do numeru",
99
- Settlement: "Miejscowość",
100
- City: "Miasto",
101
- "Postal Code": "Kod pocztowy",
102
- "Premise Type": "Typ lokalu",
103
- "Type of movable business premise": "Typ ruchomego lokalu użytkowego",
104
- "Other Movable": "Inne ruchome",
105
- "Register Premise": "Zarejestruj lokal",
96
+ "Adding...": "Dodawanie...",
106
97
  "Save Settings": "Zapisz ustawienia",
107
98
  "Saving...": "Zapisywanie...",
108
99
  "Loading...": "Ładowanie...",
@@ -140,6 +131,31 @@ export default {
140
131
  "Business Premise": "Lokal użytkowy",
141
132
  "Electronic Device": "Urządzenie elektroniczne",
142
133
  "Fiscalization Error": "Błąd fiskalizacji",
143
- "Register a new business premise with FINA. After registration, you'll need to add at least one electronic device.":
144
- "Zarejestruj nowy lokal użytkowy w FINA. Po rejestracji będziesz musiał dodać co najmniej jedno urządzenie elektroniczne.",
134
+ "Your Operator Settings": "Twoje ustawienia operatora",
135
+ "Your personal operator info for FINA invoices": "Twoje osobiste dane operatora dla faktur FINA",
136
+ "Save Operator Settings": "Zapisz ustawienia operatora",
137
+ "Advanced Settings": "Zaawansowane ustawienia",
138
+ "API Default Operator": "Domyślny operator API",
139
+ "Default operator settings for API key usage (when no user context)":
140
+ "Domyślne ustawienia operatora dla użycia klucza API (bez kontekstu użytkownika)",
141
+ "OIB for API key usage (optional)": "OIB dla użycia klucza API (opcjonalne)",
142
+ "Operator label for API key usage (optional)": "Etykieta operatora dla użycia klucza API (opcjonalne)",
143
+ City: "Miasto",
144
+ "Entity Information": "Informacje o podmiocie",
145
+ "Required company details for FINA fiscalization": "Wymagane dane firmy do fiskalizacji FINA",
146
+ "Entity OIB": "OIB podmiotu",
147
+ "Your company's OIB (must match FINA certificate)": "OIB Twojej firmy (musi odpowiadać certyfikatowi FINA)",
148
+ "Entity OIB is required for FINA fiscalization": "OIB podmiotu jest wymagany do fiskalizacji FINA",
149
+ "Set entity OIB in General Settings first": "Najpierw ustaw OIB podmiotu w Ustawieniach ogólnych",
150
+ Address: "Adres",
151
+ "Post Code": "Kod pocztowy",
152
+ "Save Entity Info": "Zapisz dane podmiotu",
153
+ "Set operator OIB and label in General Settings first": "Set operator OIB and label in General Settings first",
154
+ "Complete General Settings first": "Complete General Settings first",
155
+ "Operator OIB and label are required for FINA fiscalization":
156
+ "Operator OIB and label are required for FINA fiscalization",
157
+ "FINA Operator Settings Required": "FINA Operator Settings Required",
158
+ "Your FINA operator information is needed to fiscalize this document. Please enter your operator details.":
159
+ "Your FINA operator information is needed to fiscalize this document. Please enter your operator details.",
160
+ "Save & Retry": "Save & Retry",
145
161
  } as const;
@@ -28,9 +28,12 @@ export default {
28
28
  "Operator Information": "Informação do operador",
29
29
  "Configure default operator for API usage": "Configurar operador predefinido para utilização da API",
30
30
  "Operator OIB": "OIB do operador",
31
- "OIB of the operator (11 digits, optional)": "OIB do operador (11 dígitos, opcional)",
31
+ "OIB of the operator (11 digits)": "OIB do operador (11 dígitos)",
32
+ "OIB must be exactly 11 digits": "O OIB deve ter exatamente 11 dígitos",
33
+ "Operator OIB set": "OIB do operador definido",
34
+ "Set operator OIB in General Settings first": "Defina primeiro o OIB do operador nas Configurações gerais",
32
35
  "Operator Label": "Etiqueta do operador",
33
- "Descriptive label for the operator (optional)": "Etiqueta descritiva do operador (opcional)",
36
+ "e.g. Cashier 1": "ex. Caixa 1",
34
37
  "PDV System": "Sistema PDV",
35
38
  "Entity is registered in the Croatian PDV (VAT) system": "A entidade está registada no sistema PDV (IVA) croata",
36
39
  "Digital Certificate": "Certificado digital",
@@ -41,6 +44,10 @@ export default {
41
44
  "Tipo de ficheiro inválido. Carregue um ficheiro de certificado .p12 ou .pfx.",
42
45
  "Please select a certificate file and enter the passphrase":
43
46
  "Selecione um ficheiro de certificado e introduza a palavra-passe",
47
+ "Invalid certificate passphrase. Please check your passphrase and try again.":
48
+ "Senha do certificado inválida. Verifique sua senha e tente novamente.",
49
+ "Certificate OIB does not match entity OIB. Please upload a certificate for this entity.":
50
+ "OIB do certificado não corresponde ao OIB da entidade. Envie um certificado para esta entidade.",
44
51
  Valid: "Válido",
45
52
  "Expiring Soon": "Expira em breve",
46
53
  Expired: "Expirado",
@@ -55,23 +62,19 @@ export default {
55
62
  "Enter certificate passphrase": "Introduza a palavra-passe do certificado",
56
63
  "Upload Certificate": "Carregar certificado",
57
64
  "Upload New Certificate": "Carregar novo certificado",
58
- "Register your business premises for FINA": "Registe as suas instalações comerciais para FINA",
59
- "Each premise must be registered with FINA before you can issue fiscalized invoices from that location.":
60
- "Cada instalação deve ser registada na FINA antes de poder emitir faturas fiscalizadas desse local.",
61
- "Add Real Estate": "Adicionar imóvel",
62
- "Add Movable": "Adicionar móvel",
65
+ "Manage your business premises for FINA": "Gerir as suas instalações comerciais para FINA",
66
+ "Register your premises on ePorezna first, then add the premise ID here.":
67
+ "Registe primeiro as suas instalações no ePorezna e depois adicione o ID da instalação aqui.",
68
+ "Add Premise": "Adicionar instalação",
63
69
  "No premises registered yet": "Nenhuma instalação registada",
64
70
  Active: "Ativo",
71
+ Inactive: "Inativo",
65
72
  Closed: "Fechado",
66
- "Real Estate": "Imóvel",
67
- Movable: "Unidade móvel",
68
- "Close Premise": "Fechar instalação",
69
- "Are you sure you want to close this premise? This action cannot be undone.":
70
- "Tem a certeza de que deseja fechar esta instalação? Esta ação não pode ser revertida.",
71
- "Test Environment": "Ambiente de teste",
72
- Production: "Produção",
73
- Vehicle: "Veículo",
74
- "Market Stall": "Banca de mercado",
73
+ "Delete Premise": "Eliminar instalação",
74
+ "Delete Device": "Eliminar dispositivo",
75
+ "Are you sure you want to delete this premise? This will also deactivate all its devices.":
76
+ "Tem a certeza de que deseja eliminar esta instalação? Isto também desativará todos os seus dispositivos.",
77
+ "Are you sure you want to delete this device?": "Tem a certeza de que deseja eliminar este dispositivo?",
75
78
  Other: "Outro",
76
79
  Device: "Dispositivo",
77
80
  Devices: "Dispositivos",
@@ -86,25 +89,13 @@ export default {
86
89
  Cancel: "Cancelar",
87
90
  "Register Device": "Registar dispositivo",
88
91
  "Registering...": "A registar...",
89
- "Register Real Estate Premise": "Registar instalação imóvel",
90
- "Register Movable Premise": "Registar instalação móvel",
92
+ "Add Business Premise": "Adicionar instalação comercial",
93
+ "Enter the premise ID that you registered on ePorezna. After adding, you'll need to register at least one electronic device.":
94
+ "Introduza o ID da instalação que registou no ePorezna. Após adicionar, terá de registar pelo menos um dispositivo eletrónico.",
91
95
  "Premise ID": "ID da instalação",
92
96
  "Unique identifier for this premise (e.g., PP1, OFFICE1)":
93
97
  "Identificador único para esta instalação (ex. PP1, ESCRITORIO1)",
94
- "Cadastral Municipality": "Município cadastral",
95
- "Land Registry Number": "Número de registo predial",
96
- "Building Number": "Número do edifício",
97
- "Sub-Building Number": "Número do sub-edifício",
98
- Street: "Rua",
99
- "House Number": "Número",
100
- "House Number Additional": "Número adicional",
101
- Settlement: "Localidade",
102
- City: "Cidade",
103
- "Postal Code": "Código postal",
104
- "Premise Type": "Tipo de instalação",
105
- "Type of movable business premise": "Tipo de instalação comercial móvel",
106
- "Other Movable": "Outro móvel",
107
- "Register Premise": "Registar instalação",
98
+ "Adding...": "A adicionar...",
108
99
  "Save Settings": "Guardar definições",
109
100
  "Saving...": "A guardar...",
110
101
  "Loading...": "A carregar...",
@@ -142,6 +133,31 @@ export default {
142
133
  "Business Premise": "Instalação comercial",
143
134
  "Electronic Device": "Dispositivo eletrónico",
144
135
  "Fiscalization Error": "Erro de fiscalização",
145
- "Register a new business premise with FINA. After registration, you'll need to add at least one electronic device.":
146
- "Registe uma nova instalação comercial na FINA. Após o registo, terá de adicionar pelo menos um dispositivo eletrónico.",
136
+ "Your Operator Settings": "Suas configurações de operador",
137
+ "Your personal operator info for FINA invoices": "Suas informações pessoais de operador para faturas FINA",
138
+ "Save Operator Settings": "Salvar configurações do operador",
139
+ "Advanced Settings": "Configurações avançadas",
140
+ "API Default Operator": "Operador padrão para API",
141
+ "Default operator settings for API key usage (when no user context)":
142
+ "Configurações padrão do operador para uso de chave API (sem contexto de utilizador)",
143
+ "OIB for API key usage (optional)": "OIB para uso de chave API (opcional)",
144
+ "Operator label for API key usage (optional)": "Rótulo do operador para uso de chave API (opcional)",
145
+ City: "Cidade",
146
+ "Entity Information": "Informação da entidade",
147
+ "Required company details for FINA fiscalization": "Dados da empresa obrigatórios para a fiscalização FINA",
148
+ "Entity OIB": "OIB da entidade",
149
+ "Your company's OIB (must match FINA certificate)": "OIB da sua empresa (deve corresponder ao certificado FINA)",
150
+ "Entity OIB is required for FINA fiscalization": "O OIB da entidade é obrigatório para a fiscalização FINA",
151
+ "Set entity OIB in General Settings first": "Primeiro defina o OIB da entidade nas Definições gerais",
152
+ Address: "Morada",
153
+ "Post Code": "Código postal",
154
+ "Save Entity Info": "Guardar dados da entidade",
155
+ "Set operator OIB and label in General Settings first": "Set operator OIB and label in General Settings first",
156
+ "Complete General Settings first": "Complete General Settings first",
157
+ "Operator OIB and label are required for FINA fiscalization":
158
+ "Operator OIB and label are required for FINA fiscalization",
159
+ "FINA Operator Settings Required": "FINA Operator Settings Required",
160
+ "Your FINA operator information is needed to fiscalize this document. Please enter your operator details.":
161
+ "Your FINA operator information is needed to fiscalize this document. Please enter your operator details.",
162
+ "Save & Retry": "Save & Retry",
147
163
  } as const;
@@ -28,9 +28,12 @@ export default {
28
28
  "Operator Information": "Informacije o operaterju",
29
29
  "Configure default operator for API usage": "Konfigurirajte privzetega operaterja za uporabo API-ja",
30
30
  "Operator OIB": "OIB operaterja",
31
- "OIB of the operator (11 digits, optional)": "OIB operaterja (11 številk, opcijsko)",
31
+ "OIB of the operator (11 digits)": "OIB operaterja (11 števk)",
32
+ "OIB must be exactly 11 digits": "OIB mora imeti natančno 11 števk",
33
+ "Operator OIB set": "OIB operaterja nastavljen",
34
+ "Set operator OIB in General Settings first": "Najprej nastavite OIB operaterja v Splošnih nastavitvah",
32
35
  "Operator Label": "Oznaka operaterja",
33
- "Descriptive label for the operator (optional)": "Opisna oznaka za operaterja (opcijsko)",
36
+ "e.g. Cashier 1": "npr. Blagajnik 1",
34
37
  "PDV System": "Sistem PDV",
35
38
  "Entity is registered in the Croatian PDV (VAT) system": "Podjetje je registrirano v hrvaškem sistemu PDV (DDV)",
36
39
  "Digital Certificate": "Digitalni certifikat",
@@ -41,6 +44,10 @@ export default {
41
44
  "Neveljavna vrsta datoteke. Prosimo, naložite datoteko certifikata .p12 ali .pfx.",
42
45
  "Please select a certificate file and enter the passphrase":
43
46
  "Prosimo, izberite datoteko certifikata in vnesite geslo",
47
+ "Invalid certificate passphrase. Please check your passphrase and try again.":
48
+ "Neveljavno geslo certifikata. Preverite geslo in poskusite znova.",
49
+ "Certificate OIB does not match entity OIB. Please upload a certificate for this entity.":
50
+ "OIB certifikata se ne ujema z OIB entitete. Naložite certifikat za to entiteto.",
44
51
  Valid: "Veljaven",
45
52
  "Expiring Soon": "Kmalu poteče",
46
53
  Expired: "Potekel",
@@ -55,23 +62,19 @@ export default {
55
62
  "Enter certificate passphrase": "Vnesite geslo certifikata",
56
63
  "Upload Certificate": "Naloži certifikat",
57
64
  "Upload New Certificate": "Naloži nov certifikat",
58
- "Register your business premises for FINA": "Registrirajte poslovne prostore za FINA",
59
- "Each premise must be registered with FINA before you can issue fiscalized invoices from that location.":
60
- "Vsak prostor mora biti registriran pri FINA, preden lahko s te lokacije izdajate fiskalizirane račune.",
61
- "Add Real Estate": "Dodaj nepremičnino",
62
- "Add Movable": "Dodaj premičnino",
65
+ "Manage your business premises for FINA": "Upravljajte poslovne prostore za FINA",
66
+ "Register your premises on ePorezna first, then add the premise ID here.":
67
+ "Najprej registrirajte prostore na ePorezna, nato pa tukaj dodajte oznako prostora.",
68
+ "Add Premise": "Dodaj prostor",
63
69
  "No premises registered yet": "Še ni registriranih prostorov",
64
70
  Active: "Aktiven",
71
+ Inactive: "Neaktiven",
65
72
  Closed: "Zaprt",
66
- "Real Estate": "Nepremičnina",
67
- Movable: "Premična enota",
68
- "Close Premise": "Zapri prostor",
69
- "Are you sure you want to close this premise? This action cannot be undone.":
70
- "Ali ste prepričani, da želite zapreti ta prostor? Tega dejanja ni mogoče razveljaviti.",
71
- "Test Environment": "Testno okolje",
72
- Production: "Produkcija",
73
- Vehicle: "Vozilo",
74
- "Market Stall": "Tržna stojnica",
73
+ "Delete Premise": "Izbriši prostor",
74
+ "Delete Device": "Izbriši napravo",
75
+ "Are you sure you want to delete this premise? This will also deactivate all its devices.":
76
+ "Ali ste prepričani, da želite izbrisati ta prostor? S tem bodo deaktivirane tudi vse njegove naprave.",
77
+ "Are you sure you want to delete this device?": "Ali ste prepričani, da želite izbrisati to napravo?",
75
78
  Other: "Drugo",
76
79
  Device: "Naprava",
77
80
  Devices: "Naprave",
@@ -86,25 +89,13 @@ export default {
86
89
  Cancel: "Prekliči",
87
90
  "Register Device": "Registriraj napravo",
88
91
  "Registering...": "Registracija...",
89
- "Register Real Estate Premise": "Registriraj nepremični prostor",
90
- "Register Movable Premise": "Registriraj premični prostor",
92
+ "Add Business Premise": "Dodaj poslovni prostor",
93
+ "Enter the premise ID that you registered on ePorezna. After adding, you'll need to register at least one electronic device.":
94
+ "Vnesite oznako prostora, ki ste jo registrirali na ePorezna. Po dodajanju boste morali registrirati vsaj eno elektronsko napravo.",
91
95
  "Premise ID": "ID prostora",
92
96
  "Unique identifier for this premise (e.g., PP1, OFFICE1)":
93
97
  "Edinstven identifikator za ta prostor (npr. PP1, PISARNA1)",
94
- "Cadastral Municipality": "Katastrska občina",
95
- "Land Registry Number": "Številka zemljišča",
96
- "Building Number": "Številka stavbe",
97
- "Sub-Building Number": "Številka podstavbe",
98
- Street: "Ulica",
99
- "House Number": "Hišna številka",
100
- "House Number Additional": "Dodatek k hišni št.",
101
- Settlement: "Naselje",
102
- City: "Mesto",
103
- "Postal Code": "Poštna številka",
104
- "Premise Type": "Vrsta prostora",
105
- "Type of movable business premise": "Vrsta premičnega poslovnega prostora",
106
- "Other Movable": "Drugo premično",
107
- "Register Premise": "Registriraj prostor",
98
+ "Adding...": "Dodajanje...",
108
99
  "Save Settings": "Shrani nastavitve",
109
100
  "Saving...": "Shranjevanje...",
110
101
  "Loading...": "Nalaganje...",
@@ -142,6 +133,31 @@ export default {
142
133
  "Business Premise": "Poslovni prostor",
143
134
  "Electronic Device": "Elektronska naprava",
144
135
  "Fiscalization Error": "Napaka pri fiskalizaciji",
145
- "Register a new business premise with FINA. After registration, you'll need to add at least one electronic device.":
146
- "Registrirajte nov poslovni prostor pri FINA. Po registraciji boste morali dodati vsaj eno elektronsko napravo.",
136
+ "Your Operator Settings": "Vaše nastavitve operaterja",
137
+ "Your personal operator info for FINA invoices": "Vaši osebni podatki o operaterju za račune FINA",
138
+ "Save Operator Settings": "Shrani nastavitve operaterja",
139
+ "Advanced Settings": "Napredne nastavitve",
140
+ "API Default Operator": "Privzeti operater za API",
141
+ "Default operator settings for API key usage (when no user context)":
142
+ "Privzete nastavitve operaterja za uporabo API ključa (brez konteksta uporabnika)",
143
+ "OIB for API key usage (optional)": "OIB za uporabo API ključa (opcijsko)",
144
+ "Operator label for API key usage (optional)": "Oznaka operaterja za uporabo API ključa (opcijsko)",
145
+ City: "Mesto",
146
+ "Entity Information": "Podatki o podjetju",
147
+ "Required company details for FINA fiscalization": "Obvezni podatki o podjetju za fiskalizacijo FINA",
148
+ "Entity OIB": "OIB podjetja",
149
+ "Your company's OIB (must match FINA certificate)": "OIB vašega podjetja (mora ustrezati certifikatu FINA)",
150
+ "Entity OIB is required for FINA fiscalization": "OIB podjetja je obvezen za fiskalizacijo FINA",
151
+ "Set entity OIB in General Settings first": "Najprej nastavite OIB podjetja v Splošnih nastavitvah",
152
+ Address: "Naslov",
153
+ "Post Code": "Poštna številka",
154
+ "Save Entity Info": "Shrani podatke o podjetju",
155
+ "Set operator OIB and label in General Settings first": "Set operator OIB and label in General Settings first",
156
+ "Complete General Settings first": "Complete General Settings first",
157
+ "Operator OIB and label are required for FINA fiscalization":
158
+ "Operator OIB and label are required for FINA fiscalization",
159
+ "FINA Operator Settings Required": "FINA Operator Settings Required",
160
+ "Your FINA operator information is needed to fiscalize this document. Please enter your operator details.":
161
+ "Your FINA operator information is needed to fiscalize this document. Please enter your operator details.",
162
+ "Save & Retry": "Save & Retry",
147
163
  } as const;
@@ -47,6 +47,24 @@ export const CertificateSettingsSection: FC<CertificateSettingsSectionProps> = (
47
47
  onSuccess?.();
48
48
  },
49
49
  onError: (error) => {
50
+ const apiMsg = (error as any)?.data?.message || (error as any)?.message;
51
+ if (typeof apiMsg === "string") {
52
+ if (apiMsg.includes("certificate") && apiMsg.includes("mode")) {
53
+ onError?.(new Error(t(apiMsg)));
54
+ return;
55
+ }
56
+ if (apiMsg.includes("Invalid certificate passphrase")) {
57
+ onError?.(new Error(t("Invalid certificate passphrase. Please check your passphrase and try again.")));
58
+ return;
59
+ }
60
+ const oibMatch = apiMsg.match(/Certificate OIB \((\d+)\) does not match entity OIB \((\d+)\)/);
61
+ if (oibMatch) {
62
+ onError?.(
63
+ new Error(t("Certificate OIB does not match entity OIB. Please upload a certificate for this entity.")),
64
+ );
65
+ return;
66
+ }
67
+ }
50
68
  onError?.(error);
51
69
  },
52
70
  });