@spaceinvoices/react-ui 0.4.10 → 0.4.12
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/README.md +24 -8
- package/cli/dist/index.js +89 -26
- package/package.json +6 -2
- package/registry.json +30 -31
- package/spaceinvoices.schema.json +6 -1
- package/src/common/autocomplete.tsx +41 -25
- 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 +2 -3
- package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +290 -69
- package/src/components/advance-invoices/create/locales/bg.ts +48 -0
- package/src/components/advance-invoices/create/locales/cs.ts +48 -0
- package/src/components/advance-invoices/create/locales/en.ts +48 -0
- package/src/components/advance-invoices/create/locales/et.ts +48 -0
- package/src/components/advance-invoices/create/locales/fi.ts +48 -0
- package/src/components/advance-invoices/create/locales/hr.ts +17 -17
- package/src/components/advance-invoices/create/locales/is.ts +48 -0
- package/src/components/advance-invoices/create/locales/nb.ts +48 -0
- package/src/components/advance-invoices/create/locales/sk.ts +48 -0
- package/src/components/advance-invoices/create/locales/sl.ts +9 -7
- package/src/components/advance-invoices/create/locales/sv.ts +48 -0
- package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +16 -2
- package/src/components/advance-invoices/list/list-row-actions.tsx +48 -16
- package/src/components/advance-invoices/list/list-table.tsx +33 -8
- 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 +211 -22
- package/src/components/credit-notes/create/locales/bg.ts +87 -0
- package/src/components/credit-notes/create/locales/cs.ts +87 -0
- package/src/components/credit-notes/create/locales/en.ts +87 -0
- package/src/components/credit-notes/create/locales/et.ts +87 -0
- package/src/components/credit-notes/create/locales/fi.ts +87 -0
- package/src/components/credit-notes/create/locales/hr.ts +24 -24
- package/src/components/credit-notes/create/locales/is.ts +87 -0
- package/src/components/credit-notes/create/locales/nb.ts +87 -0
- package/src/components/credit-notes/create/locales/sk.ts +87 -0
- package/src/components/credit-notes/create/locales/sl.ts +9 -9
- package/src/components/credit-notes/create/locales/sv.ts +87 -0
- package/src/components/credit-notes/create/prepare-credit-note-submission.ts +32 -0
- package/src/components/credit-notes/credit-notes.hooks.ts +15 -3
- package/src/components/credit-notes/list/list-row-actions.tsx +19 -7
- package/src/components/credit-notes/list/list-table.tsx +58 -7
- 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 +61 -31
- package/src/components/delivery-notes/create/locales/bg.ts +68 -0
- package/src/components/delivery-notes/create/locales/cs.ts +68 -0
- package/src/components/delivery-notes/create/locales/en.ts +68 -0
- package/src/components/delivery-notes/create/locales/et.ts +68 -0
- package/src/components/delivery-notes/create/locales/fi.ts +68 -0
- package/src/components/delivery-notes/create/locales/hr.ts +6 -6
- package/src/components/delivery-notes/create/locales/is.ts +68 -0
- package/src/components/delivery-notes/create/locales/nb.ts +68 -0
- package/src/components/delivery-notes/create/locales/sk.ts +68 -0
- package/src/components/delivery-notes/create/locales/sl.ts +5 -5
- package/src/components/delivery-notes/create/locales/sv.ts +68 -0
- package/src/components/delivery-notes/delivery-notes.hooks.ts +20 -3
- package/src/components/delivery-notes/list/list-row-actions.tsx +62 -16
- package/src/components/delivery-notes/list/list-table.tsx +42 -9
- 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/document-add-item-form.tsx +256 -147
- package/src/components/documents/create/document-add-item-tax-rate-field.tsx +2 -1
- package/src/components/documents/create/document-details-section.tsx +30 -12
- package/src/components/documents/create/document-item-validation.ts +50 -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/linked-documents-info.tsx +4 -3
- package/src/components/documents/create/live-preview.tsx +19 -15
- package/src/components/documents/create/mark-as-paid-section.tsx +77 -20
- package/src/components/documents/create/payment-rows.ts +291 -0
- package/src/components/documents/create/prepare-document-submission.ts +24 -13
- 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 +343 -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 +241 -62
- package/src/components/documents/view/document-activities-list.tsx +23 -11
- package/src/components/documents/view/document-details-card.tsx +7 -27
- 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 +13 -0
- 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 +13 -0
- 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 +131 -75
- package/src/components/entities/entity-settings-form/input-with-preview.tsx +28 -4
- package/src/components/entities/entity-settings-form/locales/bg.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/cs.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/de.ts +18 -3
- package/src/components/entities/entity-settings-form/locales/en.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/es.ts +18 -3
- package/src/components/entities/entity-settings-form/locales/et.ts +198 -0
- package/src/components/entities/entity-settings-form/locales/fi.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/fr.ts +18 -3
- package/src/components/entities/entity-settings-form/locales/hr.ts +26 -11
- package/src/components/entities/entity-settings-form/locales/is.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/it.ts +18 -3
- package/src/components/entities/entity-settings-form/locales/nb.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/nl.ts +18 -3
- package/src/components/entities/entity-settings-form/locales/pl.ts +18 -3
- package/src/components/entities/entity-settings-form/locales/pt.ts +18 -3
- package/src/components/entities/entity-settings-form/locales/sk.ts +199 -0
- package/src/components/entities/entity-settings-form/locales/sl.ts +30 -15
- package/src/components/entities/entity-settings-form/locales/sv.ts +205 -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 +112 -9
- 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 +21 -6
- package/src/components/estimates/create/create-estimate-form.tsx +70 -34
- package/src/components/estimates/create/locales/bg.ts +76 -0
- package/src/components/estimates/create/locales/cs.ts +76 -0
- package/src/components/estimates/create/locales/en.ts +76 -0
- package/src/components/estimates/create/locales/et.ts +76 -0
- package/src/components/estimates/create/locales/fi.ts +76 -0
- package/src/components/estimates/create/locales/hr.ts +8 -8
- package/src/components/estimates/create/locales/is.ts +76 -0
- package/src/components/estimates/create/locales/nb.ts +76 -0
- package/src/components/estimates/create/locales/sk.ts +76 -0
- package/src/components/estimates/create/locales/sl.ts +8 -8
- package/src/components/estimates/create/locales/sv.ts +76 -0
- package/src/components/estimates/create/prepare-estimate-submission.ts +4 -1
- package/src/components/estimates/estimates.hooks.ts +15 -3
- package/src/components/estimates/list/list-row-actions.tsx +34 -7
- package/src/components/estimates/list/list-table.tsx +78 -10
- package/src/components/estimates/list/locales/bg.ts +38 -0
- package/src/components/estimates/list/locales/cs.ts +38 -0
- package/src/components/estimates/list/locales/en.ts +27 -2
- package/src/components/estimates/list/locales/et.ts +38 -0
- package/src/components/estimates/list/locales/fi.ts +38 -0
- package/src/components/estimates/list/locales/hr.ts +2 -2
- package/src/components/estimates/list/locales/is.ts +38 -0
- package/src/components/estimates/list/locales/nb.ts +38 -0
- package/src/components/estimates/list/locales/sk.ts +38 -0
- package/src/components/estimates/list/locales/sv.ts +38 -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 +294 -76
- package/src/components/invoices/create/eslog-validation.ts +97 -8
- package/src/components/invoices/create/locales/bg.ts +164 -0
- package/src/components/invoices/create/locales/cs.ts +164 -0
- package/src/components/invoices/create/locales/de.ts +24 -0
- package/src/components/invoices/create/locales/en.ts +164 -0
- package/src/components/invoices/create/locales/es.ts +24 -0
- package/src/components/invoices/create/locales/et.ts +164 -0
- package/src/components/invoices/create/locales/fi.ts +164 -0
- package/src/components/invoices/create/locales/fr.ts +23 -0
- package/src/components/invoices/create/locales/hr.ts +32 -9
- package/src/components/invoices/create/locales/is.ts +164 -0
- package/src/components/invoices/create/locales/it.ts +24 -0
- package/src/components/invoices/create/locales/nb.ts +164 -0
- package/src/components/invoices/create/locales/nl.ts +23 -0
- package/src/components/invoices/create/locales/pl.ts +23 -0
- package/src/components/invoices/create/locales/pt.ts +24 -0
- package/src/components/invoices/create/locales/sk.ts +164 -0
- package/src/components/invoices/create/locales/sl.ts +32 -9
- package/src/components/invoices/create/locales/sv.ts +166 -0
- package/src/components/invoices/create/prepare-invoice-submission.ts +19 -2
- package/src/components/invoices/invoices-furs.hooks.ts +11 -8
- package/src/components/invoices/invoices.hooks.ts +27 -10
- package/src/components/invoices/list/list-row-actions.tsx +54 -21
- package/src/components/invoices/list/list-table.tsx +92 -11
- 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 +58 -0
- package/src/components/invoices/send-email-dialog/locales/cs.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/de.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/en.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/es.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/et.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/fi.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/fr.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/hr.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/is.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/it.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/nb.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/nl.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/pl.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/pt.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/sk.ts +58 -0
- package/src/components/invoices/send-email-dialog/locales/sl.ts +39 -0
- package/src/components/invoices/send-email-dialog/locales/sv.ts +58 -0
- package/src/components/invoices/send-email-dialog/send-email-dialog.tsx +188 -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 +51 -18
- 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 +11 -7
- package/src/components/payments/create-payment-form/index.ts +1 -0
- 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 +5 -1
- 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 +23 -17
- 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 +3 -5
- package/src/components/recurring-invoices/list/list-table.tsx +10 -7
- package/src/components/recurring-invoices/list/locales/bg.ts +28 -0
- package/src/components/recurring-invoices/list/locales/cs.ts +28 -0
- package/src/components/recurring-invoices/list/locales/en.ts +23 -0
- package/src/components/recurring-invoices/list/locales/et.ts +28 -0
- package/src/components/recurring-invoices/list/locales/fi.ts +28 -0
- package/src/components/recurring-invoices/list/locales/is.ts +28 -0
- package/src/components/recurring-invoices/list/locales/nb.ts +28 -0
- package/src/components/recurring-invoices/list/locales/sk.ts +28 -0
- package/src/components/recurring-invoices/list/locales/sv.ts +28 -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 +21 -10
- package/src/components/tax-reports/slovenia-vod-export-form.tsx +452 -0
- package/src/components/tax-reports/slovenia-yearly-export-form.tsx +17 -16
- package/src/components/tax-reports/slovenia-yearly-review-step.tsx +40 -18
- 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 -2
- package/src/components/ui/progress.tsx +6 -4
- package/src/components/ui/select.tsx +118 -1
- package/src/components/ui/sidebar.tsx +3 -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 +17 -7
- package/src/generated/schemas/account_webhook.ts +43 -0
- package/src/generated/schemas/accountwebhook.ts +67 -0
- package/src/generated/schemas/entity.ts +343 -4
- package/src/generated/schemas/exportsloveniavodxml_body.ts +16 -0
- package/src/generated/schemas/exportsloveniayearlynormiranireport_body.ts +27 -0
- package/src/generated/schemas/furssettings.ts +1 -0
- package/src/generated/schemas/incomingpurchasedocument.ts +198 -0
- package/src/generated/schemas/incomingpurchasedocumentpayment.ts +38 -0
- package/src/generated/schemas/index.ts +12 -0
- package/src/generated/schemas/item.ts +36 -0
- package/src/generated/schemas/me.ts +23 -19
- package/src/generated/schemas/order.ts +2 -0
- package/src/generated/schemas/orderintegration.ts +8 -4
- package/src/generated/schemas/payment.ts +5 -0
- package/src/generated/schemas/ptatcudseries.ts +30 -0
- package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +35 -3
- package/src/generated/schemas/rendercreditnotepreview_body.ts +35 -3
- package/src/generated/schemas/renderdeliverynotepreview_body.ts +12 -5
- package/src/generated/schemas/renderestimatepreview_body.ts +38 -5
- package/src/generated/schemas/renderinvoicepreview_body.ts +39 -5
- package/src/generated/schemas/senddocument_body.ts +1 -0
- package/src/generated/schemas/sendemail_body.ts +67 -39
- package/src/generated/schemas/sloveniataxprofile.ts +118 -0
- package/src/generated/schemas/starteslogexport_body.ts +33 -0
- package/src/generated/schemas/startpdfexport_body.ts +94 -78
- package/src/generated/schemas/supplier.ts +59 -0
- package/src/generated/schemas/syncshopifyorders_body.ts +20 -0
- package/src/generated/schemas/tax.ts +2 -0
- package/src/generated/schemas/uploadfile_body.ts +1 -0
- package/src/generated/schemas/userptsettings.ts +26 -0
- package/src/generated/schemas/voidinvoice_body.ts +20 -0
- package/src/generated/schemas/webhook.ts +2 -0
- package/src/hooks/create-resource-hooks.ts +22 -19
- package/src/hooks/use-duplicate-document.ts +10 -8
- 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/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 +95 -0
- package/src/lib/pt-document-input.ts +67 -0
- package/src/lib/schemas/shared.ts +1 -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 +144 -10
|
@@ -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
|
) : (
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AdvanceInvoice } from "@spaceinvoices/js-sdk";
|
|
2
|
+
import { advanceInvoices } from "@spaceinvoices/js-sdk";
|
|
2
3
|
import { AlertTriangle } from "lucide-react";
|
|
3
4
|
import { useCallback, useMemo, useState } from "react";
|
|
4
5
|
import { DataTable } from "@/ui/components/table/data-table";
|
|
@@ -18,7 +19,6 @@ import { Button } from "@/ui/components/ui/button";
|
|
|
18
19
|
import { Tooltip, TooltipContent, TooltipTrigger } from "@/ui/components/ui/tooltip";
|
|
19
20
|
import { getFiscalizationFailureType } from "@/ui/lib/fiscalization";
|
|
20
21
|
import { createTranslation } from "@/ui/lib/translation";
|
|
21
|
-
import { useSDK } from "@/ui/providers/sdk-provider";
|
|
22
22
|
|
|
23
23
|
import AdvanceInvoiceListRowActions from "./list-row-actions";
|
|
24
24
|
import de from "./locales/de";
|
|
@@ -58,6 +58,8 @@ type AdvanceInvoiceListTableProps = {
|
|
|
58
58
|
onDownloadSuccess?: (fileName: string) => void;
|
|
59
59
|
onDownloadError?: (error: string) => void;
|
|
60
60
|
onExportSelected?: (documentIds: string[]) => void;
|
|
61
|
+
pdfExportDisabled?: boolean;
|
|
62
|
+
pdfExportDisabledTooltip?: string;
|
|
61
63
|
onCopyToInvoice?: (documentIds: string[]) => void;
|
|
62
64
|
onRetryFiscalization?: (documentIds: string[]) => void;
|
|
63
65
|
fiscalizationFeatures?: ("furs" | "fina")[];
|
|
@@ -78,6 +80,8 @@ export default function AdvanceInvoiceListTable({
|
|
|
78
80
|
onDownloadSuccess,
|
|
79
81
|
onDownloadError,
|
|
80
82
|
onExportSelected,
|
|
83
|
+
pdfExportDisabled,
|
|
84
|
+
pdfExportDisabledTooltip,
|
|
81
85
|
onCopyToInvoice,
|
|
82
86
|
onRetryFiscalization,
|
|
83
87
|
fiscalizationFeatures,
|
|
@@ -87,23 +91,21 @@ export default function AdvanceInvoiceListTable({
|
|
|
87
91
|
...i18nProps
|
|
88
92
|
}: AdvanceInvoiceListTableProps) {
|
|
89
93
|
const t = createTranslation({
|
|
90
|
-
translations,
|
|
91
|
-
locale: i18nProps.translationLocale ?? i18nProps.locale,
|
|
92
94
|
...i18nProps,
|
|
95
|
+
translations,
|
|
93
96
|
});
|
|
94
97
|
|
|
95
|
-
const { sdk } = useSDK();
|
|
96
98
|
const [selectedIds, setSelectedIds] = useState<Set<string>>(new Set());
|
|
97
99
|
|
|
98
100
|
const handleFetch = useTableFetch(async (params: TableQueryParams) => {
|
|
99
|
-
if (!sdk) throw new Error("SDK not initialized");
|
|
100
101
|
if (!params.entity_id) throw new Error("Entity ID required");
|
|
101
102
|
|
|
102
|
-
const response = await
|
|
103
|
+
const response = await advanceInvoices.list({
|
|
103
104
|
entity_id: params.entity_id,
|
|
104
105
|
limit: params.limit,
|
|
105
106
|
next_cursor: params.next_cursor,
|
|
106
107
|
prev_cursor: params.prev_cursor,
|
|
108
|
+
order_by: params.order_by,
|
|
107
109
|
search: params.search,
|
|
108
110
|
query: params.query,
|
|
109
111
|
include: "document_relations",
|
|
@@ -153,14 +155,23 @@ export default function AdvanceInvoiceListTable({
|
|
|
153
155
|
const showRetry = hasRetry && failedCount > 0;
|
|
154
156
|
|
|
155
157
|
const hasDrafts = selectedDocs.some((d) => (d as any).is_draft);
|
|
158
|
+
const hasVoided = selectedDocs.some((d) => !!(d as any).voided_at);
|
|
159
|
+
const copyDisabled = hasDrafts || hasVoided;
|
|
160
|
+
const copyTooltip = hasDrafts
|
|
161
|
+
? t("Finalize draft documents before copying to invoice")
|
|
162
|
+
: hasVoided
|
|
163
|
+
? t("Voided documents cannot be copied to invoices")
|
|
164
|
+
: undefined;
|
|
156
165
|
|
|
157
166
|
return (
|
|
158
167
|
<SelectionToolbar
|
|
159
168
|
selectedCount={count}
|
|
160
169
|
onExportPdfs={onExportSelected ? handleExportPdfs : undefined}
|
|
170
|
+
exportPdfsDisabled={pdfExportDisabled}
|
|
171
|
+
exportPdfsTooltip={pdfExportDisabledTooltip}
|
|
161
172
|
onCopyToInvoice={onCopyToInvoice ? handleCopyToInvoice : undefined}
|
|
162
|
-
copyToInvoiceDisabled={
|
|
163
|
-
copyToInvoiceTooltip={
|
|
173
|
+
copyToInvoiceDisabled={copyDisabled}
|
|
174
|
+
copyToInvoiceTooltip={copyTooltip}
|
|
164
175
|
onRetryFiscalization={showRetry ? () => onRetryFiscalization(failedDocs.map((d) => d.id)) : undefined}
|
|
165
176
|
retryFiscalizationDisabled={someFailed && !allFailed}
|
|
166
177
|
retryFiscalizationTooltip={
|
|
@@ -176,6 +187,8 @@ export default function AdvanceInvoiceListTable({
|
|
|
176
187
|
handleCopyToInvoice,
|
|
177
188
|
handleDeselectAll,
|
|
178
189
|
onExportSelected,
|
|
190
|
+
pdfExportDisabled,
|
|
191
|
+
pdfExportDisabledTooltip,
|
|
179
192
|
onCopyToInvoice,
|
|
180
193
|
onRetryFiscalization,
|
|
181
194
|
fiscalizationFeatures,
|
|
@@ -189,6 +202,9 @@ export default function AdvanceInvoiceListTable({
|
|
|
189
202
|
{
|
|
190
203
|
id: "number",
|
|
191
204
|
header: t("Number"),
|
|
205
|
+
sort: {
|
|
206
|
+
defaultDirection: "desc",
|
|
207
|
+
},
|
|
192
208
|
cell: (advanceInvoice) => {
|
|
193
209
|
const failureType = getFiscalizationFailureType(advanceInvoice as any);
|
|
194
210
|
const showWarning = failureType && fiscalizationFeatures?.includes(failureType);
|
|
@@ -231,18 +247,27 @@ export default function AdvanceInvoiceListTable({
|
|
|
231
247
|
{
|
|
232
248
|
id: "date",
|
|
233
249
|
header: t("Date"),
|
|
250
|
+
sort: {
|
|
251
|
+
defaultDirection: "desc",
|
|
252
|
+
},
|
|
234
253
|
cell: (advanceInvoice) => <FormattedDate date={advanceInvoice.date} locale={i18nProps.locale} />,
|
|
235
254
|
},
|
|
236
255
|
{
|
|
237
256
|
id: "total",
|
|
238
257
|
header: t("Total"),
|
|
239
258
|
align: "right",
|
|
259
|
+
sort: {
|
|
260
|
+
defaultDirection: "desc",
|
|
261
|
+
},
|
|
240
262
|
cell: (advanceInvoice) => advanceInvoice.total,
|
|
241
263
|
},
|
|
242
264
|
{
|
|
243
265
|
id: "total_with_tax",
|
|
244
266
|
header: t("Total with Tax"),
|
|
245
267
|
align: "right",
|
|
268
|
+
sort: {
|
|
269
|
+
defaultDirection: "desc",
|
|
270
|
+
},
|
|
246
271
|
cell: (advanceInvoice) => advanceInvoice.total_with_tax,
|
|
247
272
|
},
|
|
248
273
|
{
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Your list is empty": "Your advance invoice list is empty",
|
|
3
|
+
"Get started by creating your first entry": "Get started by creating your first advance invoice",
|
|
4
|
+
"Create new": "Create advance invoice",
|
|
5
|
+
"No results found": "No advance invoices found",
|
|
6
|
+
selected: "selected",
|
|
7
|
+
"Export PDFs": "Export PDFs",
|
|
8
|
+
"Deselect all": "Deselect all",
|
|
9
|
+
"Partially Paid": "Partially Paid",
|
|
10
|
+
"FURS fiscalization failed": "FURS fiscalization failed",
|
|
11
|
+
"FINA fiscalization failed": "FINA fiscalization failed",
|
|
12
|
+
"Retry Fiscalization": "Retry Fiscalization",
|
|
13
|
+
"Some selected documents don't have failed fiscalization": "Some selected documents don't have failed fiscalization",
|
|
14
|
+
"Copy to Invoice": "Copy to Invoice",
|
|
15
|
+
"Finalize draft documents before copying to invoice": "Finalize draft documents before copying to invoice",
|
|
16
|
+
Void: "Void",
|
|
17
|
+
"Cannot void an advance invoice linked to an invoice": "Cannot void an advance invoice linked to an invoice",
|
|
18
|
+
Draft: "Draft",
|
|
19
|
+
Number: "Номер",
|
|
20
|
+
Customer: "Клиент",
|
|
21
|
+
Date: "Дата",
|
|
22
|
+
"Date Due": "Date Due",
|
|
23
|
+
Total: "Общо",
|
|
24
|
+
"Total with Tax": "Total with Tax",
|
|
25
|
+
Actions: "Действия",
|
|
26
|
+
"Open menu": "Отворете менюто",
|
|
27
|
+
"Copy advance invoice ID": "Copy advance invoice ID",
|
|
28
|
+
"View advance invoice": "View advance invoice",
|
|
29
|
+
"Add Payment": "Добави плащане",
|
|
30
|
+
"Download PDF": "Изтегли PDF",
|
|
31
|
+
"Downloading...": "Изтегляне...",
|
|
32
|
+
Duplicate: "Duplicate",
|
|
33
|
+
"Advance Invoice": "Авансова фактура",
|
|
34
|
+
"Failed to download PDF": "Неуспешно изтегляне на PDF",
|
|
35
|
+
"Search...": "Search...",
|
|
36
|
+
Filters: "Filters",
|
|
37
|
+
"Date Range": "Период",
|
|
38
|
+
From: "From",
|
|
39
|
+
To: "To",
|
|
40
|
+
"Clear filters": "Clear filters",
|
|
41
|
+
Status: "Статус",
|
|
42
|
+
Paid: "Платено",
|
|
43
|
+
Unpaid: "Unpaid",
|
|
44
|
+
Overdue: "Просрочени",
|
|
45
|
+
Voided: "Анулирана",
|
|
46
|
+
"Created At": "Created At",
|
|
47
|
+
Unshare: "Прекрати споделяне",
|
|
48
|
+
"Try adjusting your search criteria": "Try adjusting your search criteria",
|
|
49
|
+
"Clear search": "Clear search",
|
|
50
|
+
"Clear all": "Clear all",
|
|
51
|
+
} as const;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Your list is empty": "Your advance invoice list is empty",
|
|
3
|
+
"Get started by creating your first entry": "Get started by creating your first advance invoice",
|
|
4
|
+
"Create new": "Create advance invoice",
|
|
5
|
+
"No results found": "No advance invoices found",
|
|
6
|
+
selected: "selected",
|
|
7
|
+
"Export PDFs": "Export PDFs",
|
|
8
|
+
"Deselect all": "Deselect all",
|
|
9
|
+
"Partially Paid": "Partially Paid",
|
|
10
|
+
"FURS fiscalization failed": "FURS fiscalization failed",
|
|
11
|
+
"FINA fiscalization failed": "FINA fiscalization failed",
|
|
12
|
+
"Retry Fiscalization": "Retry Fiscalization",
|
|
13
|
+
"Some selected documents don't have failed fiscalization": "Some selected documents don't have failed fiscalization",
|
|
14
|
+
"Copy to Invoice": "Copy to Invoice",
|
|
15
|
+
"Finalize draft documents before copying to invoice": "Finalize draft documents before copying to invoice",
|
|
16
|
+
Void: "Void",
|
|
17
|
+
"Cannot void an advance invoice linked to an invoice": "Cannot void an advance invoice linked to an invoice",
|
|
18
|
+
Draft: "Draft",
|
|
19
|
+
Number: "Číslo",
|
|
20
|
+
Customer: "Zákazník",
|
|
21
|
+
Date: "Datum",
|
|
22
|
+
"Date Due": "Date Due",
|
|
23
|
+
Total: "Celkem",
|
|
24
|
+
"Total with Tax": "Total with Tax",
|
|
25
|
+
Actions: "Akce",
|
|
26
|
+
"Open menu": "Otevřít nabídku",
|
|
27
|
+
"Copy advance invoice ID": "Copy advance invoice ID",
|
|
28
|
+
"View advance invoice": "View advance invoice",
|
|
29
|
+
"Add Payment": "Přidat platbu",
|
|
30
|
+
"Download PDF": "Stáhnout PDF",
|
|
31
|
+
"Downloading...": "Stahování...",
|
|
32
|
+
Duplicate: "Duplicate",
|
|
33
|
+
"Advance Invoice": "Zálohová faktura",
|
|
34
|
+
"Failed to download PDF": "Stažení PDF se nezdařilo",
|
|
35
|
+
"Search...": "Search...",
|
|
36
|
+
Filters: "Filters",
|
|
37
|
+
"Date Range": "Časový rozsah",
|
|
38
|
+
From: "From",
|
|
39
|
+
To: "To",
|
|
40
|
+
"Clear filters": "Clear filters",
|
|
41
|
+
Status: "Stav",
|
|
42
|
+
Paid: "Zaplaceno",
|
|
43
|
+
Unpaid: "Unpaid",
|
|
44
|
+
Overdue: "Po splatnosti",
|
|
45
|
+
Voided: "Stornováno",
|
|
46
|
+
"Created At": "Created At",
|
|
47
|
+
Unshare: "Zrušit sdílení",
|
|
48
|
+
"Try adjusting your search criteria": "Try adjusting your search criteria",
|
|
49
|
+
"Clear search": "Clear search",
|
|
50
|
+
"Clear all": "Clear all",
|
|
51
|
+
} as const;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
// Empty state translations
|
|
3
2
|
"Your list is empty": "Your advance invoice list is empty",
|
|
4
3
|
"Get started by creating your first entry": "Get started by creating your first advance invoice",
|
|
5
4
|
"Create new": "Create advance invoice",
|
|
6
|
-
// No results translations
|
|
7
5
|
"No results found": "No advance invoices found",
|
|
8
6
|
selected: "selected",
|
|
9
7
|
"Export PDFs": "Export PDFs",
|
|
@@ -17,4 +15,37 @@ export default {
|
|
|
17
15
|
"Finalize draft documents before copying to invoice": "Finalize draft documents before copying to invoice",
|
|
18
16
|
Void: "Void",
|
|
19
17
|
"Cannot void an advance invoice linked to an invoice": "Cannot void an advance invoice linked to an invoice",
|
|
18
|
+
Draft: "Draft",
|
|
19
|
+
Number: "Number",
|
|
20
|
+
Customer: "Customer",
|
|
21
|
+
Date: "Date",
|
|
22
|
+
"Date Due": "Date Due",
|
|
23
|
+
Total: "Total",
|
|
24
|
+
"Total with Tax": "Total with Tax",
|
|
25
|
+
Actions: "Actions",
|
|
26
|
+
"Open menu": "Open menu",
|
|
27
|
+
"Copy advance invoice ID": "Copy advance invoice ID",
|
|
28
|
+
"View advance invoice": "View advance invoice",
|
|
29
|
+
"Add Payment": "Add Payment",
|
|
30
|
+
"Download PDF": "Download PDF",
|
|
31
|
+
"Downloading...": "Downloading...",
|
|
32
|
+
Duplicate: "Duplicate",
|
|
33
|
+
"Advance Invoice": "Advance Invoice",
|
|
34
|
+
"Failed to download PDF": "Failed to download PDF",
|
|
35
|
+
"Search...": "Search...",
|
|
36
|
+
Filters: "Filters",
|
|
37
|
+
"Date Range": "Date Range",
|
|
38
|
+
From: "From",
|
|
39
|
+
To: "To",
|
|
40
|
+
"Clear filters": "Clear filters",
|
|
41
|
+
Status: "Status",
|
|
42
|
+
Paid: "Paid",
|
|
43
|
+
Unpaid: "Unpaid",
|
|
44
|
+
Overdue: "Overdue",
|
|
45
|
+
Voided: "Voided",
|
|
46
|
+
"Created At": "Created At",
|
|
47
|
+
Unshare: "Unshare",
|
|
48
|
+
"Try adjusting your search criteria": "Try adjusting your search criteria",
|
|
49
|
+
"Clear search": "Clear search",
|
|
50
|
+
"Clear all": "Clear all",
|
|
20
51
|
} as const;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Your list is empty": "Your advance invoice list is empty",
|
|
3
|
+
"Get started by creating your first entry": "Get started by creating your first advance invoice",
|
|
4
|
+
"Create new": "Create advance invoice",
|
|
5
|
+
"No results found": "No advance invoices found",
|
|
6
|
+
selected: "selected",
|
|
7
|
+
"Export PDFs": "Export PDFs",
|
|
8
|
+
"Deselect all": "Deselect all",
|
|
9
|
+
"Partially Paid": "Partially Paid",
|
|
10
|
+
"FURS fiscalization failed": "FURS fiscalization failed",
|
|
11
|
+
"FINA fiscalization failed": "FINA fiscalization failed",
|
|
12
|
+
"Retry Fiscalization": "Retry Fiscalization",
|
|
13
|
+
"Some selected documents don't have failed fiscalization": "Some selected documents don't have failed fiscalization",
|
|
14
|
+
"Copy to Invoice": "Copy to Invoice",
|
|
15
|
+
"Finalize draft documents before copying to invoice": "Finalize draft documents before copying to invoice",
|
|
16
|
+
Void: "Void",
|
|
17
|
+
"Cannot void an advance invoice linked to an invoice": "Cannot void an advance invoice linked to an invoice",
|
|
18
|
+
Draft: "Draft",
|
|
19
|
+
Number: "Number",
|
|
20
|
+
Customer: "Klient",
|
|
21
|
+
Date: "Kuupäev",
|
|
22
|
+
"Date Due": "Date Due",
|
|
23
|
+
Total: "Kokku",
|
|
24
|
+
"Total with Tax": "Total with Tax",
|
|
25
|
+
Actions: "Tegevused",
|
|
26
|
+
"Open menu": "Ava menüü",
|
|
27
|
+
"Copy advance invoice ID": "Copy advance invoice ID",
|
|
28
|
+
"View advance invoice": "View advance invoice",
|
|
29
|
+
"Add Payment": "Lisa makse",
|
|
30
|
+
"Download PDF": "Laadi PDF alla",
|
|
31
|
+
"Downloading...": "Allalaadimine...",
|
|
32
|
+
Duplicate: "Duplicate",
|
|
33
|
+
"Advance Invoice": "Ettemaksuarve",
|
|
34
|
+
"Failed to download PDF": "PDF-i allalaadimine ebaõnnestus",
|
|
35
|
+
"Search...": "Search...",
|
|
36
|
+
Filters: "Filters",
|
|
37
|
+
"Date Range": "Kuupäevavahemik",
|
|
38
|
+
From: "From",
|
|
39
|
+
To: "To",
|
|
40
|
+
"Clear filters": "Clear filters",
|
|
41
|
+
Status: "Olek",
|
|
42
|
+
Paid: "Makstud",
|
|
43
|
+
Unpaid: "Unpaid",
|
|
44
|
+
Overdue: "Üle tähtaja",
|
|
45
|
+
Voided: "Tühistatud",
|
|
46
|
+
"Created At": "Created At",
|
|
47
|
+
Unshare: "Lõpeta jagamine",
|
|
48
|
+
"Try adjusting your search criteria": "Try adjusting your search criteria",
|
|
49
|
+
"Clear search": "Clear search",
|
|
50
|
+
"Clear all": "Clear all",
|
|
51
|
+
} as const;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Your list is empty": "Your advance invoice list is empty",
|
|
3
|
+
"Get started by creating your first entry": "Get started by creating your first advance invoice",
|
|
4
|
+
"Create new": "Create advance invoice",
|
|
5
|
+
"No results found": "No advance invoices found",
|
|
6
|
+
selected: "selected",
|
|
7
|
+
"Export PDFs": "Export PDFs",
|
|
8
|
+
"Deselect all": "Deselect all",
|
|
9
|
+
"Partially Paid": "Partially Paid",
|
|
10
|
+
"FURS fiscalization failed": "FURS fiscalization failed",
|
|
11
|
+
"FINA fiscalization failed": "FINA fiscalization failed",
|
|
12
|
+
"Retry Fiscalization": "Retry Fiscalization",
|
|
13
|
+
"Some selected documents don't have failed fiscalization": "Some selected documents don't have failed fiscalization",
|
|
14
|
+
"Copy to Invoice": "Copy to Invoice",
|
|
15
|
+
"Finalize draft documents before copying to invoice": "Finalize draft documents before copying to invoice",
|
|
16
|
+
Void: "Void",
|
|
17
|
+
"Cannot void an advance invoice linked to an invoice": "Cannot void an advance invoice linked to an invoice",
|
|
18
|
+
Draft: "Draft",
|
|
19
|
+
Number: "Number",
|
|
20
|
+
Customer: "Asiakas",
|
|
21
|
+
Date: "Päivämäärä",
|
|
22
|
+
"Date Due": "Date Due",
|
|
23
|
+
Total: "Total",
|
|
24
|
+
"Total with Tax": "Total with Tax",
|
|
25
|
+
Actions: "Toiminnot",
|
|
26
|
+
"Open menu": "Avaa valikko",
|
|
27
|
+
"Copy advance invoice ID": "Copy advance invoice ID",
|
|
28
|
+
"View advance invoice": "View advance invoice",
|
|
29
|
+
"Add Payment": "Add Payment",
|
|
30
|
+
"Download PDF": "Lataa PDF",
|
|
31
|
+
"Downloading...": "Ladataan...",
|
|
32
|
+
Duplicate: "Duplicate",
|
|
33
|
+
"Advance Invoice": "Ennakkolasku",
|
|
34
|
+
"Failed to download PDF": "PDF:n lataaminen epäonnistui",
|
|
35
|
+
"Search...": "Search...",
|
|
36
|
+
Filters: "Filters",
|
|
37
|
+
"Date Range": "Date Range",
|
|
38
|
+
From: "From",
|
|
39
|
+
To: "To",
|
|
40
|
+
"Clear filters": "Clear filters",
|
|
41
|
+
Status: "Tila",
|
|
42
|
+
Paid: "Maksettu",
|
|
43
|
+
Unpaid: "Unpaid",
|
|
44
|
+
Overdue: "Overdue",
|
|
45
|
+
Voided: "Voided",
|
|
46
|
+
"Created At": "Created At",
|
|
47
|
+
Unshare: "Poista jakaminen",
|
|
48
|
+
"Try adjusting your search criteria": "Try adjusting your search criteria",
|
|
49
|
+
"Clear search": "Clear search",
|
|
50
|
+
"Clear all": "Clear all",
|
|
51
|
+
} as const;
|
|
@@ -3,41 +3,41 @@ export default {
|
|
|
3
3
|
Number: "Broj",
|
|
4
4
|
Customer: "Kupac",
|
|
5
5
|
Date: "Datum",
|
|
6
|
-
"Date Due": "Datum
|
|
6
|
+
"Date Due": "Datum dospijeća",
|
|
7
7
|
Total: "Ukupno",
|
|
8
8
|
"Total with Tax": "Ukupno s PDV-om",
|
|
9
9
|
Actions: "Akcije",
|
|
10
10
|
"Open menu": "Otvori izbornik",
|
|
11
|
-
"Copy advance invoice ID": "Kopiraj ID avansnog
|
|
12
|
-
"View advance invoice": "
|
|
13
|
-
"Add Payment": "Dodaj
|
|
11
|
+
"Copy advance invoice ID": "Kopiraj ID avansnog računa",
|
|
12
|
+
"View advance invoice": "Prikaži avansni račun",
|
|
13
|
+
"Add Payment": "Dodaj plaćanje",
|
|
14
14
|
"Download PDF": "Preuzmi PDF",
|
|
15
15
|
"Downloading...": "Preuzimanje...",
|
|
16
16
|
Duplicate: "Dupliciraj",
|
|
17
|
-
"Advance Invoice": "Avansni
|
|
17
|
+
"Advance Invoice": "Avansni račun",
|
|
18
18
|
"Failed to download PDF": "Preuzimanje PDF-a nije uspjelo",
|
|
19
19
|
// Filter translations
|
|
20
|
-
"Search...": "
|
|
20
|
+
"Search...": "Pretraži...",
|
|
21
21
|
Filters: "Filteri",
|
|
22
22
|
"Date Range": "Raspon datuma",
|
|
23
23
|
From: "Od",
|
|
24
24
|
To: "Do",
|
|
25
|
-
"Clear filters": "
|
|
25
|
+
"Clear filters": "Očisti filtre",
|
|
26
26
|
Status: "Status",
|
|
27
|
-
Paid: "
|
|
28
|
-
Unpaid: "
|
|
27
|
+
Paid: "Plaćeno",
|
|
28
|
+
Unpaid: "Neplaćeno",
|
|
29
29
|
Overdue: "Dospjelo",
|
|
30
30
|
Voided: "Stornirano",
|
|
31
31
|
"Created At": "Kreirano",
|
|
32
32
|
Unshare: "Ukloni dijeljenje",
|
|
33
33
|
// Empty state translations
|
|
34
|
-
"Your list is empty": "
|
|
35
|
-
"Get started by creating your first entry": "
|
|
36
|
-
"Create new": "
|
|
34
|
+
"Your list is empty": "Vaš popis avansnih računa je prazan",
|
|
35
|
+
"Get started by creating your first entry": "Započnite izradom prvog avansnog računa",
|
|
36
|
+
"Create new": "Izradi avansni račun",
|
|
37
37
|
// No results translations
|
|
38
|
-
"No results found": "Nije
|
|
39
|
-
"Try adjusting your search criteria": "
|
|
40
|
-
"Clear search": "
|
|
38
|
+
"No results found": "Nije pronađen nijedan avansni račun",
|
|
39
|
+
"Try adjusting your search criteria": "Pokušajte prilagoditi kriterije pretraživanja",
|
|
40
|
+
"Clear search": "Očisti pretragu",
|
|
41
41
|
"Clear all": "Očisti sve",
|
|
42
42
|
selected: "odabranih",
|
|
43
43
|
"Export PDFs": "Izvezi PDF-ove",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Your list is empty": "Your advance invoice list is empty",
|
|
3
|
+
"Get started by creating your first entry": "Get started by creating your first advance invoice",
|
|
4
|
+
"Create new": "Create advance invoice",
|
|
5
|
+
"No results found": "No advance invoices found",
|
|
6
|
+
selected: "selected",
|
|
7
|
+
"Export PDFs": "Export PDFs",
|
|
8
|
+
"Deselect all": "Deselect all",
|
|
9
|
+
"Partially Paid": "Partially Paid",
|
|
10
|
+
"FURS fiscalization failed": "FURS fiscalization failed",
|
|
11
|
+
"FINA fiscalization failed": "FINA fiscalization failed",
|
|
12
|
+
"Retry Fiscalization": "Retry Fiscalization",
|
|
13
|
+
"Some selected documents don't have failed fiscalization": "Some selected documents don't have failed fiscalization",
|
|
14
|
+
"Copy to Invoice": "Copy to Invoice",
|
|
15
|
+
"Finalize draft documents before copying to invoice": "Finalize draft documents before copying to invoice",
|
|
16
|
+
Void: "Void",
|
|
17
|
+
"Cannot void an advance invoice linked to an invoice": "Cannot void an advance invoice linked to an invoice",
|
|
18
|
+
Draft: "Draft",
|
|
19
|
+
Number: "Númer",
|
|
20
|
+
Customer: "Viðskiptavinur",
|
|
21
|
+
Date: "Dagsetning",
|
|
22
|
+
"Date Due": "Date Due",
|
|
23
|
+
Total: "Samtals",
|
|
24
|
+
"Total with Tax": "Total with Tax",
|
|
25
|
+
Actions: "Aðgerðir",
|
|
26
|
+
"Open menu": "Opna valmynd",
|
|
27
|
+
"Copy advance invoice ID": "Copy advance invoice ID",
|
|
28
|
+
"View advance invoice": "View advance invoice",
|
|
29
|
+
"Add Payment": "Bæta við greiðslu",
|
|
30
|
+
"Download PDF": "Hlaða niður PDF",
|
|
31
|
+
"Downloading...": "Hleður niður...",
|
|
32
|
+
Duplicate: "Duplicate",
|
|
33
|
+
"Advance Invoice": "Fyrirframreikningur",
|
|
34
|
+
"Failed to download PDF": "Ekki tókst að hlaða niður PDF",
|
|
35
|
+
"Search...": "Search...",
|
|
36
|
+
Filters: "Filters",
|
|
37
|
+
"Date Range": "Dagsetningarbil",
|
|
38
|
+
From: "From",
|
|
39
|
+
To: "To",
|
|
40
|
+
"Clear filters": "Clear filters",
|
|
41
|
+
Status: "Staða",
|
|
42
|
+
Paid: "Greitt",
|
|
43
|
+
Unpaid: "Unpaid",
|
|
44
|
+
Overdue: "Á gjalddaga",
|
|
45
|
+
Voided: "Ógildur",
|
|
46
|
+
"Created At": "Created At",
|
|
47
|
+
Unshare: "Hætta deilingu",
|
|
48
|
+
"Try adjusting your search criteria": "Try adjusting your search criteria",
|
|
49
|
+
"Clear search": "Clear search",
|
|
50
|
+
"Clear all": "Clear all",
|
|
51
|
+
} as const;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Your list is empty": "Your advance invoice list is empty",
|
|
3
|
+
"Get started by creating your first entry": "Get started by creating your first advance invoice",
|
|
4
|
+
"Create new": "Create advance invoice",
|
|
5
|
+
"No results found": "No advance invoices found",
|
|
6
|
+
selected: "selected",
|
|
7
|
+
"Export PDFs": "Export PDFs",
|
|
8
|
+
"Deselect all": "Deselect all",
|
|
9
|
+
"Partially Paid": "Partially Paid",
|
|
10
|
+
"FURS fiscalization failed": "FURS fiscalization failed",
|
|
11
|
+
"FINA fiscalization failed": "FINA fiscalization failed",
|
|
12
|
+
"Retry Fiscalization": "Retry Fiscalization",
|
|
13
|
+
"Some selected documents don't have failed fiscalization": "Some selected documents don't have failed fiscalization",
|
|
14
|
+
"Copy to Invoice": "Copy to Invoice",
|
|
15
|
+
"Finalize draft documents before copying to invoice": "Finalize draft documents before copying to invoice",
|
|
16
|
+
Void: "Void",
|
|
17
|
+
"Cannot void an advance invoice linked to an invoice": "Cannot void an advance invoice linked to an invoice",
|
|
18
|
+
Draft: "Draft",
|
|
19
|
+
Number: "Nummer",
|
|
20
|
+
Customer: "Kunde",
|
|
21
|
+
Date: "Dato",
|
|
22
|
+
"Date Due": "Date Due",
|
|
23
|
+
Total: "Totalt",
|
|
24
|
+
"Total with Tax": "Total with Tax",
|
|
25
|
+
Actions: "Handlinger",
|
|
26
|
+
"Open menu": "Åpne menyen",
|
|
27
|
+
"Copy advance invoice ID": "Copy advance invoice ID",
|
|
28
|
+
"View advance invoice": "View advance invoice",
|
|
29
|
+
"Add Payment": "Legg til betaling",
|
|
30
|
+
"Download PDF": "Last ned PDF",
|
|
31
|
+
"Downloading...": "Laster ned...",
|
|
32
|
+
Duplicate: "Duplicate",
|
|
33
|
+
"Advance Invoice": "Forskuddsfaktura",
|
|
34
|
+
"Failed to download PDF": "Kunne ikke laste ned PDF",
|
|
35
|
+
"Search...": "Search...",
|
|
36
|
+
Filters: "Filters",
|
|
37
|
+
"Date Range": "Datointervall",
|
|
38
|
+
From: "From",
|
|
39
|
+
To: "To",
|
|
40
|
+
"Clear filters": "Clear filters",
|
|
41
|
+
Status: "Status",
|
|
42
|
+
Paid: "Betalt",
|
|
43
|
+
Unpaid: "Unpaid",
|
|
44
|
+
Overdue: "Forfalt",
|
|
45
|
+
Voided: "Annullert",
|
|
46
|
+
"Created At": "Created At",
|
|
47
|
+
Unshare: "Fjern deling",
|
|
48
|
+
"Try adjusting your search criteria": "Try adjusting your search criteria",
|
|
49
|
+
"Clear search": "Clear search",
|
|
50
|
+
"Clear all": "Clear all",
|
|
51
|
+
} as const;
|