@spaceinvoices/react-ui 0.1.1 → 0.3.0
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 +1 -1
- package/registry.json +287 -122
- package/src/components/activities/activity-timeline.tsx +8 -1
- package/src/components/activities/locales/es.ts +30 -0
- package/src/components/activities/locales/fr.ts +30 -0
- package/src/components/activities/locales/hr.ts +30 -0
- package/src/components/activities/locales/it.ts +30 -0
- package/src/components/activities/locales/nl.ts +30 -0
- package/src/components/activities/locales/pl.ts +30 -0
- package/src/components/activities/locales/pt.ts +30 -0
- package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +21 -7
- package/src/components/advance-invoices/create/locales/es.ts +29 -0
- package/src/components/advance-invoices/create/locales/fr.ts +28 -0
- package/src/components/advance-invoices/create/locales/hr.ts +27 -0
- package/src/components/advance-invoices/create/locales/it.ts +29 -0
- package/src/components/advance-invoices/create/locales/nl.ts +28 -0
- package/src/components/advance-invoices/create/locales/pl.ts +28 -0
- package/src/components/advance-invoices/create/locales/pt.ts +29 -0
- package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +3 -3
- package/src/components/advance-invoices/list/list-table.tsx +20 -3
- package/src/components/advance-invoices/list/locales/de.ts +9 -0
- package/src/components/advance-invoices/list/locales/en.ts +8 -0
- package/src/components/advance-invoices/list/locales/es.ts +41 -0
- package/src/components/advance-invoices/list/locales/fr.ts +41 -0
- package/src/components/advance-invoices/list/locales/hr.ts +41 -0
- package/src/components/advance-invoices/list/locales/it.ts +41 -0
- package/src/components/advance-invoices/list/locales/nl.ts +41 -0
- package/src/components/advance-invoices/list/locales/pl.ts +41 -0
- package/src/components/advance-invoices/list/locales/pt.ts +41 -0
- package/src/components/advance-invoices/list/locales/sl.ts +9 -0
- package/src/components/credit-notes/create/create-credit-note-form.tsx +19 -5
- package/src/components/credit-notes/create/locales/es.ts +68 -0
- package/src/components/credit-notes/create/locales/fr.ts +69 -0
- package/src/components/credit-notes/create/locales/hr.ts +68 -0
- package/src/components/credit-notes/create/locales/it.ts +68 -0
- package/src/components/credit-notes/create/locales/nl.ts +69 -0
- package/src/components/credit-notes/create/locales/pl.ts +68 -0
- package/src/components/credit-notes/create/locales/pt.ts +68 -0
- package/src/components/credit-notes/list/list-table.tsx +25 -8
- package/src/components/credit-notes/list/locales/de.ts +10 -2
- package/src/components/credit-notes/list/locales/en.ts +8 -0
- package/src/components/credit-notes/list/locales/es.ts +41 -0
- package/src/components/credit-notes/list/locales/fr.ts +41 -0
- package/src/components/credit-notes/list/locales/hr.ts +41 -0
- package/src/components/credit-notes/list/locales/it.ts +41 -0
- package/src/components/credit-notes/list/locales/nl.ts +41 -0
- package/src/components/credit-notes/list/locales/pl.ts +41 -0
- package/src/components/credit-notes/list/locales/pt.ts +41 -0
- package/src/components/credit-notes/list/locales/sl.ts +10 -2
- package/src/components/customers/create-customer-form/create-customer-form.tsx +21 -3
- package/src/components/customers/create-customer-form/locales/de.ts +1 -0
- package/src/components/customers/create-customer-form/locales/es.ts +21 -0
- package/src/components/customers/create-customer-form/locales/fr.ts +21 -0
- package/src/components/customers/create-customer-form/locales/hr.ts +21 -0
- package/src/components/customers/create-customer-form/locales/it.ts +21 -0
- package/src/components/customers/create-customer-form/locales/nl.ts +21 -0
- package/src/components/customers/create-customer-form/locales/pl.ts +21 -0
- package/src/components/customers/create-customer-form/locales/pt.ts +21 -0
- package/src/components/customers/create-customer-form/locales/sl.ts +1 -0
- package/src/components/customers/customer-list-table/customer-list-row-actions.tsx +72 -16
- package/src/components/customers/customer-list-table/customer-list-table.tsx +35 -2
- package/src/components/customers/customer-list-table/locales/de.ts +9 -0
- package/src/components/customers/customer-list-table/locales/en.ts +10 -0
- package/src/components/customers/customer-list-table/locales/es.ts +25 -0
- package/src/components/customers/customer-list-table/locales/fr.ts +25 -0
- package/src/components/customers/customer-list-table/locales/hr.ts +25 -0
- package/src/components/customers/customer-list-table/locales/it.ts +25 -0
- package/src/components/customers/customer-list-table/locales/nl.ts +25 -0
- package/src/components/customers/customer-list-table/locales/pl.ts +25 -0
- package/src/components/customers/customer-list-table/locales/pt.ts +25 -0
- package/src/components/customers/customer-list-table/locales/sl.ts +9 -0
- package/src/components/customers/customers.hooks.test.ts +8 -8
- package/src/components/customers/customers.hooks.ts +6 -1
- package/src/components/customers/edit-customer-form/edit-customer-form.tsx +143 -0
- package/src/components/customers/edit-customer-form/locales/de.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/es.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/fr.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/hr.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/it.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/nl.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/pl.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/pt.ts +13 -0
- package/src/components/customers/edit-customer-form/locales/sl.ts +13 -0
- package/src/components/customers/index.ts +1 -0
- package/src/components/dashboard/collection-rate-card/collection-rate-card.tsx +9 -1
- package/src/components/dashboard/collection-rate-card/locales/de.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/es.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/fr.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/hr.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/it.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/nl.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/pl.ts +3 -0
- package/src/components/dashboard/collection-rate-card/locales/pt.ts +3 -0
- package/src/components/dashboard/invoice-status-chart/invoice-status-chart.tsx +9 -1
- package/src/components/dashboard/invoice-status-chart/locales/de.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/es.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/fr.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/hr.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/it.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/nl.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/pl.ts +9 -0
- package/src/components/dashboard/invoice-status-chart/locales/pt.ts +9 -0
- package/src/components/dashboard/payment-methods-chart/locales/de.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/es.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/fr.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/hr.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/it.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/nl.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/pl.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/locales/pt.ts +12 -0
- package/src/components/dashboard/payment-methods-chart/payment-methods-chart.tsx +9 -1
- package/src/components/dashboard/payment-trend-chart/locales/de.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/es.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/fr.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/hr.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/it.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/nl.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/pl.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/locales/pt.ts +5 -0
- package/src/components/dashboard/payment-trend-chart/payment-trend-chart.tsx +10 -2
- package/src/components/dashboard/revenue-trend-chart/locales/de.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/es.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/fr.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/hr.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/it.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/nl.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/pl.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/locales/pt.ts +5 -0
- package/src/components/dashboard/revenue-trend-chart/revenue-trend-chart.tsx +10 -2
- package/src/components/dashboard/top-customers-chart/locales/de.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/es.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/fr.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/hr.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/it.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/nl.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/pl.ts +5 -0
- package/src/components/dashboard/top-customers-chart/locales/pt.ts +5 -0
- package/src/components/dashboard/top-customers-chart/top-customers-chart.tsx +10 -2
- package/src/components/documents/create/document-add-item-form.tsx +1 -1
- package/src/components/documents/create/form-types.ts +1 -5
- package/src/components/documents/create/mark-as-paid-section.tsx +60 -23
- package/src/components/documents/create/prepare-document-submission.test.ts +2 -2
- package/src/components/documents/create/prepare-document-submission.ts +12 -7
- package/src/components/documents/create/prepare-preview-data.test.ts +1 -1
- package/src/components/documents/view/document-actions-bar.tsx +8 -1
- package/src/components/documents/view/document-details-card.tsx +8 -1
- package/src/components/documents/view/document-payments-list.tsx +8 -1
- package/src/components/documents/view/locales/es.ts +83 -0
- package/src/components/documents/view/locales/fr.ts +83 -0
- package/src/components/documents/view/locales/hr.ts +83 -0
- package/src/components/documents/view/locales/it.ts +83 -0
- package/src/components/documents/view/locales/nl.ts +84 -0
- package/src/components/documents/view/locales/pl.ts +83 -0
- package/src/components/documents/view/locales/pt.ts +83 -0
- package/src/components/entities/create-entity-form.tsx +12 -2
- package/src/components/entities/entity-settings-form/entity-settings-form.tsx +18 -0
- package/src/components/entities/entity-settings-form/locales/de.ts +3 -1
- package/src/components/entities/entity-settings-form/locales/es.ts +197 -0
- package/src/components/entities/entity-settings-form/locales/fr.ts +196 -0
- package/src/components/entities/entity-settings-form/locales/hr.ts +189 -0
- package/src/components/entities/entity-settings-form/locales/it.ts +195 -0
- package/src/components/entities/entity-settings-form/locales/nl.ts +192 -0
- package/src/components/entities/entity-settings-form/locales/pl.ts +193 -0
- package/src/components/entities/entity-settings-form/locales/pt.ts +194 -0
- package/src/components/entities/entity-settings-form/locales/sl.ts +2 -0
- package/src/components/entities/fina-settings-form/fina-settings-form.tsx +461 -0
- package/src/components/entities/fina-settings-form/fina-settings.hooks.ts +215 -0
- package/src/components/entities/fina-settings-form/index.ts +3 -0
- package/src/components/entities/fina-settings-form/locales/de.ts +145 -0
- package/src/components/entities/fina-settings-form/locales/en.ts +142 -0
- package/src/components/entities/fina-settings-form/locales/es.ts +143 -0
- package/src/components/entities/fina-settings-form/locales/fr.ts +142 -0
- package/src/components/entities/fina-settings-form/locales/hr.ts +144 -0
- package/src/components/entities/fina-settings-form/locales/it.ts +144 -0
- package/src/components/entities/fina-settings-form/locales/nl.ts +144 -0
- package/src/components/entities/fina-settings-form/locales/pl.ts +142 -0
- package/src/components/entities/fina-settings-form/locales/pt.ts +144 -0
- package/src/components/entities/fina-settings-form/locales/sl.ts +144 -0
- package/src/components/entities/fina-settings-form/sections/certificate-settings-section.tsx +233 -0
- package/src/components/entities/fina-settings-form/sections/premises-management-section.tsx +363 -0
- package/src/components/entities/fina-settings-form/sections/register-premise-dialog.tsx +395 -0
- package/src/components/entities/furs-settings-form/furs-settings-form.tsx +9 -2
- package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +15 -11
- package/src/components/entities/furs-settings-form/locales/de.ts +52 -88
- package/src/components/entities/furs-settings-form/locales/en.ts +3 -0
- package/src/components/entities/furs-settings-form/locales/es.ts +196 -0
- package/src/components/entities/furs-settings-form/locales/fr.ts +196 -0
- package/src/components/entities/furs-settings-form/locales/hr.ts +195 -0
- package/src/components/entities/furs-settings-form/locales/it.ts +196 -0
- package/src/components/entities/furs-settings-form/locales/nl.ts +195 -0
- package/src/components/entities/furs-settings-form/locales/pl.ts +194 -0
- package/src/components/entities/furs-settings-form/locales/pt.ts +195 -0
- package/src/components/entities/furs-settings-form/locales/sl.ts +2 -0
- package/src/components/entities/furs-settings-form/sections/certificate-settings-section.tsx +19 -4
- package/src/components/entities/furs-settings-form/sections/register-premise-dialog.tsx +17 -66
- package/src/components/entities/keys.ts +1 -1
- package/src/components/entities/settings/company-settings-form.tsx +28 -0
- package/src/components/entities/settings/pdf-template-selector/locales/es.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/fr.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/hr.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/it.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/nl.ts +17 -0
- package/src/components/entities/settings/pdf-template-selector/locales/pl.ts +18 -0
- package/src/components/entities/settings/pdf-template-selector/locales/pt.ts +18 -0
- package/src/components/estimates/create/create-estimate-form.tsx +14 -0
- package/src/components/estimates/create/locales/es.ts +57 -0
- package/src/components/estimates/create/locales/fr.ts +58 -0
- package/src/components/estimates/create/locales/hr.ts +57 -0
- package/src/components/estimates/create/locales/it.ts +57 -0
- package/src/components/estimates/create/locales/nl.ts +58 -0
- package/src/components/estimates/create/locales/pl.ts +57 -0
- package/src/components/estimates/create/locales/pt.ts +58 -0
- package/src/components/estimates/create/prepare-estimate-submission.ts +1 -1
- package/src/components/estimates/list/list-table.tsx +20 -3
- package/src/components/estimates/list/locales/de.ts +9 -0
- package/src/components/estimates/list/locales/en.ts +8 -0
- package/src/components/estimates/list/locales/es.ts +32 -0
- package/src/components/estimates/list/locales/fr.ts +32 -0
- package/src/components/estimates/list/locales/hr.ts +32 -0
- package/src/components/estimates/list/locales/it.ts +32 -0
- package/src/components/estimates/list/locales/nl.ts +32 -0
- package/src/components/estimates/list/locales/pl.ts +32 -0
- package/src/components/estimates/list/locales/pt.ts +32 -0
- package/src/components/estimates/list/locales/sl.ts +9 -0
- package/src/components/export/document-export-form.tsx +0 -2
- package/src/components/invoices/create/create-invoice-form.tsx +24 -10
- package/src/components/invoices/create/eslog-validation.test.ts +2 -0
- package/src/components/invoices/create/locales/es.ts +103 -0
- package/src/components/invoices/create/locales/fr.ts +105 -0
- package/src/components/invoices/create/locales/hr.ts +103 -0
- package/src/components/invoices/create/locales/it.ts +105 -0
- package/src/components/invoices/create/locales/nl.ts +104 -0
- package/src/components/invoices/create/locales/pl.ts +104 -0
- package/src/components/invoices/create/locales/pt.ts +105 -0
- package/src/components/invoices/create/prepare-invoice-submission.test.ts +54 -55
- package/src/components/invoices/create/prepare-invoice-submission.ts +3 -3
- package/src/components/invoices/list/list-table.tsx +20 -3
- package/src/components/invoices/list/locales/de.ts +9 -0
- package/src/components/invoices/list/locales/en.ts +8 -0
- package/src/components/invoices/list/locales/es.ts +42 -0
- package/src/components/invoices/list/locales/fr.ts +42 -0
- package/src/components/invoices/list/locales/hr.ts +42 -0
- package/src/components/invoices/list/locales/it.ts +42 -0
- package/src/components/invoices/list/locales/nl.ts +42 -0
- package/src/components/invoices/list/locales/pl.ts +42 -0
- package/src/components/invoices/list/locales/pt.ts +42 -0
- package/src/components/invoices/list/locales/sl.ts +9 -0
- package/src/components/invoices/send-email-dialog/locales/es.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/fr.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/hr.ts +17 -0
- package/src/components/invoices/send-email-dialog/locales/it.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/nl.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/pl.ts +18 -0
- package/src/components/invoices/send-email-dialog/locales/pt.ts +18 -0
- package/src/components/invoices/send-email-dialog/send-email-dialog.tsx +20 -12
- package/src/components/invoices/shared/scaled-document-preview.tsx +1 -0
- package/src/components/invoices/view/eslog-info-display.tsx +1 -0
- package/src/components/invoices/view/fina-info-display.tsx +196 -0
- package/src/components/items/create-item-form/create-item-form.tsx +14 -0
- package/src/components/items/create-item-form/locales/en.ts +5 -0
- package/src/components/items/create-item-form/locales/es.ts +14 -0
- package/src/components/items/create-item-form/locales/fr.ts +14 -0
- package/src/components/items/create-item-form/locales/hr.ts +14 -0
- package/src/components/items/create-item-form/locales/it.ts +14 -0
- package/src/components/items/create-item-form/locales/nl.ts +14 -0
- package/src/components/items/create-item-form/locales/pl.ts +14 -0
- package/src/components/items/create-item-form/locales/pt.ts +14 -0
- package/src/components/items/edit-item-form/edit-item-form.tsx +170 -0
- package/src/components/items/edit-item-form/locales/de.ts +12 -0
- package/src/components/items/edit-item-form/locales/es.ts +12 -0
- package/src/components/items/edit-item-form/locales/fr.ts +12 -0
- package/src/components/items/edit-item-form/locales/hr.ts +12 -0
- package/src/components/items/edit-item-form/locales/it.ts +12 -0
- package/src/components/items/edit-item-form/locales/nl.ts +12 -0
- package/src/components/items/edit-item-form/locales/pl.ts +12 -0
- package/src/components/items/edit-item-form/locales/pt.ts +12 -0
- package/src/components/items/edit-item-form/locales/sl.ts +12 -0
- package/src/components/items/item-list-table/item-list-table.tsx +20 -13
- package/src/components/items/item-list-table/locales/de.ts +6 -0
- package/src/components/items/item-list-table/locales/en.ts +5 -0
- package/src/components/items/item-list-table/locales/es.ts +16 -0
- package/src/components/items/item-list-table/locales/fr.ts +16 -0
- package/src/components/items/item-list-table/locales/hr.ts +16 -0
- package/src/components/items/item-list-table/locales/it.ts +16 -0
- package/src/components/items/item-list-table/locales/nl.ts +16 -0
- package/src/components/items/item-list-table/locales/pl.ts +16 -0
- package/src/components/items/item-list-table/locales/pt.ts +16 -0
- package/src/components/items/item-list-table/locales/sl.ts +6 -0
- package/src/components/items/items.hooks.ts +7 -2
- package/src/components/payments/create-payment-form/create-payment-form.tsx +14 -0
- package/src/components/payments/create-payment-form/locales/es.ts +20 -0
- package/src/components/payments/create-payment-form/locales/fr.ts +20 -0
- package/src/components/payments/create-payment-form/locales/hr.ts +20 -0
- package/src/components/payments/create-payment-form/locales/it.ts +20 -0
- package/src/components/payments/create-payment-form/locales/nl.ts +20 -0
- package/src/components/payments/create-payment-form/locales/pl.ts +20 -0
- package/src/components/payments/create-payment-form/locales/pt.ts +20 -0
- package/src/components/payments/edit-payment-form/edit-payment-form.tsx +18 -2
- package/src/components/payments/edit-payment-form/locales/es.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/fr.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/hr.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/it.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/nl.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/pl.ts +20 -0
- package/src/components/payments/edit-payment-form/locales/pt.ts +20 -0
- package/src/components/payments/list/list-row-actions.tsx +14 -0
- package/src/components/payments/list/list-table.tsx +21 -2
- package/src/components/payments/list/locales/de.ts +6 -0
- package/src/components/payments/list/locales/en.ts +7 -0
- package/src/components/payments/list/locales/es.ts +25 -0
- package/src/components/payments/list/locales/fr.ts +25 -0
- package/src/components/payments/list/locales/hr.ts +25 -0
- package/src/components/payments/list/locales/it.ts +25 -0
- package/src/components/payments/list/locales/nl.ts +25 -0
- package/src/components/payments/list/locales/pl.ts +25 -0
- package/src/components/payments/list/locales/pt.ts +25 -0
- package/src/components/payments/list/locales/sl.ts +6 -0
- package/src/components/payments/payments.hooks.ts +7 -2
- package/src/components/request-logs/index.ts +1 -1
- package/src/components/table/data-table.tsx +8 -3
- package/src/components/table/filter-panel.tsx +4 -4
- package/src/components/table/hooks/use-table-query.ts +3 -0
- package/src/components/table/table-empty-state.tsx +11 -4
- package/src/components/table/table-no-results.tsx +6 -4
- package/src/components/table/types.ts +2 -2
- package/src/components/tax-reports/kir-export-form.tsx +0 -1
- package/src/components/taxes/create-tax-form/create-tax-form.tsx +14 -0
- package/src/components/taxes/create-tax-form/locales/en.ts +1 -0
- package/src/components/taxes/create-tax-form/locales/es.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/fr.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/hr.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/it.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/nl.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/pl.ts +8 -0
- package/src/components/taxes/create-tax-form/locales/pt.ts +8 -0
- package/src/components/taxes/edit-tax-form/edit-tax-form.tsx +119 -0
- package/src/components/taxes/edit-tax-form/locales/de.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/es.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/fr.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/hr.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/it.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/nl.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/pl.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/pt.ts +6 -0
- package/src/components/taxes/edit-tax-form/locales/sl.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/de.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/en.ts +6 -0
- package/src/components/taxes/tax-list-table/locales/es.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/fr.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/hr.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/it.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/nl.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/pl.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/pt.ts +17 -0
- package/src/components/taxes/tax-list-table/locales/sl.ts +6 -0
- package/src/components/taxes/tax-list-table/tax-list-table.tsx +18 -0
- package/src/components/taxes/taxes.hooks.ts +12 -7
- package/src/components/ui/tooltip.tsx +2 -2
- package/src/components/wl-subscription/locked-feature.tsx +1 -0
- package/src/components/wl-subscription/upgrade-modal.tsx +1 -0
- package/src/generated/schemas/acceptentityinvitation_body.ts +17 -0
- package/src/generated/schemas/addentityuser_body.ts +18 -0
- package/src/generated/schemas/advanceinvoice.ts +184 -12
- package/src/generated/schemas/creditnote.ts +96 -127
- package/src/generated/schemas/customadvanceinvoice.ts +246 -0
- package/src/generated/schemas/customcreditnote.ts +237 -0
- package/src/generated/schemas/customer.ts +26 -0
- package/src/generated/schemas/customestimate.ts +181 -0
- package/src/generated/schemas/custominvoice.ts +237 -0
- package/src/generated/schemas/entity.ts +66 -7
- package/src/generated/schemas/entityuserrole.ts +19 -0
- package/src/generated/schemas/estimate.ts +149 -1
- package/src/generated/schemas/finasettings.ts +25 -0
- package/src/generated/schemas/furssettings.ts +1 -2
- package/src/generated/schemas/index.ts +24 -5
- package/src/generated/schemas/invoice.ts +224 -22
- package/src/generated/schemas/me.ts +22 -0
- package/src/generated/schemas/registerfinamovablepremise_body.ts +26 -0
- package/src/generated/schemas/registerfinarealestatepremise_body.ts +37 -0
- package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +342 -0
- package/src/generated/schemas/rendercreditnotepreview_body.ts +344 -0
- package/src/generated/schemas/renderestimatepreview_body.ts +284 -0
- package/src/generated/schemas/renderinvoicepreview_body.ts +344 -0
- package/src/generated/schemas/senddocument_body.ts +23 -0
- package/src/generated/schemas/sendemail_body.ts +8 -10
- package/src/generated/schemas/stripeappconnect_body.ts +18 -0
- package/src/generated/schemas/stripeappcreateinvoice_body.ts +20 -0
- package/src/generated/schemas/stripeappupdatesettings_body.ts +26 -0
- package/src/generated/schemas/webhook.ts +143 -0
- package/src/hooks/create-resource-hooks.ts +85 -1
- package/src/hooks/use-next-document-number.ts +1 -1
- package/src/hooks/use-resource-mutation.ts +4 -3
- package/src/lib/browser-cookies.ts +12 -1
- package/src/lib/cookies.ts +2 -2
- package/src/lib/translation.ts +1 -1
- package/src/providers/entities-provider.tsx +84 -39
- package/src/providers/sdk-provider.tsx +7 -3
- package/src/providers/white-label-provider.tsx +5 -2
- package/src/providers/wl-subscription-provider.tsx +1 -0
|
@@ -12,5 +12,14 @@ export default {
|
|
|
12
12
|
"Create new customer": "Ustvari novo stranko",
|
|
13
13
|
"Copy customer ID": "Kopiraj ID stranke",
|
|
14
14
|
"View customer": "Prikaži stranko",
|
|
15
|
+
"Edit customer": "Uredi stranko",
|
|
16
|
+
"Delete customer": "Izbriši stranko",
|
|
17
|
+
"Deleting...": "Brišem...",
|
|
15
18
|
"Open menu": "Odpri meni",
|
|
19
|
+
// Empty state translations
|
|
20
|
+
"Your list is empty": "Vaš seznam strank je prazen",
|
|
21
|
+
"Get started by creating your first entry": "Začnite z ustvarjanjem prve stranke",
|
|
22
|
+
"No results found": "Ni najdenih strank",
|
|
23
|
+
"Try adjusting your search criteria": "Poskusite prilagoditi iskalne kriterije",
|
|
24
|
+
"Clear search": "Počisti iskanje",
|
|
16
25
|
} as const;
|
|
@@ -21,7 +21,7 @@ describe("customers.hooks", () => {
|
|
|
21
21
|
data: [
|
|
22
22
|
{ id: "customer-1", name: "John Doe", email: "john@example.com" },
|
|
23
23
|
{ id: "customer-2", name: "John Smith", email: "johnsmith@example.com" },
|
|
24
|
-
],
|
|
24
|
+
] as any,
|
|
25
25
|
pagination: { total: 2 },
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -88,7 +88,7 @@ describe("customers.hooks", () => {
|
|
|
88
88
|
id: `customer-${i}`,
|
|
89
89
|
name: `Test Customer ${i}`,
|
|
90
90
|
email: `test${i}@example.com`,
|
|
91
|
-
})),
|
|
91
|
+
})) as any,
|
|
92
92
|
pagination: { total: 10 },
|
|
93
93
|
});
|
|
94
94
|
|
|
@@ -110,7 +110,7 @@ describe("customers.hooks", () => {
|
|
|
110
110
|
const entityId = "entity-123";
|
|
111
111
|
|
|
112
112
|
sdk.customers.list.mockResolvedValue({
|
|
113
|
-
data: [{ id: "customer-1", name: "Test", email: "test@example.com" }],
|
|
113
|
+
data: [{ id: "customer-1", name: "Test", email: "test@example.com" }] as any,
|
|
114
114
|
pagination: { total: 1 },
|
|
115
115
|
});
|
|
116
116
|
|
|
@@ -162,13 +162,13 @@ describe("customers.hooks", () => {
|
|
|
162
162
|
const { wrapper } = createTestSetup({ sdk });
|
|
163
163
|
const entityId = "entity-123";
|
|
164
164
|
|
|
165
|
-
const mockCustomers = [
|
|
165
|
+
const mockCustomers: any[] = [
|
|
166
166
|
{ id: "customer-1", name: "Recent Customer 1", email: "recent1@example.com", created_at: "2024-01-15" },
|
|
167
167
|
{ id: "customer-2", name: "Recent Customer 2", email: "recent2@example.com", created_at: "2024-01-14" },
|
|
168
168
|
];
|
|
169
169
|
|
|
170
170
|
sdk.customers.list.mockResolvedValueOnce({
|
|
171
|
-
data: mockCustomers,
|
|
171
|
+
data: mockCustomers as any,
|
|
172
172
|
pagination: { total: 2 },
|
|
173
173
|
});
|
|
174
174
|
|
|
@@ -198,7 +198,7 @@ describe("customers.hooks", () => {
|
|
|
198
198
|
name: `Customer ${i}`,
|
|
199
199
|
email: `customer${i}@example.com`,
|
|
200
200
|
created_at: new Date(Date.now() - i * 1000).toISOString(),
|
|
201
|
-
})),
|
|
201
|
+
})) as any,
|
|
202
202
|
pagination: { total: 5 },
|
|
203
203
|
});
|
|
204
204
|
|
|
@@ -255,7 +255,7 @@ describe("customers.hooks", () => {
|
|
|
255
255
|
const entityId = "entity-123";
|
|
256
256
|
|
|
257
257
|
sdk.customers.list.mockResolvedValue({
|
|
258
|
-
data: [{ id: "customer-1", name: "Test", email: "test@example.com", created_at: "" }],
|
|
258
|
+
data: [{ id: "customer-1", name: "Test", email: "test@example.com", created_at: "" }] as any,
|
|
259
259
|
pagination: { total: 1 },
|
|
260
260
|
});
|
|
261
261
|
|
|
@@ -281,7 +281,7 @@ describe("customers.hooks", () => {
|
|
|
281
281
|
const { wrapper, queryClient } = createTestSetup({ sdk });
|
|
282
282
|
|
|
283
283
|
sdk.customers.list.mockResolvedValue({
|
|
284
|
-
data: [{ id: "customer-1", name: "Test", email: "test@example.com", created_at: "" }],
|
|
284
|
+
data: [{ id: "customer-1", name: "Test", email: "test@example.com", created_at: "" }] as any,
|
|
285
285
|
pagination: { total: 1 },
|
|
286
286
|
});
|
|
287
287
|
|
|
@@ -54,4 +54,9 @@ export const {
|
|
|
54
54
|
useCreateResource: useCreateCustomer,
|
|
55
55
|
useUpdateResource: useUpdateCustomer,
|
|
56
56
|
useDeleteResource: useDeleteCustomer,
|
|
57
|
-
|
|
57
|
+
useRestoreResource: useRestoreCustomer,
|
|
58
|
+
usePermanentDeleteResource: usePermanentDeleteCustomer,
|
|
59
|
+
} = createResourceHooks<Customer, CreateCustomerBody>("customers", CUSTOMERS_CACHE_KEY, {
|
|
60
|
+
restoreMethodName: "restoreCustomer",
|
|
61
|
+
permanentDeleteMethodName: "permanentDeleteCustomer",
|
|
62
|
+
});
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
2
|
+
import type { CompanyRegistryResult, Customer } from "@spaceinvoices/js-sdk";
|
|
3
|
+
import { useForm } from "react-hook-form";
|
|
4
|
+
import { CompanyRegistryAutocomplete } from "@/ui/components/company-registry";
|
|
5
|
+
import { FormInput } from "@/ui/components/form";
|
|
6
|
+
import { Form } from "@/ui/components/ui/form";
|
|
7
|
+
import type { CreateCustomerSchema } from "@/ui/generated/schemas";
|
|
8
|
+
import { createCustomerSchema } from "@/ui/generated/schemas";
|
|
9
|
+
import type { ComponentTranslationProps } from "@/ui/lib/translation";
|
|
10
|
+
import { createTranslation } from "@/ui/lib/translation";
|
|
11
|
+
import { useUpdateCustomer } from "../customers.hooks";
|
|
12
|
+
import de from "./locales/de";
|
|
13
|
+
import es from "./locales/es";
|
|
14
|
+
import fr from "./locales/fr";
|
|
15
|
+
import hr from "./locales/hr";
|
|
16
|
+
import it from "./locales/it";
|
|
17
|
+
import nl from "./locales/nl";
|
|
18
|
+
import pl from "./locales/pl";
|
|
19
|
+
import pt from "./locales/pt";
|
|
20
|
+
import sl from "./locales/sl";
|
|
21
|
+
|
|
22
|
+
const translations = {
|
|
23
|
+
sl,
|
|
24
|
+
de,
|
|
25
|
+
it,
|
|
26
|
+
fr,
|
|
27
|
+
es,
|
|
28
|
+
pt,
|
|
29
|
+
nl,
|
|
30
|
+
pl,
|
|
31
|
+
hr,
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
type EditCustomerFormProps = {
|
|
35
|
+
entityId: string;
|
|
36
|
+
customer: Customer;
|
|
37
|
+
/**
|
|
38
|
+
* Entity's ISO 3166-1 alpha-2 country code (e.g., "SI", "AT")
|
|
39
|
+
* Used to enable company registry autocomplete for supported countries
|
|
40
|
+
*/
|
|
41
|
+
entityCountryCode?: string;
|
|
42
|
+
onSuccess?: (customer: Customer) => void;
|
|
43
|
+
onError?: (error: Error) => void;
|
|
44
|
+
renderSubmitButton?: (props: { isSubmitting: boolean; submit: () => void }) => React.ReactNode;
|
|
45
|
+
} & ComponentTranslationProps;
|
|
46
|
+
|
|
47
|
+
export default function EditCustomerForm({
|
|
48
|
+
entityId,
|
|
49
|
+
customer,
|
|
50
|
+
entityCountryCode,
|
|
51
|
+
onSuccess,
|
|
52
|
+
onError,
|
|
53
|
+
renderSubmitButton,
|
|
54
|
+
...i18nProps
|
|
55
|
+
}: EditCustomerFormProps) {
|
|
56
|
+
const t = createTranslation({
|
|
57
|
+
...i18nProps,
|
|
58
|
+
translations,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const handleCompanySelect = (company: CompanyRegistryResult) => {
|
|
62
|
+
form.setValue("name", company.name);
|
|
63
|
+
if (company.address) form.setValue("address", company.address);
|
|
64
|
+
if (company.post_code) form.setValue("post_code", company.post_code);
|
|
65
|
+
if (company.city) form.setValue("city", company.city);
|
|
66
|
+
if (company.tax_number) form.setValue("tax_number", company.tax_number);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const form = useForm<CreateCustomerSchema>({
|
|
70
|
+
resolver: zodResolver(createCustomerSchema),
|
|
71
|
+
defaultValues: {
|
|
72
|
+
name: customer.name ?? "",
|
|
73
|
+
address: customer.address ?? "",
|
|
74
|
+
post_code: customer.post_code ?? "",
|
|
75
|
+
city: customer.city ?? "",
|
|
76
|
+
state: customer.state ?? "",
|
|
77
|
+
country: customer.country ?? "",
|
|
78
|
+
tax_number: customer.tax_number ?? "",
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const { mutate: updateCustomer, isPending } = useUpdateCustomer({
|
|
83
|
+
entityId,
|
|
84
|
+
onSuccess: (updatedCustomer, _variables, _context) => {
|
|
85
|
+
onSuccess?.(updatedCustomer);
|
|
86
|
+
},
|
|
87
|
+
onError: (error, _variables, _context) => {
|
|
88
|
+
form.setError("root", {
|
|
89
|
+
type: "submit",
|
|
90
|
+
message: t("There was an error updating the customer"),
|
|
91
|
+
});
|
|
92
|
+
onError?.(error);
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const onSubmit = async (values: CreateCustomerSchema) => {
|
|
97
|
+
updateCustomer({
|
|
98
|
+
id: customer.id,
|
|
99
|
+
data: values,
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const handleSubmitClick = () => {
|
|
104
|
+
form.handleSubmit(onSubmit)();
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
return (
|
|
108
|
+
<Form {...form}>
|
|
109
|
+
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
|
|
110
|
+
{entityCountryCode && (
|
|
111
|
+
<div className="mb-4 rounded-lg border bg-muted/30 p-4">
|
|
112
|
+
<CompanyRegistryAutocomplete
|
|
113
|
+
countryCode={entityCountryCode}
|
|
114
|
+
onSelect={handleCompanySelect}
|
|
115
|
+
placeholder={t("Search by company name or tax number")}
|
|
116
|
+
/>
|
|
117
|
+
</div>
|
|
118
|
+
)}
|
|
119
|
+
|
|
120
|
+
<FormInput control={form.control} name="name" label={t("Name")} placeholder={t("Enter name")} />
|
|
121
|
+
|
|
122
|
+
<FormInput control={form.control} name="address" label={t("Address")} placeholder={t("Enter address")} />
|
|
123
|
+
|
|
124
|
+
<div className="grid grid-cols-2 gap-4">
|
|
125
|
+
<FormInput control={form.control} name="post_code" label={t("Post Code")} />
|
|
126
|
+
<FormInput control={form.control} name="city" label={t("City")} />
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<div className="grid grid-cols-2 gap-4">
|
|
130
|
+
<FormInput control={form.control} name="state" label={t("State")} />
|
|
131
|
+
<FormInput control={form.control} name="country" label={t("Country")} />
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
<FormInput control={form.control} name="tax_number" label={t("Tax Number")} />
|
|
135
|
+
|
|
136
|
+
{renderSubmitButton?.({
|
|
137
|
+
isSubmitting: isPending || form.formState.isSubmitting,
|
|
138
|
+
submit: handleSubmitClick,
|
|
139
|
+
})}
|
|
140
|
+
</form>
|
|
141
|
+
</Form>
|
|
142
|
+
);
|
|
143
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Name",
|
|
3
|
+
"Enter name": "Namen eingeben",
|
|
4
|
+
Address: "Adresse",
|
|
5
|
+
"Enter address": "Adresse eingeben",
|
|
6
|
+
"Post Code": "Postleitzahl",
|
|
7
|
+
City: "Stadt",
|
|
8
|
+
State: "Bundesland",
|
|
9
|
+
Country: "Land",
|
|
10
|
+
"Tax Number": "Steuernummer",
|
|
11
|
+
"Search by company name or tax number": "Suche nach Firmenname oder Steuernummer",
|
|
12
|
+
"There was an error updating the customer": "Beim Aktualisieren des Kunden ist ein Fehler aufgetreten",
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nombre",
|
|
3
|
+
"Enter name": "Ingrese el nombre del cliente",
|
|
4
|
+
Address: "Direccion",
|
|
5
|
+
"Enter address": "Ingrese la direccion",
|
|
6
|
+
"Post Code": "Codigo postal",
|
|
7
|
+
City: "Ciudad",
|
|
8
|
+
State: "Estado",
|
|
9
|
+
Country: "Pais",
|
|
10
|
+
"Tax Number": "Numero fiscal",
|
|
11
|
+
"Search by company name or tax number": "Buscar por nombre de empresa o numero fiscal",
|
|
12
|
+
"There was an error updating the customer": "Hubo un error al actualizar el cliente",
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nom",
|
|
3
|
+
"Enter name": "Entrez le nom du client",
|
|
4
|
+
Address: "Adresse",
|
|
5
|
+
"Enter address": "Entrez l'adresse",
|
|
6
|
+
"Post Code": "Code postal",
|
|
7
|
+
City: "Ville",
|
|
8
|
+
State: "Region",
|
|
9
|
+
Country: "Pays",
|
|
10
|
+
"Tax Number": "Numero de TVA",
|
|
11
|
+
"Search by company name or tax number": "Rechercher par nom d'entreprise ou numero de TVA",
|
|
12
|
+
"There was an error updating the customer": "Une erreur est survenue lors de la mise a jour du client",
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Naziv",
|
|
3
|
+
"Enter name": "Unesite naziv kupca",
|
|
4
|
+
Address: "Adresa",
|
|
5
|
+
"Enter address": "Unesite adresu",
|
|
6
|
+
"Post Code": "Postanski broj",
|
|
7
|
+
City: "Grad",
|
|
8
|
+
State: "Zupanija",
|
|
9
|
+
Country: "Drzava",
|
|
10
|
+
"Tax Number": "OIB",
|
|
11
|
+
"Search by company name or tax number": "Pretrazi po nazivu tvrtke ili OIB-u",
|
|
12
|
+
"There was an error updating the customer": "Doslo je do greske pri azuriranju kupca",
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nome",
|
|
3
|
+
"Enter name": "Inserisci il nome del cliente",
|
|
4
|
+
Address: "Indirizzo",
|
|
5
|
+
"Enter address": "Inserisci l'indirizzo",
|
|
6
|
+
"Post Code": "CAP",
|
|
7
|
+
City: "Citta",
|
|
8
|
+
State: "Regione",
|
|
9
|
+
Country: "Paese",
|
|
10
|
+
"Tax Number": "Partita IVA",
|
|
11
|
+
"Search by company name or tax number": "Cerca per nome azienda o partita IVA",
|
|
12
|
+
"There was an error updating the customer": "Si e verificato un errore durante l'aggiornamento del cliente",
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Naam",
|
|
3
|
+
"Enter name": "Voer de naam van de klant in",
|
|
4
|
+
Address: "Adres",
|
|
5
|
+
"Enter address": "Voer het adres in",
|
|
6
|
+
"Post Code": "Postcode",
|
|
7
|
+
City: "Stad",
|
|
8
|
+
State: "Provincie",
|
|
9
|
+
Country: "Land",
|
|
10
|
+
"Tax Number": "Btw-nummer",
|
|
11
|
+
"Search by company name or tax number": "Zoek op bedrijfsnaam of btw-nummer",
|
|
12
|
+
"There was an error updating the customer": "Er is een fout opgetreden bij het bijwerken van de klant",
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nazwa",
|
|
3
|
+
"Enter name": "Wprowadz nazwe klienta",
|
|
4
|
+
Address: "Adres",
|
|
5
|
+
"Enter address": "Wprowadz adres",
|
|
6
|
+
"Post Code": "Kod pocztowy",
|
|
7
|
+
City: "Miasto",
|
|
8
|
+
State: "Wojewodztwo",
|
|
9
|
+
Country: "Kraj",
|
|
10
|
+
"Tax Number": "Numer podatkowy",
|
|
11
|
+
"Search by company name or tax number": "Szukaj po nazwie firmy lub numerze podatkowym",
|
|
12
|
+
"There was an error updating the customer": "Wystapil blad podczas aktualizacji klienta",
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Nome",
|
|
3
|
+
"Enter name": "Introduza o nome do cliente",
|
|
4
|
+
Address: "Morada",
|
|
5
|
+
"Enter address": "Introduza a morada",
|
|
6
|
+
"Post Code": "Codigo postal",
|
|
7
|
+
City: "Cidade",
|
|
8
|
+
State: "Distrito",
|
|
9
|
+
Country: "Pais",
|
|
10
|
+
"Tax Number": "Numero de contribuinte",
|
|
11
|
+
"Search by company name or tax number": "Pesquisar por nome da empresa ou numero de contribuinte",
|
|
12
|
+
"There was an error updating the customer": "Ocorreu um erro ao atualizar o cliente",
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Name: "Ime",
|
|
3
|
+
"Enter name": "Vnesite ime stranke",
|
|
4
|
+
Address: "Naslov",
|
|
5
|
+
"Enter address": "Vnesite naslov",
|
|
6
|
+
"Post Code": "Poštna številka",
|
|
7
|
+
City: "Mesto",
|
|
8
|
+
State: "Regija",
|
|
9
|
+
Country: "Država",
|
|
10
|
+
"Tax Number": "Davčna številka",
|
|
11
|
+
"Search by company name or tax number": "Iskanje po imenu podjetja ali davčni številki",
|
|
12
|
+
"There was an error updating the customer": "Prišlo je do napake pri posodabljanju stranke",
|
|
13
|
+
} as const;
|
|
@@ -3,3 +3,4 @@ export { CustomerAutocomplete } from "./customer-autocomplete";
|
|
|
3
3
|
export { CustomerCombobox } from "./customer-combobox";
|
|
4
4
|
export * from "./customer-list-table";
|
|
5
5
|
export * from "./customers.hooks";
|
|
6
|
+
export { default as EditCustomerForm } from "./edit-customer-form/edit-customer-form";
|
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
import { Card, CardContent, CardHeader, CardTitle } from "@/ui/components/ui/card";
|
|
4
4
|
import { createTranslation } from "@/ui/lib/translation";
|
|
5
5
|
import { LoadingCard } from "../loading-card";
|
|
6
|
+
import de from "./locales/de";
|
|
7
|
+
import es from "./locales/es";
|
|
8
|
+
import fr from "./locales/fr";
|
|
9
|
+
import hr from "./locales/hr";
|
|
10
|
+
import it from "./locales/it";
|
|
11
|
+
import nl from "./locales/nl";
|
|
12
|
+
import pl from "./locales/pl";
|
|
13
|
+
import pt from "./locales/pt";
|
|
6
14
|
import sl from "./locales/sl";
|
|
7
15
|
import { useCollectionRateData } from "./use-collection-rate";
|
|
8
16
|
|
|
9
|
-
const translations = { sl } as const;
|
|
17
|
+
const translations = { de, es, fr, hr, it, nl, pl, pt, sl } as const;
|
|
10
18
|
|
|
11
19
|
type BaseProps = {
|
|
12
20
|
locale?: string;
|
|
@@ -13,10 +13,18 @@ import {
|
|
|
13
13
|
import { createTranslation } from "@/ui/lib/translation";
|
|
14
14
|
import { ChartEmptyState } from "../chart-empty-state";
|
|
15
15
|
import { LoadingCard } from "../loading-card";
|
|
16
|
+
import de from "./locales/de";
|
|
17
|
+
import es from "./locales/es";
|
|
18
|
+
import fr from "./locales/fr";
|
|
19
|
+
import hr from "./locales/hr";
|
|
20
|
+
import it from "./locales/it";
|
|
21
|
+
import nl from "./locales/nl";
|
|
22
|
+
import pl from "./locales/pl";
|
|
23
|
+
import pt from "./locales/pt";
|
|
16
24
|
import sl from "./locales/sl";
|
|
17
25
|
import { useInvoiceStatusData } from "./use-invoice-status";
|
|
18
26
|
|
|
19
|
-
const translations = { sl } as const;
|
|
27
|
+
const translations = { de, es, fr, hr, it, nl, pl, pt, sl } as const;
|
|
20
28
|
|
|
21
29
|
export type InvoiceStatusChartData = {
|
|
22
30
|
paid: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Invoice Status": "Rechnungsstatus",
|
|
3
|
+
"Breakdown of invoices by payment status": "Aufschlüsselung der Rechnungen nach Zahlungsstatus",
|
|
4
|
+
Paid: "Bezahlt",
|
|
5
|
+
Pending: "Ausstehend",
|
|
6
|
+
Overdue: "Überfällig",
|
|
7
|
+
Voided: "Storniert",
|
|
8
|
+
"No data available": "Keine Daten verfügbar",
|
|
9
|
+
} as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Invoice Status": "Estado de facturas",
|
|
3
|
+
"Breakdown of invoices by payment status": "Desglose de facturas por estado de pago",
|
|
4
|
+
Paid: "Pagado",
|
|
5
|
+
Pending: "Pendiente",
|
|
6
|
+
Overdue: "Vencido",
|
|
7
|
+
Voided: "Anulado",
|
|
8
|
+
"No data available": "Sin datos disponibles",
|
|
9
|
+
} as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Invoice Status": "Statut des factures",
|
|
3
|
+
"Breakdown of invoices by payment status": "Repartition des factures par statut de paiement",
|
|
4
|
+
Paid: "Paye",
|
|
5
|
+
Pending: "En attente",
|
|
6
|
+
Overdue: "En retard",
|
|
7
|
+
Voided: "Annule",
|
|
8
|
+
"No data available": "Aucune donnee disponible",
|
|
9
|
+
} as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Invoice Status": "Status racuna",
|
|
3
|
+
"Breakdown of invoices by payment status": "Raspodjela racuna prema statusu placanja",
|
|
4
|
+
Paid: "Placeno",
|
|
5
|
+
Pending: "Na cekanju",
|
|
6
|
+
Overdue: "Dospjelo",
|
|
7
|
+
Voided: "Stornirano",
|
|
8
|
+
"No data available": "Nema dostupnih podataka",
|
|
9
|
+
} as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Invoice Status": "Stato fatture",
|
|
3
|
+
"Breakdown of invoices by payment status": "Ripartizione delle fatture per stato di pagamento",
|
|
4
|
+
Paid: "Pagato",
|
|
5
|
+
Pending: "In attesa",
|
|
6
|
+
Overdue: "Scaduto",
|
|
7
|
+
Voided: "Annullato",
|
|
8
|
+
"No data available": "Nessun dato disponibile",
|
|
9
|
+
} as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Invoice Status": "Factuurstatus",
|
|
3
|
+
"Breakdown of invoices by payment status": "Verdeling van facturen per betalingsstatus",
|
|
4
|
+
Paid: "Betaald",
|
|
5
|
+
Pending: "In afwachting",
|
|
6
|
+
Overdue: "Achterstallig",
|
|
7
|
+
Voided: "Nietig verklaard",
|
|
8
|
+
"No data available": "Geen gegevens beschikbaar",
|
|
9
|
+
} as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Invoice Status": "Status faktur",
|
|
3
|
+
"Breakdown of invoices by payment status": "Podzial faktur wedlug statusu platnosci",
|
|
4
|
+
Paid: "Oplacone",
|
|
5
|
+
Pending: "Oczekujace",
|
|
6
|
+
Overdue: "Zaległe",
|
|
7
|
+
Voided: "Anulowane",
|
|
8
|
+
"No data available": "Brak dostepnych danych",
|
|
9
|
+
} as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Invoice Status": "Estado das faturas",
|
|
3
|
+
"Breakdown of invoices by payment status": "Distribuicao das faturas por estado de pagamento",
|
|
4
|
+
Paid: "Pago",
|
|
5
|
+
Pending: "Pendente",
|
|
6
|
+
Overdue: "Vencido",
|
|
7
|
+
Voided: "Anulado",
|
|
8
|
+
"No data available": "Sem dados disponiveis",
|
|
9
|
+
} as const;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Payment Methods": "Zahlungsmethoden",
|
|
3
|
+
"Breakdown of payments by method": "Aufschlüsselung der Zahlungen nach Methode",
|
|
4
|
+
Cash: "Bargeld",
|
|
5
|
+
"Bank Transfer": "Banküberweisung",
|
|
6
|
+
Card: "Karte",
|
|
7
|
+
Check: "Scheck",
|
|
8
|
+
"Credit Note": "Gutschrift",
|
|
9
|
+
Advance: "Vorauszahlung",
|
|
10
|
+
Other: "Andere",
|
|
11
|
+
"No data available": "Keine Daten verfügbar",
|
|
12
|
+
} as const;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Payment Methods": "Metodos de pago",
|
|
3
|
+
"Breakdown of payments by method": "Desglose de pagos por metodo",
|
|
4
|
+
Cash: "Efectivo",
|
|
5
|
+
"Bank Transfer": "Transferencia bancaria",
|
|
6
|
+
Card: "Tarjeta",
|
|
7
|
+
Check: "Cheque",
|
|
8
|
+
"Credit Note": "Nota de credito",
|
|
9
|
+
Advance: "Anticipo",
|
|
10
|
+
Other: "Otro",
|
|
11
|
+
"No data available": "Sin datos disponibles",
|
|
12
|
+
} as const;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Payment Methods": "Modes de paiement",
|
|
3
|
+
"Breakdown of payments by method": "Repartition des paiements par mode",
|
|
4
|
+
Cash: "Especes",
|
|
5
|
+
"Bank Transfer": "Virement bancaire",
|
|
6
|
+
Card: "Carte",
|
|
7
|
+
Check: "Cheque",
|
|
8
|
+
"Credit Note": "Avoir",
|
|
9
|
+
Advance: "Acompte",
|
|
10
|
+
Other: "Autre",
|
|
11
|
+
"No data available": "Aucune donnee disponible",
|
|
12
|
+
} as const;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Payment Methods": "Nacini placanja",
|
|
3
|
+
"Breakdown of payments by method": "Raspodjela placanja prema nacinu",
|
|
4
|
+
Cash: "Gotovina",
|
|
5
|
+
"Bank Transfer": "Bankovni prijenos",
|
|
6
|
+
Card: "Kartica",
|
|
7
|
+
Check: "Cek",
|
|
8
|
+
"Credit Note": "Odobrenje",
|
|
9
|
+
Advance: "Avans",
|
|
10
|
+
Other: "Ostalo",
|
|
11
|
+
"No data available": "Nema dostupnih podataka",
|
|
12
|
+
} as const;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Payment Methods": "Metodi di pagamento",
|
|
3
|
+
"Breakdown of payments by method": "Ripartizione dei pagamenti per metodo",
|
|
4
|
+
Cash: "Contanti",
|
|
5
|
+
"Bank Transfer": "Bonifico bancario",
|
|
6
|
+
Card: "Carta",
|
|
7
|
+
Check: "Assegno",
|
|
8
|
+
"Credit Note": "Nota di credito",
|
|
9
|
+
Advance: "Anticipo",
|
|
10
|
+
Other: "Altro",
|
|
11
|
+
"No data available": "Nessun dato disponibile",
|
|
12
|
+
} as const;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Payment Methods": "Betaalmethoden",
|
|
3
|
+
"Breakdown of payments by method": "Verdeling van betalingen per methode",
|
|
4
|
+
Cash: "Contant",
|
|
5
|
+
"Bank Transfer": "Bankoverschrijving",
|
|
6
|
+
Card: "Kaart",
|
|
7
|
+
Check: "Cheque",
|
|
8
|
+
"Credit Note": "Creditnota",
|
|
9
|
+
Advance: "Voorschot",
|
|
10
|
+
Other: "Overig",
|
|
11
|
+
"No data available": "Geen gegevens beschikbaar",
|
|
12
|
+
} as const;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"Payment Methods": "Metody platnosci",
|
|
3
|
+
"Breakdown of payments by method": "Podzial platnosci wedlug metody",
|
|
4
|
+
Cash: "Gotowka",
|
|
5
|
+
"Bank Transfer": "Przelew bankowy",
|
|
6
|
+
Card: "Karta",
|
|
7
|
+
Check: "Czek",
|
|
8
|
+
"Credit Note": "Nota kredytowa",
|
|
9
|
+
Advance: "Zaliczka",
|
|
10
|
+
Other: "Inne",
|
|
11
|
+
"No data available": "Brak dostepnych danych",
|
|
12
|
+
} as const;
|