@spaceinvoices/react-ui 0.4.11 → 0.4.31
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.
- package/cli/dist/index.js +1 -1
- package/package.json +3 -2
- package/registry.json +30 -31
- package/src/common/autocomplete.tsx +48 -26
- package/src/components/activities/locales/bg.ts +21 -0
- package/src/components/activities/locales/cs.ts +21 -0
- package/src/components/activities/locales/en.ts +21 -0
- package/src/components/activities/locales/et.ts +21 -0
- package/src/components/activities/locales/fi.ts +21 -0
- package/src/components/activities/locales/is.ts +21 -0
- package/src/components/activities/locales/nb.ts +21 -0
- package/src/components/activities/locales/sk.ts +21 -0
- package/src/components/activities/locales/sv.ts +21 -0
- package/src/components/advance-invoices/advance-invoices.hooks.ts +36 -46
- package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +452 -115
- package/src/components/advance-invoices/create/locales/bg.ts +56 -0
- package/src/components/advance-invoices/create/locales/cs.ts +56 -0
- package/src/components/advance-invoices/create/locales/de.ts +15 -7
- package/src/components/advance-invoices/create/locales/en.ts +56 -0
- package/src/components/advance-invoices/create/locales/es.ts +15 -7
- package/src/components/advance-invoices/create/locales/et.ts +56 -0
- package/src/components/advance-invoices/create/locales/fi.ts +56 -0
- package/src/components/advance-invoices/create/locales/fr.ts +16 -8
- package/src/components/advance-invoices/create/locales/hr.ts +29 -21
- package/src/components/advance-invoices/create/locales/is.ts +56 -0
- package/src/components/advance-invoices/create/locales/it.ts +15 -7
- package/src/components/advance-invoices/create/locales/nb.ts +56 -0
- package/src/components/advance-invoices/create/locales/nl.ts +15 -7
- package/src/components/advance-invoices/create/locales/pl.ts +17 -9
- package/src/components/advance-invoices/create/locales/pt.ts +16 -8
- package/src/components/advance-invoices/create/locales/sk.ts +56 -0
- package/src/components/advance-invoices/create/locales/sl.ts +23 -12
- package/src/components/advance-invoices/create/locales/sv.ts +56 -0
- package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +62 -2
- package/src/components/advance-invoices/list/list-row-actions.tsx +48 -16
- package/src/components/advance-invoices/list/list-table.tsx +35 -9
- package/src/components/advance-invoices/list/locales/bg.ts +51 -0
- package/src/components/advance-invoices/list/locales/cs.ts +51 -0
- package/src/components/advance-invoices/list/locales/en.ts +33 -2
- package/src/components/advance-invoices/list/locales/et.ts +51 -0
- package/src/components/advance-invoices/list/locales/fi.ts +51 -0
- package/src/components/advance-invoices/list/locales/hr.ts +15 -15
- package/src/components/advance-invoices/list/locales/is.ts +51 -0
- package/src/components/advance-invoices/list/locales/nb.ts +51 -0
- package/src/components/advance-invoices/list/locales/sk.ts +51 -0
- package/src/components/advance-invoices/list/locales/sv.ts +51 -0
- package/src/components/advance-invoices/list/use-advance-invoice-download.ts +3 -5
- package/src/components/common/autocomplete-locales.ts +101 -0
- package/src/components/company-registry/company-registry.hooks.ts +3 -7
- package/src/components/credit-notes/create/create-credit-note-form.tsx +437 -80
- package/src/components/credit-notes/create/locales/bg.ts +101 -0
- package/src/components/credit-notes/create/locales/cs.ts +101 -0
- package/src/components/credit-notes/create/locales/de.ts +20 -7
- package/src/components/credit-notes/create/locales/en.ts +101 -0
- package/src/components/credit-notes/create/locales/es.ts +20 -7
- package/src/components/credit-notes/create/locales/et.ts +101 -0
- package/src/components/credit-notes/create/locales/fi.ts +101 -0
- package/src/components/credit-notes/create/locales/fr.ts +21 -8
- package/src/components/credit-notes/create/locales/hr.ts +41 -28
- package/src/components/credit-notes/create/locales/is.ts +101 -0
- package/src/components/credit-notes/create/locales/it.ts +20 -7
- package/src/components/credit-notes/create/locales/nb.ts +101 -0
- package/src/components/credit-notes/create/locales/nl.ts +20 -7
- package/src/components/credit-notes/create/locales/pl.ts +22 -9
- package/src/components/credit-notes/create/locales/pt.ts +21 -8
- package/src/components/credit-notes/create/locales/sk.ts +101 -0
- package/src/components/credit-notes/create/locales/sl.ts +28 -14
- package/src/components/credit-notes/create/locales/sv.ts +101 -0
- package/src/components/credit-notes/create/prepare-credit-note-submission.ts +66 -0
- package/src/components/credit-notes/credit-notes.hooks.ts +34 -3
- package/src/components/credit-notes/list/list-row-actions.tsx +19 -7
- package/src/components/credit-notes/list/list-table.tsx +60 -8
- package/src/components/credit-notes/list/locales/bg.ts +48 -0
- package/src/components/credit-notes/list/locales/cs.ts +48 -0
- package/src/components/credit-notes/list/locales/en.ts +31 -2
- package/src/components/credit-notes/list/locales/et.ts +48 -0
- package/src/components/credit-notes/list/locales/fi.ts +48 -0
- package/src/components/credit-notes/list/locales/hr.ts +12 -12
- package/src/components/credit-notes/list/locales/is.ts +48 -0
- package/src/components/credit-notes/list/locales/nb.ts +48 -0
- package/src/components/credit-notes/list/locales/sk.ts +48 -0
- package/src/components/credit-notes/list/locales/sv.ts +48 -0
- package/src/components/credit-notes/list/use-credit-note-download.ts +3 -5
- package/src/components/customers/create-customer-form/locales/bg.ts +21 -0
- package/src/components/customers/create-customer-form/locales/cs.ts +21 -0
- package/src/components/customers/create-customer-form/locales/en.ts +21 -0
- package/src/components/customers/create-customer-form/locales/et.ts +21 -0
- package/src/components/customers/create-customer-form/locales/fi.ts +21 -0
- package/src/components/customers/create-customer-form/locales/hr.ts +11 -11
- package/src/components/customers/create-customer-form/locales/is.ts +21 -0
- package/src/components/customers/create-customer-form/locales/nb.ts +21 -0
- package/src/components/customers/create-customer-form/locales/sk.ts +21 -0
- package/src/components/customers/create-customer-form/locales/sv.ts +21 -0
- package/src/components/customers/customer-autocomplete.tsx +32 -4
- package/src/components/customers/customer-list-table/customer-list-table.tsx +8 -6
- package/src/components/customers/customer-list-table/locales/bg.ts +25 -0
- package/src/components/customers/customer-list-table/locales/cs.ts +25 -0
- package/src/components/customers/customer-list-table/locales/en.ts +17 -2
- package/src/components/customers/customer-list-table/locales/et.ts +25 -0
- package/src/components/customers/customer-list-table/locales/fi.ts +25 -0
- package/src/components/customers/customer-list-table/locales/hr.ts +11 -11
- package/src/components/customers/customer-list-table/locales/is.ts +25 -0
- package/src/components/customers/customer-list-table/locales/nb.ts +25 -0
- package/src/components/customers/customer-list-table/locales/sk.ts +25 -0
- package/src/components/customers/customer-list-table/locales/sv.ts +25 -0
- package/src/components/customers/customers.hooks.ts +14 -17
- package/src/components/customers/edit-customer-form/locales/bg.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/cs.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/en.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/et.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/fi.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/hr.ts +5 -5
- package/src/components/customers/edit-customer-form/locales/is.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/nb.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/sk.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/sv.ts +13 -0
- package/src/components/dashboard/collection-rate-card/collection-rate-card.tsx +7 -6
- package/src/components/dashboard/collection-rate-card/locales/en.ts +3 -0
- package/src/components/dashboard/collection-rate-card/use-collection-rate.ts +8 -7
- package/src/components/dashboard/invoice-status-chart/invoice-status-chart.tsx +7 -4
- package/src/components/dashboard/invoice-status-chart/locales/bg.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/cs.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/de.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/en.ts +10 -0
- package/src/components/dashboard/invoice-status-chart/locales/es.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/et.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/fi.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/fr.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/hr.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/is.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/it.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/nb.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/nl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/pl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/pt.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/sk.ts +5 -5
- package/src/components/dashboard/invoice-status-chart/locales/sl.ts +1 -1
- package/src/components/dashboard/invoice-status-chart/locales/sv.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/bg.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/cs.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/en.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/et.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/fi.ts +6 -6
- package/src/components/dashboard/payment-methods-chart/locales/hr.ts +3 -3
- package/src/components/dashboard/payment-methods-chart/locales/is.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/nb.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/sk.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/locales/sv.ts +5 -5
- package/src/components/dashboard/payment-methods-chart/payment-methods-chart.tsx +4 -3
- package/src/components/dashboard/payment-trend-chart/locales/bg.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/cs.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/en.ts +6 -0
- package/src/components/dashboard/payment-trend-chart/locales/et.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/fi.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/is.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/nb.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/sk.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/locales/sv.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/payment-trend-chart.tsx +4 -3
- package/src/components/dashboard/payment-trend-chart/use-payment-trend.ts +12 -9
- package/src/components/dashboard/revenue-card.tsx +3 -3
- package/src/components/dashboard/revenue-trend-chart/locales/bg.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/cs.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/en.ts +6 -0
- package/src/components/dashboard/revenue-trend-chart/locales/et.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/fi.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/is.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/nb.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/sk.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/locales/sv.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/revenue-trend-chart.tsx +4 -3
- package/src/components/dashboard/revenue-trend-chart/use-revenue-trend.ts +4 -3
- package/src/components/dashboard/shared/local-date.ts +11 -0
- package/src/components/dashboard/shared/use-revenue-data.ts +6 -5
- package/src/components/dashboard/shared/use-stats-query.ts +7 -11
- package/src/components/dashboard/stat-card.tsx +3 -3
- package/src/components/dashboard/tax-collected-card/tax-collected-card.tsx +11 -9
- package/src/components/dashboard/tax-collected-card/use-tax-collected.ts +3 -2
- package/src/components/dashboard/top-customers-chart/locales/bg.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/cs.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/en.ts +7 -0
- package/src/components/dashboard/top-customers-chart/locales/et.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/fi.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/is.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/nb.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/sk.ts +2 -2
- package/src/components/dashboard/top-customers-chart/locales/sv.ts +2 -2
- package/src/components/dashboard/top-customers-chart/top-customers-chart.tsx +4 -3
- package/src/components/dashboard/top-customers-chart/use-top-customers.ts +7 -20
- package/src/components/delivery-notes/create/create-delivery-note-form.tsx +179 -47
- package/src/components/delivery-notes/create/locales/bg.ts +69 -0
- package/src/components/delivery-notes/create/locales/cs.ts +69 -0
- package/src/components/delivery-notes/create/locales/de.ts +1 -0
- package/src/components/delivery-notes/create/locales/en.ts +69 -0
- package/src/components/delivery-notes/create/locales/es.ts +1 -0
- package/src/components/delivery-notes/create/locales/et.ts +69 -0
- package/src/components/delivery-notes/create/locales/fi.ts +69 -0
- package/src/components/delivery-notes/create/locales/fr.ts +1 -0
- package/src/components/delivery-notes/create/locales/hr.ts +7 -6
- package/src/components/delivery-notes/create/locales/is.ts +69 -0
- package/src/components/delivery-notes/create/locales/it.ts +1 -0
- package/src/components/delivery-notes/create/locales/nb.ts +69 -0
- package/src/components/delivery-notes/create/locales/nl.ts +1 -0
- package/src/components/delivery-notes/create/locales/pl.ts +1 -0
- package/src/components/delivery-notes/create/locales/pt.ts +1 -0
- package/src/components/delivery-notes/create/locales/sk.ts +69 -0
- package/src/components/delivery-notes/create/locales/sl.ts +6 -5
- package/src/components/delivery-notes/create/locales/sv.ts +69 -0
- package/src/components/delivery-notes/create/prepare-delivery-note-submission.ts +34 -1
- package/src/components/delivery-notes/delivery-notes.hooks.ts +34 -3
- package/src/components/delivery-notes/list/list-row-actions.tsx +62 -16
- package/src/components/delivery-notes/list/list-table.tsx +44 -10
- package/src/components/delivery-notes/list/locales/bg.ts +40 -0
- package/src/components/delivery-notes/list/locales/cs.ts +40 -0
- package/src/components/delivery-notes/list/locales/et.ts +40 -0
- package/src/components/delivery-notes/list/locales/fi.ts +40 -0
- package/src/components/delivery-notes/list/locales/is.ts +40 -0
- package/src/components/delivery-notes/list/locales/nb.ts +40 -0
- package/src/components/delivery-notes/list/locales/sk.ts +40 -0
- package/src/components/delivery-notes/list/locales/sv.ts +40 -0
- package/src/components/delivery-notes/list/use-delivery-note-download.ts +3 -5
- package/src/components/documents/create/custom-create-template.ts +114 -0
- package/src/components/documents/create/document-add-item-form.tsx +266 -153
- package/src/components/documents/create/document-add-item-tax-rate-field.tsx +3 -3
- package/src/components/documents/create/document-date-validation.ts +111 -0
- package/src/components/documents/create/document-details-section.tsx +117 -54
- package/src/components/documents/create/document-form-item.ts +67 -0
- package/src/components/documents/create/document-item-validation.ts +54 -0
- package/src/components/documents/create/document-items-section.tsx +44 -6
- package/src/components/documents/create/document-recipient-section.tsx +10 -2
- package/src/components/documents/create/form-types.ts +2 -2
- package/src/components/documents/create/linked-documents-info.tsx +6 -14
- package/src/components/documents/create/live-preview.tsx +22 -18
- package/src/components/documents/create/mark-as-paid-section.tsx +80 -20
- package/src/components/documents/create/payment-rows.ts +321 -0
- package/src/components/documents/create/prepare-document-submission.ts +160 -109
- package/src/components/documents/create/prepare-preview-data.ts +12 -0
- package/src/components/documents/create/preserved-expected-total.ts +90 -0
- package/src/components/documents/create/scroll-to-first-invalid-field.ts +27 -0
- package/src/components/documents/create/smart-code-insert-button.tsx +5 -53
- package/src/components/documents/create/use-document-customer-form.ts +74 -25
- package/src/components/documents/documents.hooks.ts +3 -5
- package/src/components/documents/index.ts +1 -0
- package/src/components/documents/public/index.ts +1 -0
- package/src/components/documents/public/public-document-summary.tsx +336 -0
- package/src/components/documents/shared/document-preview-display.tsx +65 -39
- package/src/components/documents/shared/index.ts +6 -1
- package/src/components/documents/shared/scaled-document-preview.tsx +33 -19
- package/src/components/documents/types.ts +24 -0
- package/src/components/documents/view/document-actions-bar.tsx +251 -63
- package/src/components/documents/view/document-activities-list.tsx +23 -11
- package/src/components/documents/view/document-details-card.tsx +11 -39
- package/src/components/documents/view/document-payments-list.tsx +114 -57
- package/src/components/documents/view/document-relations-list.tsx +26 -6
- package/src/components/documents/view/document-sidebar.tsx +25 -3
- package/src/components/documents/view/document-version-history.tsx +137 -0
- package/src/components/documents/view/index.ts +1 -0
- package/src/components/documents/view/locales/bg.ts +143 -0
- package/src/components/documents/view/locales/cs.ts +143 -0
- package/src/components/documents/view/locales/de.ts +13 -0
- package/src/components/documents/view/locales/en.ts +143 -0
- package/src/components/documents/view/locales/es.ts +13 -0
- package/src/components/documents/view/locales/et.ts +143 -0
- package/src/components/documents/view/locales/fi.ts +143 -0
- package/src/components/documents/view/locales/fr.ts +13 -0
- package/src/components/documents/view/locales/hr.ts +18 -5
- package/src/components/documents/view/locales/is.ts +143 -0
- package/src/components/documents/view/locales/it.ts +13 -0
- package/src/components/documents/view/locales/nb.ts +143 -0
- package/src/components/documents/view/locales/nl.ts +13 -0
- package/src/components/documents/view/locales/pl.ts +13 -0
- package/src/components/documents/view/locales/pt.ts +13 -0
- package/src/components/documents/view/locales/sk.ts +143 -0
- package/src/components/documents/view/locales/sl.ts +21 -8
- package/src/components/documents/view/locales/sv.ts +143 -0
- package/src/components/documents/view/use-document-download.ts +18 -17
- package/src/components/entities/create-entity-form.tsx +200 -12
- package/src/components/entities/entities.hooks.ts +15 -7
- package/src/components/entities/entity-settings-form/entity-settings-form.tsx +121 -65
- package/src/components/entities/entity-settings-form/input-with-preview.tsx +28 -4
- package/src/components/entities/entity-settings-form/locales/bg.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/cs.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/de.ts +17 -3
- package/src/components/entities/entity-settings-form/locales/en.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/es.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/et.ts +205 -0
- package/src/components/entities/entity-settings-form/locales/fi.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/fr.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/hr.ts +23 -11
- package/src/components/entities/entity-settings-form/locales/is.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/it.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/nb.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/nl.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/pl.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/pt.ts +15 -3
- package/src/components/entities/entity-settings-form/locales/sk.ts +206 -0
- package/src/components/entities/entity-settings-form/locales/sl.ts +31 -18
- package/src/components/entities/entity-settings-form/locales/sv.ts +212 -0
- package/src/components/entities/fina-settings-form/fina-operator-required-dialog.tsx +34 -9
- package/src/components/entities/fina-settings-form/fina-settings-form.tsx +2 -0
- package/src/components/entities/fina-settings-form/fina-settings.hooks.ts +14 -45
- package/src/components/entities/fina-settings-form/locales/bg.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/cs.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/et.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/fi.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/hr.ts +11 -10
- package/src/components/entities/fina-settings-form/locales/is.ts +164 -0
- package/src/components/entities/fina-settings-form/locales/nb.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/sk.ts +163 -0
- package/src/components/entities/fina-settings-form/locales/sl.ts +8 -7
- package/src/components/entities/fina-settings-form/locales/sv.ts +165 -0
- package/src/components/entities/furs-settings-form/furs-operator-required-dialog.tsx +34 -9
- package/src/components/entities/furs-settings-form/furs-settings-form.tsx +13 -1
- package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +141 -42
- package/src/components/entities/furs-settings-form/locales/bg.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/cs.ts +241 -0
- package/src/components/entities/furs-settings-form/locales/de.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/en.ts +24 -0
- package/src/components/entities/furs-settings-form/locales/es.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/et.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/fi.ts +243 -0
- package/src/components/entities/furs-settings-form/locales/fr.ts +43 -15
- package/src/components/entities/furs-settings-form/locales/hr.ts +44 -19
- package/src/components/entities/furs-settings-form/locales/is.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/it.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/nb.ts +242 -0
- package/src/components/entities/furs-settings-form/locales/nl.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/pl.ts +40 -15
- package/src/components/entities/furs-settings-form/locales/pt.ts +42 -15
- package/src/components/entities/furs-settings-form/locales/sk.ts +243 -0
- package/src/components/entities/furs-settings-form/locales/sl.ts +34 -10
- package/src/components/entities/furs-settings-form/locales/sv.ts +242 -0
- package/src/components/entities/furs-settings-form/sections/enable-fiscalization-section.tsx +11 -0
- package/src/components/entities/furs-settings-form/sections/furs-internal-act-download-card.tsx +111 -0
- package/src/components/entities/furs-settings-form/sections/general-settings-section.tsx +27 -0
- package/src/components/entities/furs-settings-form/sections/premises-management-section.tsx +23 -16
- package/src/components/entities/furs-settings-form/sections/register-premise-dialog.tsx +89 -31
- package/src/components/entities/settings/branding-settings-form.tsx +11 -30
- package/src/components/entities/settings/company-settings-form.tsx +2 -1
- package/src/components/entities/settings/defaults-settings-form.tsx +106 -3
- package/src/components/entities/settings/email-settings-form.tsx +245 -3
- package/src/components/entities/settings/eslog-settings-form.tsx +2 -1
- package/src/components/entities/settings/number-format-settings-form.tsx +2 -1
- package/src/components/entities/settings/pdf-template-selector/locales/bg.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/cs.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/en.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/et.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/fi.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/is.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/nb.ts +19 -0
- package/src/components/entities/settings/pdf-template-selector/locales/sk.ts +20 -0
- package/src/components/entities/settings/pdf-template-selector/locales/sv.ts +19 -0
- package/src/components/entities/settings/tax-rules-settings-form.tsx +57 -6
- package/src/components/estimates/create/create-estimate-form.tsx +250 -66
- package/src/components/estimates/create/locales/bg.ts +77 -0
- package/src/components/estimates/create/locales/cs.ts +77 -0
- package/src/components/estimates/create/locales/de.ts +4 -3
- package/src/components/estimates/create/locales/en.ts +77 -0
- package/src/components/estimates/create/locales/es.ts +4 -3
- package/src/components/estimates/create/locales/et.ts +77 -0
- package/src/components/estimates/create/locales/fi.ts +77 -0
- package/src/components/estimates/create/locales/fr.ts +4 -3
- package/src/components/estimates/create/locales/hr.ts +13 -12
- package/src/components/estimates/create/locales/is.ts +77 -0
- package/src/components/estimates/create/locales/it.ts +4 -3
- package/src/components/estimates/create/locales/nb.ts +77 -0
- package/src/components/estimates/create/locales/nl.ts +4 -3
- package/src/components/estimates/create/locales/pl.ts +4 -3
- package/src/components/estimates/create/locales/pt.ts +4 -3
- package/src/components/estimates/create/locales/sk.ts +77 -0
- package/src/components/estimates/create/locales/sl.ts +13 -12
- package/src/components/estimates/create/locales/sv.ts +77 -0
- package/src/components/estimates/create/prepare-estimate-submission.ts +41 -4
- package/src/components/estimates/estimates.hooks.ts +24 -3
- package/src/components/estimates/list/list-row-actions.tsx +34 -7
- package/src/components/estimates/list/list-table.tsx +89 -11
- package/src/components/estimates/list/locales/bg.ts +40 -0
- package/src/components/estimates/list/locales/cs.ts +40 -0
- package/src/components/estimates/list/locales/de.ts +2 -0
- package/src/components/estimates/list/locales/en.ts +29 -2
- package/src/components/estimates/list/locales/es.ts +2 -0
- package/src/components/estimates/list/locales/et.ts +40 -0
- package/src/components/estimates/list/locales/fi.ts +40 -0
- package/src/components/estimates/list/locales/fr.ts +2 -0
- package/src/components/estimates/list/locales/hr.ts +9 -7
- package/src/components/estimates/list/locales/is.ts +40 -0
- package/src/components/estimates/list/locales/it.ts +2 -0
- package/src/components/estimates/list/locales/nb.ts +40 -0
- package/src/components/estimates/list/locales/nl.ts +2 -0
- package/src/components/estimates/list/locales/pl.ts +2 -0
- package/src/components/estimates/list/locales/pt.ts +2 -0
- package/src/components/estimates/list/locales/sk.ts +40 -0
- package/src/components/estimates/list/locales/sl.ts +9 -7
- package/src/components/estimates/list/locales/sv.ts +40 -0
- package/src/components/estimates/list/use-estimate-download.ts +3 -5
- package/src/components/export/document-export-form.tsx +72 -15
- package/src/components/export/sales-per-item-export-form.tsx +3 -2
- package/src/components/invoices/create/create-invoice-form.tsx +500 -112
- package/src/components/invoices/create/eslog-validation.ts +97 -8
- package/src/components/invoices/create/locales/bg.ts +173 -0
- package/src/components/invoices/create/locales/cs.ts +173 -0
- package/src/components/invoices/create/locales/de.ts +41 -9
- package/src/components/invoices/create/locales/en.ts +173 -0
- package/src/components/invoices/create/locales/es.ts +42 -9
- package/src/components/invoices/create/locales/et.ts +173 -0
- package/src/components/invoices/create/locales/fi.ts +173 -0
- package/src/components/invoices/create/locales/fr.ts +42 -11
- package/src/components/invoices/create/locales/hr.ts +50 -18
- package/src/components/invoices/create/locales/is.ts +173 -0
- package/src/components/invoices/create/locales/it.ts +43 -11
- package/src/components/invoices/create/locales/nb.ts +173 -0
- package/src/components/invoices/create/locales/nl.ts +42 -10
- package/src/components/invoices/create/locales/pl.ts +42 -11
- package/src/components/invoices/create/locales/pt.ts +43 -10
- package/src/components/invoices/create/locales/sk.ts +173 -0
- package/src/components/invoices/create/locales/sl.ts +49 -18
- package/src/components/invoices/create/locales/sv.ts +175 -0
- package/src/components/invoices/create/prepare-invoice-submission.ts +73 -2
- package/src/components/invoices/invoices-furs.hooks.ts +11 -8
- package/src/components/invoices/invoices.hooks.ts +36 -10
- package/src/components/invoices/list/list-row-actions.tsx +54 -21
- package/src/components/invoices/list/list-table.tsx +94 -12
- package/src/components/invoices/list/locales/bg.ts +49 -0
- package/src/components/invoices/list/locales/cs.ts +49 -0
- package/src/components/invoices/list/locales/en.ts +34 -2
- package/src/components/invoices/list/locales/et.ts +49 -0
- package/src/components/invoices/list/locales/fi.ts +49 -0
- package/src/components/invoices/list/locales/is.ts +49 -0
- package/src/components/invoices/list/locales/nb.ts +49 -0
- package/src/components/invoices/list/locales/sk.ts +49 -0
- package/src/components/invoices/list/locales/sv.ts +49 -0
- package/src/components/invoices/list/use-invoice-download.ts +3 -5
- package/src/components/invoices/send-email-dialog/locales/bg.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/cs.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/de.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/en.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/es.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/et.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/fi.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/fr.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/hr.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/is.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/it.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/nb.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/nl.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/pl.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/pt.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/sk.ts +63 -0
- package/src/components/invoices/send-email-dialog/locales/sl.ts +26 -0
- package/src/components/invoices/send-email-dialog/locales/sv.ts +63 -0
- package/src/components/invoices/send-email-dialog/send-email-dialog.tsx +189 -93
- package/src/components/invoices/view/eslog-info-display.tsx +2 -0
- package/src/components/invoices/view/fiscalization-status-card.tsx +2 -0
- package/src/components/items/create-item-form/create-item-form.tsx +29 -0
- package/src/components/items/create-item-form/locales/bg.ts +13 -0
- package/src/components/items/create-item-form/locales/cs.ts +13 -0
- package/src/components/items/create-item-form/locales/et.ts +13 -0
- package/src/components/items/create-item-form/locales/fi.ts +13 -0
- package/src/components/items/create-item-form/locales/is.ts +13 -0
- package/src/components/items/create-item-form/locales/nb.ts +13 -0
- package/src/components/items/create-item-form/locales/sk.ts +13 -0
- package/src/components/items/create-item-form/locales/sv.ts +13 -0
- package/src/components/items/edit-item-form/edit-item-form.tsx +39 -1
- package/src/components/items/edit-item-form/locales/bg.ts +12 -0
- package/src/components/items/edit-item-form/locales/cs.ts +12 -0
- package/src/components/items/edit-item-form/locales/en.ts +12 -0
- package/src/components/items/edit-item-form/locales/et.ts +12 -0
- package/src/components/items/edit-item-form/locales/fi.ts +12 -0
- package/src/components/items/edit-item-form/locales/is.ts +12 -0
- package/src/components/items/edit-item-form/locales/nb.ts +12 -0
- package/src/components/items/edit-item-form/locales/sk.ts +12 -0
- package/src/components/items/edit-item-form/locales/sv.ts +12 -0
- package/src/components/items/item-combobox.tsx +55 -22
- package/src/components/items/item-list-table/item-list-table.tsx +47 -23
- package/src/components/items/item-list-table/locales/bg.ts +16 -0
- package/src/components/items/item-list-table/locales/cs.ts +16 -0
- package/src/components/items/item-list-table/locales/en.ts +4 -3
- package/src/components/items/item-list-table/locales/et.ts +16 -0
- package/src/components/items/item-list-table/locales/fi.ts +16 -0
- package/src/components/items/item-list-table/locales/is.ts +16 -0
- package/src/components/items/item-list-table/locales/nb.ts +16 -0
- package/src/components/items/item-list-table/locales/sk.ts +16 -0
- package/src/components/items/item-list-table/locales/sv.ts +16 -0
- package/src/components/items/items.hooks.ts +15 -15
- package/src/components/payments/create-payment-form/create-payment-form.tsx +16 -9
- package/src/components/payments/create-payment-form/locales/bg.ts +20 -0
- package/src/components/payments/create-payment-form/locales/cs.ts +20 -0
- package/src/components/payments/create-payment-form/locales/en.ts +20 -0
- package/src/components/payments/create-payment-form/locales/et.ts +20 -0
- package/src/components/payments/create-payment-form/locales/fi.ts +20 -0
- package/src/components/payments/create-payment-form/locales/hr.ts +2 -2
- package/src/components/payments/create-payment-form/locales/is.ts +20 -0
- package/src/components/payments/create-payment-form/locales/nb.ts +20 -0
- package/src/components/payments/create-payment-form/locales/sk.ts +20 -0
- package/src/components/payments/create-payment-form/locales/sl.ts +4 -4
- package/src/components/payments/create-payment-form/locales/sv.ts +20 -0
- package/src/components/payments/edit-payment-form/edit-payment-form.tsx +10 -2
- package/src/components/payments/edit-payment-form/locales/bg.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/cs.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/en.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/et.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/fi.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/hr.ts +2 -2
- package/src/components/payments/edit-payment-form/locales/is.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/nb.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/sk.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/sl.ts +4 -4
- package/src/components/payments/edit-payment-form/locales/sv.ts +20 -0
- package/src/components/payments/list/list-row-actions.tsx +10 -2
- package/src/components/payments/list/list-table.tsx +51 -45
- package/src/components/payments/list/locales/bg.ts +42 -0
- package/src/components/payments/list/locales/cs.ts +42 -0
- package/src/components/payments/list/locales/de.ts +18 -0
- package/src/components/payments/list/locales/en.ts +37 -2
- package/src/components/payments/list/locales/es.ts +18 -0
- package/src/components/payments/list/locales/et.ts +42 -0
- package/src/components/payments/list/locales/fi.ts +42 -0
- package/src/components/payments/list/locales/fr.ts +18 -0
- package/src/components/payments/list/locales/hr.ts +18 -0
- package/src/components/payments/list/locales/is.ts +42 -0
- package/src/components/payments/list/locales/it.ts +18 -0
- package/src/components/payments/list/locales/nb.ts +42 -0
- package/src/components/payments/list/locales/nl.ts +18 -0
- package/src/components/payments/list/locales/pl.ts +18 -0
- package/src/components/payments/list/locales/pt.ts +18 -0
- package/src/components/payments/list/locales/sk.ts +42 -0
- package/src/components/payments/list/locales/sl.ts +18 -1
- package/src/components/payments/list/locales/sv.ts +42 -0
- package/src/components/payments/payments.hooks.ts +13 -6
- package/src/components/recurring-invoices/create-recurring-invoice-form/create-recurring-invoice-form.tsx +121 -39
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/bg.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/cs.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/en.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/et.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/fi.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/hr.ts +6 -6
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/is.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/nb.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sk.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sl.ts +4 -4
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sv.ts +44 -0
- package/src/components/recurring-invoices/list/list-row-actions.tsx +12 -6
- package/src/components/recurring-invoices/list/list-table.tsx +63 -12
- package/src/components/recurring-invoices/list/locales/bg.ts +32 -0
- package/src/components/recurring-invoices/list/locales/cs.ts +32 -0
- package/src/components/recurring-invoices/list/locales/de.ts +4 -0
- package/src/components/recurring-invoices/list/locales/en.ts +27 -0
- package/src/components/recurring-invoices/list/locales/es.ts +4 -0
- package/src/components/recurring-invoices/list/locales/et.ts +32 -0
- package/src/components/recurring-invoices/list/locales/fi.ts +32 -0
- package/src/components/recurring-invoices/list/locales/fr.ts +4 -0
- package/src/components/recurring-invoices/list/locales/hr.ts +4 -0
- package/src/components/recurring-invoices/list/locales/is.ts +32 -0
- package/src/components/recurring-invoices/list/locales/it.ts +4 -0
- package/src/components/recurring-invoices/list/locales/nb.ts +32 -0
- package/src/components/recurring-invoices/list/locales/nl.ts +4 -0
- package/src/components/recurring-invoices/list/locales/pl.ts +4 -0
- package/src/components/recurring-invoices/list/locales/pt.ts +4 -0
- package/src/components/recurring-invoices/list/locales/sk.ts +32 -0
- package/src/components/recurring-invoices/list/locales/sl.ts +4 -0
- package/src/components/recurring-invoices/list/locales/sv.ts +32 -0
- package/src/components/recurring-invoices/recurring-invoices.hooks.ts +11 -8
- package/src/components/request-logs/request-log-detail.tsx +30 -23
- package/src/components/request-logs/request-log-list-table.tsx +88 -45
- package/src/components/table/README.md +47 -9
- package/src/components/table/data-table.tsx +232 -92
- package/src/components/table/filter-bar.tsx +1 -1
- package/src/components/table/filter-panel.tsx +51 -22
- package/src/components/table/hooks/use-table-state.ts +64 -11
- package/src/components/table/index.ts +3 -0
- package/src/components/table/locales.ts +119 -4
- package/src/components/table/selection-toolbar.tsx +65 -9
- package/src/components/table/sorting.ts +80 -0
- package/src/components/table/table-skeleton.tsx +15 -9
- package/src/components/table/types.ts +17 -0
- package/src/components/tax-reports/index.ts +8 -0
- package/src/components/tax-reports/kir-export-form.tsx +4 -5
- package/src/components/tax-reports/slovenia-accounting-mappings-fields.tsx +271 -0
- package/src/components/tax-reports/slovenia-tax-profile-step.tsx +25 -11
- package/src/components/tax-reports/slovenia-vod-export-form.tsx +452 -0
- package/src/components/tax-reports/slovenia-yearly-export-form.tsx +20 -16
- package/src/components/tax-reports/slovenia-yearly-review-step.tsx +42 -19
- package/src/components/taxes/create-tax-form/create-tax-form.tsx +48 -2
- package/src/components/taxes/create-tax-form/locales/bg.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/cs.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/et.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/fi.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/is.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/nb.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/sk.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/sv.ts +8 -0
- package/src/components/taxes/edit-tax-form/edit-tax-form.tsx +80 -11
- package/src/components/taxes/edit-tax-form/locales/bg.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/cs.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/en.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/et.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/fi.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/is.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/nb.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/sk.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/sv.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/bg.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/cs.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/en.ts +4 -3
- package/src/components/taxes/tax-list-table/locales/et.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/fi.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/is.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/nb.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/sk.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/sv.ts +17 -0
- package/src/components/taxes/tax-list-table/tax-list-table.tsx +53 -19
- package/src/components/taxes/taxes.hooks.ts +53 -12
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/drawer.tsx +2 -2
- package/src/components/ui/form.tsx +118 -10
- package/src/components/ui/progress.tsx +6 -4
- package/src/components/ui/select.tsx +118 -2
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/sonner.tsx +17 -36
- package/src/components/ui/sticky-form-footer.tsx +6 -1
- package/src/components/ui/tooltip.tsx +15 -2
- package/src/components/webhook-logs/webhook-delivery-detail.tsx +22 -22
- package/src/components/webhook-logs/webhook-delivery-list-table.tsx +92 -17
- package/src/components/wl-subscription/locked-feature.tsx +11 -10
- package/src/components/wl-subscription/paywall.tsx +184 -72
- package/src/components/wl-subscription/upgrade-modal.tsx +28 -31
- package/src/generate-schemas.ts +146 -103
- package/src/generated/schemas/acceptentityinvitation_body.ts +4 -3
- package/src/generated/schemas/accountwebhook.ts +63 -0
- package/src/generated/schemas/addentityuser_body.ts +4 -3
- package/src/generated/schemas/advanceinvoice.ts +167 -168
- package/src/generated/schemas/authorizeshopify_body.ts +4 -3
- package/src/generated/schemas/calculatedocumentpreview.ts +120 -0
- package/src/generated/schemas/checktransactiontype.ts +35 -0
- package/src/generated/schemas/creditnote.ts +203 -76
- package/src/generated/schemas/customadvanceinvoice.ts +172 -165
- package/src/generated/schemas/customcreditnote.ts +183 -155
- package/src/generated/schemas/customdeliverynote.ts +166 -0
- package/src/generated/schemas/customer.ts +4 -8
- package/src/generated/schemas/customestimate.ts +123 -97
- package/src/generated/schemas/customincomingpurchasedocument.ts +142 -0
- package/src/generated/schemas/custominvoice.ts +183 -154
- package/src/generated/schemas/deliverynote.ts +124 -79
- package/src/generated/schemas/einvoice.ts +19 -0
- package/src/generated/schemas/einvoicingsettings.ts +21 -0
- package/src/generated/schemas/einvoicingsupplier.ts +45 -0
- package/src/generated/schemas/entity.ts +267 -24
- package/src/generated/schemas/entityapikey.ts +1 -3
- package/src/generated/schemas/entityuserrole.ts +1 -3
- package/src/generated/schemas/estimate.ts +120 -127
- package/src/generated/schemas/exportsloveniavodxml_body.ts +17 -0
- package/src/generated/schemas/exportsloveniayearlynormiranireport_body.ts +4 -3
- package/src/generated/schemas/finadevice.ts +15 -0
- package/src/generated/schemas/finalizedocument.ts +52 -0
- package/src/generated/schemas/finapremise.ts +15 -0
- package/src/generated/schemas/finasettings.ts +1 -3
- package/src/generated/schemas/furselectronicdevice.ts +15 -0
- package/src/generated/schemas/furssettings.ts +2 -3
- package/src/generated/schemas/image.ts +15 -0
- package/src/generated/schemas/incomingpurchasedocument.ts +178 -0
- package/src/generated/schemas/incomingpurchasedocumentattachment.ts +15 -0
- package/src/generated/schemas/incomingpurchasedocumentpayment.ts +36 -0
- package/src/generated/schemas/index.ts +30 -5
- package/src/generated/schemas/invoice.ts +182 -183
- package/src/generated/schemas/item.ts +35 -3
- package/src/generated/schemas/legacymigrationauth.ts +18 -0
- package/src/generated/schemas/me.ts +4 -22
- package/src/generated/schemas/migrationjob.ts +20 -0
- package/src/generated/schemas/order.ts +6 -8
- package/src/generated/schemas/orderintegration.ts +12 -12
- package/src/generated/schemas/payment.ts +9 -8
- package/src/generated/schemas/ptatcudseries.ts +28 -0
- package/src/generated/schemas/queryentitystats.ts +15 -0
- package/src/generated/schemas/recurringinvoice.ts +4 -8
- package/src/generated/schemas/registerfursmovablepremise_body.ts +1 -3
- package/src/generated/schemas/registerfursrealestatepremise_body.ts +1 -3
- package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +42 -16
- package/src/generated/schemas/rendercreditnotepreview_body.ts +42 -16
- package/src/generated/schemas/renderdeliverynotepreview_body.ts +19 -8
- package/src/generated/schemas/renderestimatepreview_body.ts +45 -8
- package/src/generated/schemas/renderinvoicepreview_body.ts +46 -18
- package/src/generated/schemas/reviewsloveniayearlynormiranireport.ts +15 -0
- package/src/generated/schemas/searcheinvoicingcustomer.ts +18 -0
- package/src/generated/schemas/senddocument_body.ts +2 -3
- package/src/generated/schemas/sendemail_body.ts +48 -42
- package/src/generated/schemas/sloveniataxprofile.ts +98 -24
- package/src/generated/schemas/starteslogexport_body.ts +34 -0
- package/src/generated/schemas/startpdfexport_body.ts +18 -81
- package/src/generated/schemas/stripeappconnect_body.ts +4 -3
- package/src/generated/schemas/stripeappcreateinvoice_body.ts +4 -6
- package/src/generated/schemas/stripeappmarketplaceauthorize.ts +15 -0
- package/src/generated/schemas/stripeappupdatesettings_body.ts +6 -6
- package/src/generated/schemas/supplier.ts +55 -0
- package/src/generated/schemas/syncshopifyorders_body.ts +21 -0
- package/src/generated/schemas/tax.ts +8 -8
- package/src/generated/schemas/uploadfile_body.ts +2 -3
- package/src/generated/schemas/uploadfurscertificate_body.ts +6 -6
- package/src/generated/schemas/userfinasettings.ts +1 -3
- package/src/generated/schemas/userfurssettings.ts +1 -3
- package/src/generated/schemas/userptsettings.ts +24 -0
- package/src/generated/schemas/voidinvoice_body.ts +25 -0
- package/src/generated/schemas/webhook.ts +6 -8
- package/src/generated/schemas/wlsubscriptionbillingemail.ts +17 -0
- package/src/hooks/create-resource-hooks.ts +22 -19
- package/src/hooks/use-duplicate-document.ts +71 -38
- package/src/hooks/use-eslog-validation.ts +5 -1
- package/src/hooks/use-next-document-number.ts +13 -6
- package/src/hooks/use-resolved-entity-id.ts +14 -0
- package/src/hooks/use-resource-mutation.ts +11 -30
- package/src/hooks/use-transaction-type-check.ts +3 -8
- package/src/lib/browser-cookies.ts +1 -1
- package/src/lib/country-capabilities.ts +114 -0
- package/src/lib/date-fns-locale.ts +1 -20
- package/src/lib/date-only.ts +58 -0
- package/src/lib/document-display.ts +18 -0
- package/src/lib/eslog-export.ts +32 -0
- package/src/lib/fiscalization-options.ts +21 -1
- package/src/lib/formatting.ts +27 -0
- package/src/lib/furs-error-utils.ts +29 -0
- package/src/lib/locale.ts +4 -0
- package/src/lib/payment-display.ts +97 -0
- package/src/lib/pt-document-input.ts +67 -0
- package/src/lib/schemas/shared.ts +12 -0
- package/src/lib/template-variables.tsx +102 -4
- package/src/lib/translation.ts +51 -33
- package/src/lib/white-label-capabilities.ts +626 -0
- package/src/lib/zod-validation-message.ts +291 -0
- package/src/providers/entities-provider.tsx +32 -14
- package/src/providers/sdk-provider.tsx +112 -12
- package/src/providers/space-invoices-provider.tsx +129 -0
- package/src/providers/white-label-provider.tsx +96 -4
- package/src/providers/wl-subscription-provider.tsx +149 -10
- package/src/generated/schemas/previewadvanceinvoice_body.ts +0 -354
- package/src/generated/schemas/previewestimate_body.ts +0 -309
- package/src/generated/schemas/registerfinamovablepremise_body.ts +0 -26
- package/src/generated/schemas/registerfinarealestatepremise_body.ts +0 -37
- package/src/generated/schemas/renderdocument_body.ts +0 -594
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Lagre",
|
|
3
|
+
Update: "Oppdater",
|
|
4
|
+
"Save as Draft": "Save as Draft",
|
|
5
|
+
"Create Advance Invoice": "Opprett forskuddsfaktura",
|
|
6
|
+
"e-SLOG": "e-SLOG",
|
|
7
|
+
"Fiscally verify": "Fiscally verify",
|
|
8
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
9
|
+
"Click to skip e-SLOG validation for this advance invoice",
|
|
10
|
+
"Click to enable e-SLOG validation": "Click to enable e-SLOG validation",
|
|
11
|
+
"Click to skip fiscalization for this advance invoice": "Click to skip fiscalization for this advance invoice",
|
|
12
|
+
"Click to enable fiscalization": "Click to enable fiscalization",
|
|
13
|
+
"Cannot skip fiscalization for cash payments": "Cannot skip fiscalization for cash payments",
|
|
14
|
+
"e-SLOG Validation Failed": "e-SLOG Validation Failed",
|
|
15
|
+
"The following entity settings need to be updated:": "The following entity settings need to be updated:",
|
|
16
|
+
"Reverse charge - tax exempt EU B2B sale": "Reverse charge - tax exempt EU B2B sale",
|
|
17
|
+
"Mark as Paid": "Merk som betalt",
|
|
18
|
+
"Paid": "Betalt",
|
|
19
|
+
"Advance invoice will be marked as fully paid upon creation": "Forskuddsfakturaen blir markert som fullt betalt ved opprettelse",
|
|
20
|
+
"Payment Type": "Betalingstype",
|
|
21
|
+
"Select payment type": "Velg betalingstype",
|
|
22
|
+
"Cash": "Kontant",
|
|
23
|
+
"Bank Transfer": "Bankoverføring",
|
|
24
|
+
"Card": "Kort",
|
|
25
|
+
"Check": "Sjekk",
|
|
26
|
+
"Other": "Annet",
|
|
27
|
+
Premise: "Premise",
|
|
28
|
+
Device: "Enhet",
|
|
29
|
+
"FINA fiscalized invoices always use the current date": "FINA fiscalized invoices always use the current date",
|
|
30
|
+
Signature: "Signatur",
|
|
31
|
+
"Add signature text...": "Legg til signaturtekst...",
|
|
32
|
+
"Add separator": "Add separator",
|
|
33
|
+
"Section header": "Section header",
|
|
34
|
+
"Section title...": "Section title...",
|
|
35
|
+
"Transaction type": "Transaction type",
|
|
36
|
+
Domestic: "Domestic",
|
|
37
|
+
"EU B2B": "EU B2B",
|
|
38
|
+
"EU B2C": "EU B2C",
|
|
39
|
+
"3W B2B": "3W B2B",
|
|
40
|
+
"3W B2C": "3W B2C",
|
|
41
|
+
"Determining transaction type...": "Determining transaction type...",
|
|
42
|
+
"This invoice will not be fiscalized (non-domestic transaction)":
|
|
43
|
+
"This invoice will not be fiscalized (non-domestic transaction)",
|
|
44
|
+
"Tax Clause": "Tax Clause",
|
|
45
|
+
"Add tax clause...": "Add tax clause...",
|
|
46
|
+
Footer: "Footer",
|
|
47
|
+
"Add document footer...": "Add document footer...",
|
|
48
|
+
"Please select": "Velg",
|
|
49
|
+
"Amount": "Beløp",
|
|
50
|
+
"Add payment": "Legg til betaling",
|
|
51
|
+
"Recorded now": "Registrert nå",
|
|
52
|
+
"Remaining due": "Gjenstående å betale",
|
|
53
|
+
"Remaining to allocate": "Gjenstår å fordele",
|
|
54
|
+
"This document must be fully paid on creation": "Dette dokumentet må være fullt betalt ved opprettelse",
|
|
55
|
+
"Record one or more payments on creation": "Registrer én eller flere betalinger ved opprettelse",
|
|
56
|
+
} as const;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
Save: "Opslaan",
|
|
3
|
+
Update: "Bijwerken",
|
|
3
4
|
"Save as Draft": "Opslaan als concept",
|
|
4
5
|
"Create Advance Invoice": "Voorschotfactuur aanmaken",
|
|
5
6
|
"e-SLOG": "e-SLOG",
|
|
@@ -15,16 +16,15 @@ export default {
|
|
|
15
16
|
"The following entity settings need to be updated:": "De volgende entiteitsinstellingen moeten worden bijgewerkt:",
|
|
16
17
|
"Reverse charge - tax exempt EU B2B sale": "Verlegde btw - btw-vrijgestelde EU B2B-verkoop",
|
|
17
18
|
"Mark as Paid": "Markeren als betaald",
|
|
18
|
-
Paid: "Betaald",
|
|
19
|
-
"Advance invoice will be marked as fully paid upon creation":
|
|
20
|
-
"De voorschotfactuur wordt bij aanmaak als volledig betaald gemarkeerd",
|
|
19
|
+
"Paid": "Betaald",
|
|
20
|
+
"Advance invoice will be marked as fully paid upon creation": "De vooruitfactuur wordt bij het aanmaken als volledig betaald gemarkeerd",
|
|
21
21
|
"Payment Type": "Betaaltype",
|
|
22
22
|
"Select payment type": "Selecteer betaaltype",
|
|
23
|
-
Cash: "Contant",
|
|
23
|
+
"Cash": "Contant",
|
|
24
24
|
"Bank Transfer": "Bankoverschrijving",
|
|
25
|
-
Card: "Kaart",
|
|
26
|
-
Check: "Cheque",
|
|
27
|
-
Other: "Overig",
|
|
25
|
+
"Card": "Kaart",
|
|
26
|
+
"Check": "Cheque",
|
|
27
|
+
"Other": "Overig",
|
|
28
28
|
Premise: "Bedrijfsruimte",
|
|
29
29
|
Device: "Apparaat",
|
|
30
30
|
"FINA fiscalized invoices always use the current date":
|
|
@@ -50,4 +50,12 @@ export default {
|
|
|
50
50
|
"Add tax clause...": "Belastingclausule toevoegen...",
|
|
51
51
|
Footer: "Voettekst",
|
|
52
52
|
"Add document footer...": "Documentvoettekst toevoegen...",
|
|
53
|
+
"Please select": "Selecteer",
|
|
54
|
+
"Amount": "Bedrag",
|
|
55
|
+
"Add payment": "Betaling toevoegen",
|
|
56
|
+
"Recorded now": "Nu geregistreerd",
|
|
57
|
+
"Remaining due": "Resterend verschuldigd",
|
|
58
|
+
"Remaining to allocate": "Nog toe te wijzen",
|
|
59
|
+
"This document must be fully paid on creation": "Dit document moet volledig betaald zijn bij het aanmaken",
|
|
60
|
+
"Record one or more payments on creation": "Registreer een of meer betalingen bij het aanmaken",
|
|
53
61
|
} as const;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
Save: "Zapisz",
|
|
3
|
+
Update: "Zaktualizuj",
|
|
3
4
|
"Save as Draft": "Zapisz jako szkic",
|
|
4
5
|
"Create Advance Invoice": "Utworz fakture zaliczkowa",
|
|
5
6
|
"e-SLOG": "e-SLOG",
|
|
@@ -14,17 +15,16 @@ export default {
|
|
|
14
15
|
"e-SLOG Validation Failed": "Walidacja e-SLOG nie powiodla sie",
|
|
15
16
|
"The following entity settings need to be updated:": "Nastepujace ustawienia podmiotu wymagaja aktualizacji:",
|
|
16
17
|
"Reverse charge - tax exempt EU B2B sale": "Odwrotne obciazenie - sprzedaz B2B UE zwolniona z podatku",
|
|
17
|
-
"Mark as Paid": "Oznacz jako
|
|
18
|
-
Paid: "
|
|
19
|
-
"Advance invoice will be marked as fully paid upon creation":
|
|
20
|
-
|
|
21
|
-
"Payment Type": "Rodzaj platnosci",
|
|
18
|
+
"Mark as Paid": "Oznacz jako opłacone",
|
|
19
|
+
"Paid": "Opłacone",
|
|
20
|
+
"Advance invoice will be marked as fully paid upon creation": "Faktura zaliczkowa zostanie oznaczona jako w pełni opłacona przy tworzeniu",
|
|
21
|
+
"Payment Type": "Rodzaj płatności",
|
|
22
22
|
"Select payment type": "Wybierz rodzaj platnosci",
|
|
23
|
-
Cash: "
|
|
23
|
+
"Cash": "Gotówka",
|
|
24
24
|
"Bank Transfer": "Przelew bankowy",
|
|
25
|
-
Card: "Karta",
|
|
26
|
-
Check: "Czek",
|
|
27
|
-
Other: "Inne",
|
|
25
|
+
"Card": "Karta",
|
|
26
|
+
"Check": "Czek",
|
|
27
|
+
"Other": "Inne",
|
|
28
28
|
Premise: "Lokal",
|
|
29
29
|
Device: "Urządzenie",
|
|
30
30
|
"FINA fiscalized invoices always use the current date": "Dokumenty fiskalizowane FINA zawsze używają bieżącej daty",
|
|
@@ -49,4 +49,12 @@ export default {
|
|
|
49
49
|
"Add tax clause...": "Dodaj klauzulę podatkową...",
|
|
50
50
|
Footer: "Stopka",
|
|
51
51
|
"Add document footer...": "Dodaj stopkę dokumentu...",
|
|
52
|
+
"Please select": "Wybierz",
|
|
53
|
+
"Amount": "Kwota",
|
|
54
|
+
"Add payment": "Dodaj płatność",
|
|
55
|
+
"Recorded now": "Zarejestrowano teraz",
|
|
56
|
+
"Remaining due": "Pozostało do zapłaty",
|
|
57
|
+
"Remaining to allocate": "Pozostało do przypisania",
|
|
58
|
+
"This document must be fully paid on creation": "Ten dokument musi być w pełni opłacony przy tworzeniu",
|
|
59
|
+
"Record one or more payments on creation": "Zarejestruj jedną lub więcej płatności przy tworzeniu",
|
|
52
60
|
} as const;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
Save: "Guardar",
|
|
3
|
+
Update: "Atualizar",
|
|
3
4
|
"Save as Draft": "Guardar como rascunho",
|
|
4
5
|
"Create Advance Invoice": "Criar fatura antecipada",
|
|
5
6
|
"e-SLOG": "e-SLOG",
|
|
@@ -16,16 +17,15 @@ export default {
|
|
|
16
17
|
"As seguintes configuracoes da entidade precisam ser atualizadas:",
|
|
17
18
|
"Reverse charge - tax exempt EU B2B sale": "Autoliquidacao - venda B2B UE isenta de imposto",
|
|
18
19
|
"Mark as Paid": "Marcar como pago",
|
|
19
|
-
Paid: "Pago",
|
|
20
|
-
"Advance invoice will be marked as fully paid upon creation":
|
|
21
|
-
"A fatura antecipada sera marcada como totalmente paga ao ser criada",
|
|
20
|
+
"Paid": "Pago",
|
|
21
|
+
"Advance invoice will be marked as fully paid upon creation": "A fatura de adiantamento será marcada como totalmente paga na criação",
|
|
22
22
|
"Payment Type": "Tipo de pagamento",
|
|
23
23
|
"Select payment type": "Selecione o tipo de pagamento",
|
|
24
|
-
Cash: "Dinheiro",
|
|
25
|
-
"Bank Transfer": "
|
|
26
|
-
Card: "
|
|
27
|
-
Check: "Cheque",
|
|
28
|
-
Other: "Outro",
|
|
24
|
+
"Cash": "Dinheiro",
|
|
25
|
+
"Bank Transfer": "Transferência bancária",
|
|
26
|
+
"Card": "Cartão",
|
|
27
|
+
"Check": "Cheque",
|
|
28
|
+
"Other": "Outro",
|
|
29
29
|
Premise: "Estabelecimento",
|
|
30
30
|
Device: "Dispositivo",
|
|
31
31
|
"FINA fiscalized invoices always use the current date": "Os documentos fiscalizados FINA usam sempre a data atual",
|
|
@@ -50,4 +50,12 @@ export default {
|
|
|
50
50
|
"Add tax clause...": "Adicionar cláusula fiscal...",
|
|
51
51
|
Footer: "Rodapé",
|
|
52
52
|
"Add document footer...": "Adicionar rodapé do documento...",
|
|
53
|
+
"Please select": "Selecione",
|
|
54
|
+
"Amount": "Montante",
|
|
55
|
+
"Add payment": "Adicionar pagamento",
|
|
56
|
+
"Recorded now": "Registado agora",
|
|
57
|
+
"Remaining due": "Valor em dívida",
|
|
58
|
+
"Remaining to allocate": "Valor por alocar",
|
|
59
|
+
"This document must be fully paid on creation": "Este documento tem de estar totalmente pago na criação",
|
|
60
|
+
"Record one or more payments on creation": "Registar um ou mais pagamentos na criação",
|
|
53
61
|
} as const;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Uložiť",
|
|
3
|
+
Update: "Aktualizovať",
|
|
4
|
+
"Save as Draft": "Save as Draft",
|
|
5
|
+
"Create Advance Invoice": "Vytvoriť zálohovú faktúru",
|
|
6
|
+
"e-SLOG": "e-SLOG",
|
|
7
|
+
"Fiscally verify": "Fiscally verify",
|
|
8
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
9
|
+
"Click to skip e-SLOG validation for this advance invoice",
|
|
10
|
+
"Click to enable e-SLOG validation": "Click to enable e-SLOG validation",
|
|
11
|
+
"Click to skip fiscalization for this advance invoice": "Click to skip fiscalization for this advance invoice",
|
|
12
|
+
"Click to enable fiscalization": "Click to enable fiscalization",
|
|
13
|
+
"Cannot skip fiscalization for cash payments": "Cannot skip fiscalization for cash payments",
|
|
14
|
+
"e-SLOG Validation Failed": "e-SLOG Validation Failed",
|
|
15
|
+
"The following entity settings need to be updated:": "The following entity settings need to be updated:",
|
|
16
|
+
"Reverse charge - tax exempt EU B2B sale": "Reverse charge - tax exempt EU B2B sale",
|
|
17
|
+
"Mark as Paid": "Označiť ako uhradené",
|
|
18
|
+
"Paid": "Uhradené",
|
|
19
|
+
"Advance invoice will be marked as fully paid upon creation": "Zálohová faktúra bude pri vytvorení označená ako plne uhradená",
|
|
20
|
+
"Payment Type": "Typ platby",
|
|
21
|
+
"Select payment type": "Vyberte typ platby",
|
|
22
|
+
"Cash": "Hotovosť",
|
|
23
|
+
"Bank Transfer": "Bankový prevod",
|
|
24
|
+
"Card": "Karta",
|
|
25
|
+
"Check": "Šek",
|
|
26
|
+
"Other": "Iné",
|
|
27
|
+
Premise: "Premise",
|
|
28
|
+
Device: "Zariadenie",
|
|
29
|
+
"FINA fiscalized invoices always use the current date": "FINA fiscalized invoices always use the current date",
|
|
30
|
+
Signature: "Podpis",
|
|
31
|
+
"Add signature text...": "Pridat text podpisu...",
|
|
32
|
+
"Add separator": "Add separator",
|
|
33
|
+
"Section header": "Section header",
|
|
34
|
+
"Section title...": "Section title...",
|
|
35
|
+
"Transaction type": "Transaction type",
|
|
36
|
+
Domestic: "Domestic",
|
|
37
|
+
"EU B2B": "EU B2B",
|
|
38
|
+
"EU B2C": "EU B2C",
|
|
39
|
+
"3W B2B": "3W B2B",
|
|
40
|
+
"3W B2C": "3W B2C",
|
|
41
|
+
"Determining transaction type...": "Determining transaction type...",
|
|
42
|
+
"This invoice will not be fiscalized (non-domestic transaction)":
|
|
43
|
+
"This invoice will not be fiscalized (non-domestic transaction)",
|
|
44
|
+
"Tax Clause": "Tax Clause",
|
|
45
|
+
"Add tax clause...": "Add tax clause...",
|
|
46
|
+
Footer: "Footer",
|
|
47
|
+
"Add document footer...": "Add document footer...",
|
|
48
|
+
"Please select": "Vyberte",
|
|
49
|
+
"Amount": "Suma",
|
|
50
|
+
"Add payment": "Pridať platbu",
|
|
51
|
+
"Recorded now": "Aktuálne zaevidované",
|
|
52
|
+
"Remaining due": "Zostáva uhradiť",
|
|
53
|
+
"Remaining to allocate": "Zostáva priradiť",
|
|
54
|
+
"This document must be fully paid on creation": "Tento dokument musí byť pri vytvorení plne uhradený",
|
|
55
|
+
"Record one or more payments on creation": "Pri vytvorení zaevidujte jednu alebo viac platieb",
|
|
56
|
+
} as const;
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
Save: "Shrani",
|
|
3
|
+
Update: "Posodobi",
|
|
3
4
|
"Save as Draft": "Shrani kot osnutek",
|
|
4
5
|
"Create Advance Invoice": "Ustvari avansni račun",
|
|
5
6
|
"e-SLOG": "e-SLOG",
|
|
6
7
|
"Fiscally verify": "Davčno potrdi",
|
|
7
|
-
"Click to skip e-SLOG validation for this advance invoice":
|
|
8
|
-
|
|
9
|
-
"Click to
|
|
10
|
-
"Click to
|
|
8
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
9
|
+
"Kliknite za preskočitev preverjanja e-SLOG za ta avansni račun",
|
|
10
|
+
"Click to enable e-SLOG validation": "Kliknite za omogočanje preverjanja e-SLOG",
|
|
11
|
+
"Click to skip fiscalization for this advance invoice":
|
|
12
|
+
"Kliknite za preskočitev davčnega potrjevanja za ta avansni račun",
|
|
13
|
+
"Click to enable fiscalization": "Kliknite za omogočanje davčnega potrjevanja",
|
|
11
14
|
"Cannot skip fiscalization for cash payments": "Za gotovinska plačila ni mogoče preskočiti davčnega potrjevanja",
|
|
12
15
|
"e-SLOG Validation Failed": "e-SLOG validacija ni uspela",
|
|
13
16
|
"The following entity settings need to be updated:": "Naslednje nastavitve entitete je treba posodobiti:",
|
|
14
17
|
"Reverse charge - tax exempt EU B2B sale": "Obrnjeno davčno breme - davčno oproščena EU B2B prodaja",
|
|
15
18
|
"Mark as Paid": "Označi kot plačano",
|
|
16
|
-
Paid: "Plačano",
|
|
19
|
+
"Paid": "Plačano",
|
|
17
20
|
"Advance invoice will be marked as fully paid upon creation": "Avansni račun bo označen kot plačan ob ustvarjanju",
|
|
18
21
|
"Payment Type": "Vrsta plačila",
|
|
19
|
-
"Select payment type": "
|
|
20
|
-
Cash: "Gotovina",
|
|
22
|
+
"Select payment type": "Izberi vrsto plačila",
|
|
23
|
+
"Cash": "Gotovina",
|
|
21
24
|
"Bank Transfer": "Bančno nakazilo",
|
|
22
|
-
Card: "Kartica",
|
|
23
|
-
Check: "Ček",
|
|
24
|
-
Other: "Drugo",
|
|
25
|
+
"Card": "Kartica",
|
|
26
|
+
"Check": "Ček",
|
|
27
|
+
"Other": "Drugo",
|
|
25
28
|
Premise: "Poslovni prostor",
|
|
26
29
|
Device: "Naprava",
|
|
27
30
|
"FINA fiscalized invoices always use the current date": "FINA fiskalizirani dokumenti vedno uporabijo trenutni datum",
|
|
@@ -43,7 +46,15 @@ export default {
|
|
|
43
46
|
"This invoice will not be fiscalized (non-domestic transaction)":
|
|
44
47
|
"Ta račun ne bo fiskaliziran (nedomača transakcija)",
|
|
45
48
|
"Tax Clause": "Davčna klavzula",
|
|
46
|
-
"Add tax clause...": "
|
|
49
|
+
"Add tax clause...": "Dodaj davčno klavzulo...",
|
|
47
50
|
Footer: "Noga dokumenta",
|
|
48
|
-
"Add document footer...": "
|
|
51
|
+
"Add document footer...": "Dodaj nogo dokumenta...",
|
|
52
|
+
"Please select": "Izberi",
|
|
53
|
+
"Amount": "Znesek",
|
|
54
|
+
"Add payment": "Dodaj plačilo",
|
|
55
|
+
"Recorded now": "Trenutno zabeleženo",
|
|
56
|
+
"Remaining due": "Preostanek za plačilo",
|
|
57
|
+
"Remaining to allocate": "Preostanek za razporeditev",
|
|
58
|
+
"This document must be fully paid on creation": "Ta dokument mora biti ob ustvarjanju v celoti plačan",
|
|
59
|
+
"Record one or more payments on creation": "Ob ustvarjanju zabeleži eno ali več plačil",
|
|
49
60
|
} as const;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Spara",
|
|
3
|
+
Update: "Uppdatera",
|
|
4
|
+
"Save as Draft": "Save as Draft",
|
|
5
|
+
"Create Advance Invoice": "Skapa förskottsfaktura",
|
|
6
|
+
"e-SLOG": "e-SLOG",
|
|
7
|
+
"Fiscally verify": "Fiscally verify",
|
|
8
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
9
|
+
"Click to skip e-SLOG validation for this advance invoice",
|
|
10
|
+
"Click to enable e-SLOG validation": "Click to enable e-SLOG validation",
|
|
11
|
+
"Click to skip fiscalization for this advance invoice": "Click to skip fiscalization for this advance invoice",
|
|
12
|
+
"Click to enable fiscalization": "Click to enable fiscalization",
|
|
13
|
+
"Cannot skip fiscalization for cash payments": "Cannot skip fiscalization for cash payments",
|
|
14
|
+
"e-SLOG Validation Failed": "e-SLOG Validation Failed",
|
|
15
|
+
"The following entity settings need to be updated:": "The following entity settings need to be updated:",
|
|
16
|
+
"Reverse charge - tax exempt EU B2B sale": "Reverse charge - tax exempt EU B2B sale",
|
|
17
|
+
"Mark as Paid": "Markera som betald",
|
|
18
|
+
"Paid": "Betald",
|
|
19
|
+
"Advance invoice will be marked as fully paid upon creation": "Förskottsfakturan markeras som fullt betald vid skapande",
|
|
20
|
+
"Payment Type": "Betalningstyp",
|
|
21
|
+
"Select payment type": "Välj betalningstyp",
|
|
22
|
+
"Cash": "Kontant",
|
|
23
|
+
"Bank Transfer": "Banköverföring",
|
|
24
|
+
"Card": "Kort",
|
|
25
|
+
"Check": "Check",
|
|
26
|
+
"Other": "Övrigt",
|
|
27
|
+
Premise: "Premise",
|
|
28
|
+
Device: "Enhet",
|
|
29
|
+
"FINA fiscalized invoices always use the current date": "FINA fiscalized invoices always use the current date",
|
|
30
|
+
Signature: "Signatur",
|
|
31
|
+
"Add signature text...": "Lägg till signaturtext...",
|
|
32
|
+
"Add separator": "Add separator",
|
|
33
|
+
"Section header": "Section header",
|
|
34
|
+
"Section title...": "Section title...",
|
|
35
|
+
"Transaction type": "Transaction type",
|
|
36
|
+
Domestic: "Domestic",
|
|
37
|
+
"EU B2B": "EU B2B",
|
|
38
|
+
"EU B2C": "EU B2C",
|
|
39
|
+
"3W B2B": "3W B2B",
|
|
40
|
+
"3W B2C": "3W B2C",
|
|
41
|
+
"Determining transaction type...": "Determining transaction type...",
|
|
42
|
+
"This invoice will not be fiscalized (non-domestic transaction)":
|
|
43
|
+
"This invoice will not be fiscalized (non-domestic transaction)",
|
|
44
|
+
"Tax Clause": "Tax Clause",
|
|
45
|
+
"Add tax clause...": "Add tax clause...",
|
|
46
|
+
Footer: "Footer",
|
|
47
|
+
"Add document footer...": "Add document footer...",
|
|
48
|
+
"Please select": "Välj",
|
|
49
|
+
"Amount": "Belopp",
|
|
50
|
+
"Add payment": "Lägg till betalning",
|
|
51
|
+
"Recorded now": "Registrerat nu",
|
|
52
|
+
"Remaining due": "Återstående att betala",
|
|
53
|
+
"Remaining to allocate": "Återstår att fördela",
|
|
54
|
+
"This document must be fully paid on creation": "Det här dokumentet måste vara fullt betalt vid skapande",
|
|
55
|
+
"Record one or more payments on creation": "Registrera en eller flera betalningar vid skapande",
|
|
56
|
+
} as const;
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import type { CreateAdvanceInvoiceRequest } from "@spaceinvoices/js-sdk";
|
|
2
2
|
import type { CreateAdvanceInvoiceSchema } from "@/ui/generated/schemas";
|
|
3
|
-
import {
|
|
3
|
+
import { normalizePtDocumentInput, type PtDocumentInputForm } from "@/ui/lib/pt-document-input";
|
|
4
|
+
import {
|
|
5
|
+
buildDocumentBasePayload,
|
|
6
|
+
cleanupEmptyCustomerId,
|
|
7
|
+
prepareDocumentCustomerData,
|
|
8
|
+
prepareDocumentItems,
|
|
9
|
+
prepareDocumentSubmission,
|
|
10
|
+
} from "../../documents/create/prepare-document-submission";
|
|
4
11
|
|
|
5
12
|
type FursData = {
|
|
6
13
|
business_premise_name?: string;
|
|
7
14
|
electronic_device_name?: string;
|
|
8
15
|
skip?: boolean;
|
|
16
|
+
operator_tax_number?: string;
|
|
17
|
+
operator_label?: string;
|
|
9
18
|
};
|
|
10
19
|
|
|
11
20
|
type FinaData = {
|
|
12
21
|
business_premise_name?: string;
|
|
13
22
|
electronic_device_name?: string;
|
|
14
23
|
payment_type?: string;
|
|
24
|
+
operator_oib?: string;
|
|
25
|
+
operator_label?: string;
|
|
15
26
|
};
|
|
16
27
|
|
|
17
28
|
type EslogData = {
|
|
@@ -26,6 +37,7 @@ type PrepareOptions = {
|
|
|
26
37
|
wasCustomerFormShown?: boolean;
|
|
27
38
|
markAsPaid?: boolean;
|
|
28
39
|
paymentTypes?: string[];
|
|
40
|
+
payments?: Array<{ type: string; amount?: number }>;
|
|
29
41
|
/** FURS fiscalization data (for Slovenia) */
|
|
30
42
|
furs?: FursData;
|
|
31
43
|
/** FINA fiscalization data (for Croatia) */
|
|
@@ -43,7 +55,7 @@ type PrepareOptions = {
|
|
|
43
55
|
* Handles customer data transformation, payment data, and FURS fiscalization
|
|
44
56
|
*/
|
|
45
57
|
export function prepareAdvanceInvoiceSubmission(
|
|
46
|
-
values: CreateAdvanceInvoiceSchema,
|
|
58
|
+
values: CreateAdvanceInvoiceSchema & { pt?: PtDocumentInputForm | null },
|
|
47
59
|
options: PrepareOptions,
|
|
48
60
|
): CreateAdvanceInvoiceRequest {
|
|
49
61
|
const payload = prepareDocumentSubmission(values as any, {
|
|
@@ -51,6 +63,7 @@ export function prepareAdvanceInvoiceSubmission(
|
|
|
51
63
|
wasCustomerFormShown: options.wasCustomerFormShown,
|
|
52
64
|
markAsPaid: options.markAsPaid,
|
|
53
65
|
paymentTypes: options.paymentTypes,
|
|
66
|
+
payments: options.payments,
|
|
54
67
|
documentType: "advance_invoice",
|
|
55
68
|
priceModes: options.priceModes,
|
|
56
69
|
isDraft: options.isDraft,
|
|
@@ -66,6 +79,8 @@ export function prepareAdvanceInvoiceSubmission(
|
|
|
66
79
|
(payload as any).furs = {
|
|
67
80
|
business_premise_name: options.furs.business_premise_name,
|
|
68
81
|
electronic_device_name: options.furs.electronic_device_name,
|
|
82
|
+
...(options.furs.operator_tax_number ? { operator_tax_number: options.furs.operator_tax_number } : {}),
|
|
83
|
+
...(options.furs.operator_label ? { operator_label: options.furs.operator_label } : {}),
|
|
69
84
|
};
|
|
70
85
|
}
|
|
71
86
|
}
|
|
@@ -76,6 +91,8 @@ export function prepareAdvanceInvoiceSubmission(
|
|
|
76
91
|
business_premise_name: options.fina.business_premise_name,
|
|
77
92
|
electronic_device_name: options.fina.electronic_device_name,
|
|
78
93
|
...(options.fina.payment_type && { payment_type: options.fina.payment_type }),
|
|
94
|
+
...(options.fina.operator_oib ? { operator_oib: options.fina.operator_oib } : {}),
|
|
95
|
+
...(options.fina.operator_label ? { operator_label: options.fina.operator_label } : {}),
|
|
79
96
|
};
|
|
80
97
|
}
|
|
81
98
|
|
|
@@ -85,6 +102,49 @@ export function prepareAdvanceInvoiceSubmission(
|
|
|
85
102
|
validation_enabled: options.eslog.validation_enabled,
|
|
86
103
|
};
|
|
87
104
|
}
|
|
105
|
+
const pt = normalizePtDocumentInput(values.pt);
|
|
106
|
+
if (pt) {
|
|
107
|
+
(payload as any).pt = pt;
|
|
108
|
+
}
|
|
109
|
+
return payload;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function prepareAdvanceInvoiceUpdateSubmission(
|
|
113
|
+
values: CreateAdvanceInvoiceSchema & { pt?: PtDocumentInputForm | null },
|
|
114
|
+
options: Pick<PrepareOptions, "originalCustomer" | "wasCustomerFormShown" | "priceModes" | "eslog">,
|
|
115
|
+
): Record<string, unknown> {
|
|
116
|
+
const nextValues: any = {
|
|
117
|
+
...values,
|
|
118
|
+
customer: values.customer ? { ...values.customer } : values.customer,
|
|
119
|
+
items: values.items
|
|
120
|
+
? values.items.map((item: any) => ({ ...item, taxes: item?.taxes ? [...item.taxes] : item?.taxes }))
|
|
121
|
+
: values.items,
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
prepareDocumentCustomerData(nextValues, options);
|
|
125
|
+
cleanupEmptyCustomerId(nextValues);
|
|
126
|
+
nextValues.items = prepareDocumentItems(nextValues.items, options.priceModes ?? {});
|
|
127
|
+
|
|
128
|
+
const payload = buildDocumentBasePayload(nextValues, {
|
|
129
|
+
documentType: "advance_invoice",
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
if (Array.isArray(nextValues.linked_documents)) {
|
|
133
|
+
payload.linked_documents = nextValues.linked_documents;
|
|
134
|
+
} else if (nextValues.linked_documents === null) {
|
|
135
|
+
payload.linked_documents = [];
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (options.eslog !== undefined) {
|
|
139
|
+
payload.eslog = {
|
|
140
|
+
validation_enabled: options.eslog.validation_enabled,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const pt = normalizePtDocumentInput(values.pt);
|
|
145
|
+
if (pt) {
|
|
146
|
+
payload.pt = pt;
|
|
147
|
+
}
|
|
88
148
|
|
|
89
149
|
return payload;
|
|
90
150
|
}
|
|
@@ -11,11 +11,18 @@ import {
|
|
|
11
11
|
DropdownMenuSeparator,
|
|
12
12
|
DropdownMenuTrigger,
|
|
13
13
|
} from "@/ui/components/ui/dropdown-menu";
|
|
14
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "@/ui/components/ui/tooltip";
|
|
14
|
+
import { actionMenuTooltipProps, Tooltip, TooltipContent, TooltipTrigger } from "@/ui/components/ui/tooltip";
|
|
15
15
|
import type { ComponentTranslationProps } from "@/ui/lib/translation";
|
|
16
16
|
import { createTranslation } from "@/ui/lib/translation";
|
|
17
17
|
import { useAdvanceInvoiceDownload } from "./use-advance-invoice-download";
|
|
18
18
|
|
|
19
|
+
const translations = {
|
|
20
|
+
sl: {
|
|
21
|
+
"Create invoice": "Ustvari račun",
|
|
22
|
+
"This document is already voided.": "Ta dokument je že storniran.",
|
|
23
|
+
},
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
19
26
|
type AdvanceInvoiceListRowActionsProps = {
|
|
20
27
|
advanceInvoice: AdvanceInvoice;
|
|
21
28
|
onView?: (advanceInvoice: AdvanceInvoice) => void;
|
|
@@ -44,13 +51,27 @@ export default function AdvanceInvoiceListRowActions({
|
|
|
44
51
|
isVoiding,
|
|
45
52
|
...i18nProps
|
|
46
53
|
}: AdvanceInvoiceListRowActionsProps) {
|
|
47
|
-
const t = createTranslation(i18nProps);
|
|
54
|
+
const t = createTranslation({ ...i18nProps, translations });
|
|
48
55
|
const { isDownloading, downloadPDF } = useAdvanceInvoiceDownload({
|
|
49
56
|
onDownloadStart,
|
|
50
57
|
onDownloadSuccess,
|
|
51
58
|
onDownloadError,
|
|
52
59
|
...i18nProps,
|
|
53
60
|
});
|
|
61
|
+
const createInvoiceDisabledReason = (advanceInvoice as any).voided_at
|
|
62
|
+
? t("documents-list-page.copy-to-invoice-voided-not-allowed")
|
|
63
|
+
: undefined;
|
|
64
|
+
const voidDisabledReason = (advanceInvoice as any).voided_at ? t("This document is already voided.") : undefined;
|
|
65
|
+
const createInvoiceItem = onDuplicate ? (
|
|
66
|
+
<DropdownMenuItem
|
|
67
|
+
className="cursor-pointer"
|
|
68
|
+
onClick={createInvoiceDisabledReason ? undefined : () => onDuplicate(advanceInvoice)}
|
|
69
|
+
disabled={!!createInvoiceDisabledReason}
|
|
70
|
+
>
|
|
71
|
+
<Copy className="h-4 w-4" />
|
|
72
|
+
{t("Create invoice")}
|
|
73
|
+
</DropdownMenuItem>
|
|
74
|
+
) : null;
|
|
54
75
|
|
|
55
76
|
return (
|
|
56
77
|
<DropdownMenu>
|
|
@@ -82,14 +103,21 @@ export default function AdvanceInvoiceListRowActions({
|
|
|
82
103
|
<Download className="h-4 w-4" />
|
|
83
104
|
{isDownloading ? t("Downloading...") : t("Download PDF")}
|
|
84
105
|
</DropdownMenuItem>
|
|
85
|
-
{
|
|
86
|
-
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
106
|
+
{createInvoiceItem &&
|
|
107
|
+
(createInvoiceDisabledReason ? (
|
|
108
|
+
<Tooltip>
|
|
109
|
+
<TooltipTrigger asChild>
|
|
110
|
+
<div>{createInvoiceItem}</div>
|
|
111
|
+
</TooltipTrigger>
|
|
112
|
+
<TooltipContent side="left" {...actionMenuTooltipProps}>
|
|
113
|
+
{createInvoiceDisabledReason}
|
|
114
|
+
</TooltipContent>
|
|
115
|
+
</Tooltip>
|
|
116
|
+
) : (
|
|
117
|
+
createInvoiceItem
|
|
118
|
+
))}
|
|
91
119
|
</DropdownMenuGroup>
|
|
92
|
-
{!advanceInvoice.paid_in_full && (
|
|
120
|
+
{!advanceInvoice.paid_in_full && onAddPayment && (
|
|
93
121
|
<>
|
|
94
122
|
<DropdownMenuSeparator />
|
|
95
123
|
<DropdownMenuGroup>
|
|
@@ -116,13 +144,17 @@ export default function AdvanceInvoiceListRowActions({
|
|
|
116
144
|
</>
|
|
117
145
|
)}
|
|
118
146
|
{onVoid &&
|
|
119
|
-
!(advanceInvoice as any).voided_at &&
|
|
120
147
|
!(advanceInvoice as any).is_draft &&
|
|
121
148
|
(() => {
|
|
122
|
-
const
|
|
123
|
-
(rel: any) =>
|
|
149
|
+
const isLinkedToLiveInvoice = (advanceInvoice as any).document_relations?.some(
|
|
150
|
+
(rel: any) =>
|
|
151
|
+
(rel.relation_type === "advance_applied" || rel.relation_type === "applied_to") &&
|
|
152
|
+
!rel.linked_document_voided_at,
|
|
124
153
|
);
|
|
125
|
-
const
|
|
154
|
+
const disabledReason =
|
|
155
|
+
voidDisabledReason ||
|
|
156
|
+
(isLinkedToLiveInvoice ? t("Cannot void an advance invoice linked to an invoice") : undefined);
|
|
157
|
+
const voidDisabled = isVoiding || !!disabledReason;
|
|
126
158
|
const voidItem = (
|
|
127
159
|
<DropdownMenuItem
|
|
128
160
|
className={
|
|
@@ -141,13 +173,13 @@ export default function AdvanceInvoiceListRowActions({
|
|
|
141
173
|
<>
|
|
142
174
|
<DropdownMenuSeparator />
|
|
143
175
|
<DropdownMenuGroup>
|
|
144
|
-
{
|
|
176
|
+
{disabledReason ? (
|
|
145
177
|
<Tooltip>
|
|
146
178
|
<TooltipTrigger asChild>
|
|
147
179
|
<div>{voidItem}</div>
|
|
148
180
|
</TooltipTrigger>
|
|
149
|
-
<TooltipContent side="left">
|
|
150
|
-
{
|
|
181
|
+
<TooltipContent side="left" {...actionMenuTooltipProps}>
|
|
182
|
+
{disabledReason}
|
|
151
183
|
</TooltipContent>
|
|
152
184
|
</Tooltip>
|
|
153
185
|
) : (
|