@spaceinvoices/react-ui 0.1.1 → 0.4.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 +86 -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/advance-invoices.hooks.ts +2 -2
- 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/documents.hooks.ts +5 -48
- package/src/components/documents/shared/document-preview-display.tsx +12 -1
- package/src/components/documents/view/document-actions-bar.tsx +28 -13
- package/src/components/documents/view/document-activities-list.tsx +166 -0
- package/src/components/documents/view/document-details-card.tsx +14 -7
- package/src/components/documents/view/document-payments-list.tsx +8 -1
- package/src/components/documents/view/index.ts +1 -0
- package/src/components/documents/view/locales/de.ts +32 -0
- package/src/components/documents/view/locales/es.ts +115 -0
- package/src/components/documents/view/locales/fr.ts +115 -0
- package/src/components/documents/view/locales/hr.ts +115 -0
- package/src/components/documents/view/locales/it.ts +115 -0
- package/src/components/documents/view/locales/nl.ts +116 -0
- package/src/components/documents/view/locales/pl.ts +115 -0
- package/src/components/documents/view/locales/pt.ts +115 -0
- package/src/components/documents/view/locales/sl.ts +32 -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 +148 -0
- package/src/components/entities/fina-settings-form/locales/en.ts +145 -0
- package/src/components/entities/fina-settings-form/locales/es.ts +146 -0
- package/src/components/entities/fina-settings-form/locales/fr.ts +145 -0
- package/src/components/entities/fina-settings-form/locales/hr.ts +147 -0
- package/src/components/entities/fina-settings-form/locales/it.ts +147 -0
- package/src/components/entities/fina-settings-form/locales/nl.ts +147 -0
- package/src/components/entities/fina-settings-form/locales/pl.ts +145 -0
- package/src/components/entities/fina-settings-form/locales/pt.ts +147 -0
- package/src/components/entities/fina-settings-form/locales/sl.ts +147 -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 +24 -9
- package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +15 -11
- package/src/components/entities/furs-settings-form/locales/de.ts +54 -88
- package/src/components/entities/furs-settings-form/locales/en.ts +15 -0
- package/src/components/entities/furs-settings-form/locales/es.ts +198 -0
- package/src/components/entities/furs-settings-form/locales/fr.ts +198 -0
- package/src/components/entities/furs-settings-form/locales/hr.ts +197 -0
- package/src/components/entities/furs-settings-form/locales/it.ts +198 -0
- package/src/components/entities/furs-settings-form/locales/nl.ts +197 -0
- package/src/components/entities/furs-settings-form/locales/pl.ts +196 -0
- package/src/components/entities/furs-settings-form/locales/pt.ts +197 -0
- package/src/components/entities/furs-settings-form/locales/sl.ts +16 -0
- package/src/components/entities/furs-settings-form/sections/certificate-settings-section.tsx +19 -4
- package/src/components/entities/furs-settings-form/sections/general-settings-section.tsx +121 -1
- 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/index.ts +1 -1
- 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 +22 -14
- 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/fiscalization-status-card.tsx +121 -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 +99 -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-duplicate-document.ts +19 -11
- 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 +105 -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
- package/src/components/invoices/view/furs-info-display.tsx +0 -213
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Recipient: "Destinatario",
|
|
3
|
+
Name: "Nome",
|
|
4
|
+
Details: "Detalhes",
|
|
5
|
+
Number: "Numero",
|
|
6
|
+
Date: "Data",
|
|
7
|
+
"Pick a date": "Selecionar data",
|
|
8
|
+
"Due Date": "Data de vencimento",
|
|
9
|
+
"Valid Until": "Valido ate",
|
|
10
|
+
Items: "Itens",
|
|
11
|
+
"Add item": "Adicionar item",
|
|
12
|
+
Save: "Guardar",
|
|
13
|
+
"Save as Draft": "Guardar como rascunho",
|
|
14
|
+
Quantity: "Quantidade",
|
|
15
|
+
Price: "Preco",
|
|
16
|
+
Unit: "Unidade",
|
|
17
|
+
Discount: "Desconto",
|
|
18
|
+
Tax: "Imposto",
|
|
19
|
+
"Tax rate": "Taxa de imposto",
|
|
20
|
+
"Add tax": "Adicionar imposto",
|
|
21
|
+
"Select tax...": "Selecionar imposto...",
|
|
22
|
+
"Loading...": "A carregar...",
|
|
23
|
+
"No taxes found": "Nenhum imposto encontrado",
|
|
24
|
+
"Add new tax...": "Adicionar novo imposto...",
|
|
25
|
+
Description: "Descricao",
|
|
26
|
+
"Mark as Paid": "Marcar como pago",
|
|
27
|
+
Paid: "Pago",
|
|
28
|
+
"Credit note will be marked as fully paid upon creation":
|
|
29
|
+
"A nota de credito sera marcada como totalmente paga ao ser criada",
|
|
30
|
+
"Payment Type": "Tipo de pagamento",
|
|
31
|
+
"Select payment type": "Selecione o tipo de pagamento",
|
|
32
|
+
Cash: "Dinheiro",
|
|
33
|
+
"Bank Transfer": "Transferencia bancaria",
|
|
34
|
+
Card: "Cartao",
|
|
35
|
+
Check: "Cheque",
|
|
36
|
+
Other: "Outro",
|
|
37
|
+
// Note field
|
|
38
|
+
Note: "Nota",
|
|
39
|
+
"Insert variable": "Inserir variavel",
|
|
40
|
+
"Add payment instructions, terms, or other notes...": "Adicione instrucoes de pagamento, termos ou outras notas...",
|
|
41
|
+
// Payment terms field
|
|
42
|
+
"Payment Terms": "Condicoes de pagamento",
|
|
43
|
+
"Add payment terms...": "Adicione condicoes de pagamento...",
|
|
44
|
+
// Recipient fields
|
|
45
|
+
"Search or create customer...": "Pesquisar ou criar cliente...",
|
|
46
|
+
Clear: "Limpar",
|
|
47
|
+
Address: "Morada",
|
|
48
|
+
"Address 2": "Morada 2",
|
|
49
|
+
"Post Code": "Codigo postal",
|
|
50
|
+
City: "Cidade",
|
|
51
|
+
State: "Distrito",
|
|
52
|
+
Country: "Pais",
|
|
53
|
+
"Tax Number": "Numero de contribuinte",
|
|
54
|
+
// Currency
|
|
55
|
+
Currency: "Moeda",
|
|
56
|
+
"Select currency": "Selecionar moeda",
|
|
57
|
+
// Discount types
|
|
58
|
+
"Percentage discount": "Desconto percentual",
|
|
59
|
+
"Fixed amount discount": "Desconto fixo",
|
|
60
|
+
Percentage: "Percentagem",
|
|
61
|
+
"Fixed amount": "Montante fixo",
|
|
62
|
+
"Taxes disabled": "Impostos desativados",
|
|
63
|
+
// Gross price support
|
|
64
|
+
"Gross price": "Preco bruto",
|
|
65
|
+
"Net price": "Preco liquido",
|
|
66
|
+
"Gross price (tax included)": "Preco bruto (com imposto)",
|
|
67
|
+
"Net price (before tax)": "Preco liquido (sem imposto)",
|
|
68
|
+
} as const;
|
|
@@ -17,11 +17,27 @@ import { useSDK } from "@/ui/providers/sdk-provider";
|
|
|
17
17
|
|
|
18
18
|
import CreditNoteListRowActions from "./list-row-actions";
|
|
19
19
|
import de from "./locales/de";
|
|
20
|
+
import en from "./locales/en";
|
|
21
|
+
import es from "./locales/es";
|
|
22
|
+
import fr from "./locales/fr";
|
|
23
|
+
import hr from "./locales/hr";
|
|
24
|
+
import it from "./locales/it";
|
|
25
|
+
import nl from "./locales/nl";
|
|
26
|
+
import pl from "./locales/pl";
|
|
27
|
+
import pt from "./locales/pt";
|
|
20
28
|
import sl from "./locales/sl";
|
|
21
29
|
|
|
22
30
|
const translations = {
|
|
31
|
+
en,
|
|
23
32
|
sl,
|
|
24
33
|
de,
|
|
34
|
+
it,
|
|
35
|
+
fr,
|
|
36
|
+
es,
|
|
37
|
+
pt,
|
|
38
|
+
nl,
|
|
39
|
+
pl,
|
|
40
|
+
hr,
|
|
25
41
|
} as const;
|
|
26
42
|
|
|
27
43
|
type CreditNoteListTableProps = {
|
|
@@ -132,7 +148,7 @@ export default function CreditNoteListTable({
|
|
|
132
148
|
{
|
|
133
149
|
id: "status",
|
|
134
150
|
header: t("Status"),
|
|
135
|
-
cell: (creditNote) => <PaymentStatusBadge creditNote={creditNote} />,
|
|
151
|
+
cell: (creditNote) => <PaymentStatusBadge creditNote={creditNote} t={t} />,
|
|
136
152
|
},
|
|
137
153
|
{
|
|
138
154
|
id: "actions",
|
|
@@ -146,12 +162,13 @@ export default function CreditNoteListTable({
|
|
|
146
162
|
onDownloadStart={onDownloadStart}
|
|
147
163
|
onDownloadSuccess={onDownloadSuccess}
|
|
148
164
|
onDownloadError={onDownloadError}
|
|
149
|
-
{
|
|
165
|
+
t={t}
|
|
166
|
+
locale={i18nProps.locale}
|
|
150
167
|
/>
|
|
151
168
|
),
|
|
152
169
|
},
|
|
153
170
|
],
|
|
154
|
-
[t, onRowClick, onAddPayment, onDuplicate, onDownloadStart, onDownloadSuccess, onDownloadError, i18nProps],
|
|
171
|
+
[t, onRowClick, onAddPayment, onDuplicate, onDownloadStart, onDownloadSuccess, onDownloadError, i18nProps.locale],
|
|
155
172
|
);
|
|
156
173
|
|
|
157
174
|
return (
|
|
@@ -160,7 +177,7 @@ export default function CreditNoteListTable({
|
|
|
160
177
|
queryParams={queryParams}
|
|
161
178
|
resourceName="credit_note"
|
|
162
179
|
cacheKey="credit-notes"
|
|
163
|
-
createNewLink=
|
|
180
|
+
createNewLink={entityId ? `/app/${entityId}/documents/add/credit_note` : undefined}
|
|
164
181
|
onFetch={handleFetch}
|
|
165
182
|
onChangeParams={onChangeParams}
|
|
166
183
|
entityId={entityId}
|
|
@@ -172,12 +189,12 @@ export default function CreditNoteListTable({
|
|
|
172
189
|
}
|
|
173
190
|
|
|
174
191
|
/** Payment status badge for credit notes */
|
|
175
|
-
function PaymentStatusBadge({ creditNote }: { creditNote: CreditNote }) {
|
|
192
|
+
function PaymentStatusBadge({ creditNote, t }: { creditNote: CreditNote; t: (key: string) => string }) {
|
|
176
193
|
if (creditNote.paid_in_full) {
|
|
177
|
-
return <span className="rounded-full bg-green-100 px-2 py-1 text-green-800 text-xs">Paid</span>;
|
|
194
|
+
return <span className="rounded-full bg-green-100 px-2 py-1 text-green-800 text-xs">{t("Paid")}</span>;
|
|
178
195
|
}
|
|
179
196
|
if (creditNote.total_paid > 0) {
|
|
180
|
-
return <span className="rounded-full bg-yellow-100 px-2 py-1 text-xs text-yellow-800">Partial</span>;
|
|
197
|
+
return <span className="rounded-full bg-yellow-100 px-2 py-1 text-xs text-yellow-800">{t("Partial")}</span>;
|
|
181
198
|
}
|
|
182
|
-
return <span className="rounded-full bg-gray-100 px-2 py-1 text-gray-800 text-xs">Unpaid</span>;
|
|
199
|
+
return <span className="rounded-full bg-gray-100 px-2 py-1 text-gray-800 text-xs">{t("Unpaid")}</span>;
|
|
183
200
|
}
|
|
@@ -16,8 +16,6 @@ export default {
|
|
|
16
16
|
Duplicate: "Duplizieren",
|
|
17
17
|
"Failed to download PDF": "PDF-Download fehlgeschlagen",
|
|
18
18
|
"Credit Note": "Gutschrift",
|
|
19
|
-
"No credit notes found": "Keine Gutschriften gefunden",
|
|
20
|
-
"Create Credit Note": "Gutschrift erstellen",
|
|
21
19
|
// Filter translations
|
|
22
20
|
"Search...": "Suchen...",
|
|
23
21
|
Filters: "Filter",
|
|
@@ -30,4 +28,14 @@ export default {
|
|
|
30
28
|
Overdue: "Überfällig",
|
|
31
29
|
Voided: "Storniert",
|
|
32
30
|
"Created At": "Erstellt am",
|
|
31
|
+
Partial: "Teilweise bezahlt",
|
|
32
|
+
Unshare: "Freigabe aufheben",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Ihre Gutschriftenliste ist leer",
|
|
35
|
+
"Get started by creating your first entry": "Erstellen Sie Ihre erste Gutschrift",
|
|
36
|
+
"Create new": "Gutschrift erstellen",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Keine Gutschriften gefunden",
|
|
39
|
+
"Try adjusting your search criteria": "Versuchen Sie, Ihre Suchkriterien anzupassen",
|
|
40
|
+
"Clear search": "Suche zurücksetzen",
|
|
33
41
|
} as const;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Empty state translations
|
|
3
|
+
"Your list is empty": "Your credit note list is empty",
|
|
4
|
+
"Get started by creating your first entry": "Get started by creating your first credit note",
|
|
5
|
+
"Create new": "Create credit note",
|
|
6
|
+
// No results translations
|
|
7
|
+
"No results found": "No credit notes found",
|
|
8
|
+
} as const;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Draft: "Borrador",
|
|
3
|
+
Number: "Numero",
|
|
4
|
+
Customer: "Cliente",
|
|
5
|
+
Date: "Fecha",
|
|
6
|
+
Total: "Total",
|
|
7
|
+
"Total with Tax": "Total con impuestos",
|
|
8
|
+
Status: "Estado",
|
|
9
|
+
Actions: "Acciones",
|
|
10
|
+
"Open menu": "Abrir menu",
|
|
11
|
+
"Copy credit note ID": "Copiar ID de nota de credito",
|
|
12
|
+
"View credit note": "Ver nota de credito",
|
|
13
|
+
"Download PDF": "Descargar PDF",
|
|
14
|
+
"Downloading...": "Descargando...",
|
|
15
|
+
"Add Payment": "Agregar pago",
|
|
16
|
+
Duplicate: "Duplicar",
|
|
17
|
+
"Failed to download PDF": "Error al descargar el PDF",
|
|
18
|
+
"Credit Note": "Nota de credito",
|
|
19
|
+
// Filter translations
|
|
20
|
+
"Search...": "Buscar...",
|
|
21
|
+
Filters: "Filtros",
|
|
22
|
+
"Date Range": "Rango de fechas",
|
|
23
|
+
From: "Desde",
|
|
24
|
+
To: "Hasta",
|
|
25
|
+
"Clear filters": "Limpiar filtros",
|
|
26
|
+
Paid: "Pagado",
|
|
27
|
+
Unpaid: "No pagado",
|
|
28
|
+
Overdue: "Vencido",
|
|
29
|
+
Voided: "Anulado",
|
|
30
|
+
"Created At": "Creado el",
|
|
31
|
+
Partial: "Parcialmente pagado",
|
|
32
|
+
Unshare: "Dejar de compartir",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Su lista de notas de credito esta vacia",
|
|
35
|
+
"Get started by creating your first entry": "Comience creando su primera nota de credito",
|
|
36
|
+
"Create new": "Crear nota de credito",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "No se encontraron notas de credito",
|
|
39
|
+
"Try adjusting your search criteria": "Intente ajustar sus criterios de busqueda",
|
|
40
|
+
"Clear search": "Limpiar busqueda",
|
|
41
|
+
} as const;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Draft: "Brouillon",
|
|
3
|
+
Number: "Numero",
|
|
4
|
+
Customer: "Client",
|
|
5
|
+
Date: "Date",
|
|
6
|
+
Total: "Total",
|
|
7
|
+
"Total with Tax": "Total TTC",
|
|
8
|
+
Status: "Statut",
|
|
9
|
+
Actions: "Actions",
|
|
10
|
+
"Open menu": "Ouvrir le menu",
|
|
11
|
+
"Copy credit note ID": "Copier l'ID de l'avoir",
|
|
12
|
+
"View credit note": "Voir l'avoir",
|
|
13
|
+
"Download PDF": "Telecharger le PDF",
|
|
14
|
+
"Downloading...": "Telechargement...",
|
|
15
|
+
"Add Payment": "Ajouter un paiement",
|
|
16
|
+
Duplicate: "Dupliquer",
|
|
17
|
+
"Failed to download PDF": "Le telechargement du PDF a echoue",
|
|
18
|
+
"Credit Note": "Avoir",
|
|
19
|
+
// Filter translations
|
|
20
|
+
"Search...": "Rechercher...",
|
|
21
|
+
Filters: "Filtres",
|
|
22
|
+
"Date Range": "Plage de dates",
|
|
23
|
+
From: "Du",
|
|
24
|
+
To: "Au",
|
|
25
|
+
"Clear filters": "Effacer les filtres",
|
|
26
|
+
Paid: "Paye",
|
|
27
|
+
Unpaid: "Non paye",
|
|
28
|
+
Overdue: "En retard",
|
|
29
|
+
Voided: "Annule",
|
|
30
|
+
"Created At": "Cree le",
|
|
31
|
+
Partial: "Partiellement paye",
|
|
32
|
+
Unshare: "Supprimer le partage",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Votre liste d'avoirs est vide",
|
|
35
|
+
"Get started by creating your first entry": "Commencez par creer votre premier avoir",
|
|
36
|
+
"Create new": "Creer un avoir",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Aucun avoir trouve",
|
|
39
|
+
"Try adjusting your search criteria": "Essayez de modifier vos criteres de recherche",
|
|
40
|
+
"Clear search": "Effacer la recherche",
|
|
41
|
+
} as const;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Draft: "Skica",
|
|
3
|
+
Number: "Broj",
|
|
4
|
+
Customer: "Kupac",
|
|
5
|
+
Date: "Datum",
|
|
6
|
+
Total: "Ukupno",
|
|
7
|
+
"Total with Tax": "Ukupno s PDV-om",
|
|
8
|
+
Status: "Status",
|
|
9
|
+
Actions: "Akcije",
|
|
10
|
+
"Open menu": "Otvori izbornik",
|
|
11
|
+
"Copy credit note ID": "Kopiraj ID odobrenja",
|
|
12
|
+
"View credit note": "Prikazi odobrenje",
|
|
13
|
+
"Download PDF": "Preuzmi PDF",
|
|
14
|
+
"Downloading...": "Preuzimanje...",
|
|
15
|
+
"Add Payment": "Dodaj placanje",
|
|
16
|
+
Duplicate: "Dupliciraj",
|
|
17
|
+
"Failed to download PDF": "Preuzimanje PDF-a nije uspjelo",
|
|
18
|
+
"Credit Note": "Odobrenje",
|
|
19
|
+
// Filter translations
|
|
20
|
+
"Search...": "Pretrazi...",
|
|
21
|
+
Filters: "Filteri",
|
|
22
|
+
"Date Range": "Raspon datuma",
|
|
23
|
+
From: "Od",
|
|
24
|
+
To: "Do",
|
|
25
|
+
"Clear filters": "Ocisti filtere",
|
|
26
|
+
Paid: "Placeno",
|
|
27
|
+
Unpaid: "Neplaceno",
|
|
28
|
+
Overdue: "Dospjelo",
|
|
29
|
+
Voided: "Stornirano",
|
|
30
|
+
"Created At": "Kreirano",
|
|
31
|
+
Partial: "Djelomicno placeno",
|
|
32
|
+
Unshare: "Ukloni dijeljenje",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Vasa lista odobrenja je prazna",
|
|
35
|
+
"Get started by creating your first entry": "Pocnite kreiranjem prvog odobrenja",
|
|
36
|
+
"Create new": "Kreiraj odobrenje",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Nije pronadjeno nijedno odobrenje",
|
|
39
|
+
"Try adjusting your search criteria": "Pokusajte prilagoditi kriterije pretrazivanja",
|
|
40
|
+
"Clear search": "Ocisti pretragu",
|
|
41
|
+
} as const;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Draft: "Bozza",
|
|
3
|
+
Number: "Numero",
|
|
4
|
+
Customer: "Cliente",
|
|
5
|
+
Date: "Data",
|
|
6
|
+
Total: "Totale",
|
|
7
|
+
"Total with Tax": "Totale con IVA",
|
|
8
|
+
Status: "Stato",
|
|
9
|
+
Actions: "Azioni",
|
|
10
|
+
"Open menu": "Apri menu",
|
|
11
|
+
"Copy credit note ID": "Copia ID nota di credito",
|
|
12
|
+
"View credit note": "Visualizza nota di credito",
|
|
13
|
+
"Download PDF": "Scarica PDF",
|
|
14
|
+
"Downloading...": "Download in corso...",
|
|
15
|
+
"Add Payment": "Aggiungi pagamento",
|
|
16
|
+
Duplicate: "Duplica",
|
|
17
|
+
"Failed to download PDF": "Download del PDF non riuscito",
|
|
18
|
+
"Credit Note": "Nota di credito",
|
|
19
|
+
// Filter translations
|
|
20
|
+
"Search...": "Cerca...",
|
|
21
|
+
Filters: "Filtri",
|
|
22
|
+
"Date Range": "Intervallo di date",
|
|
23
|
+
From: "Da",
|
|
24
|
+
To: "A",
|
|
25
|
+
"Clear filters": "Cancella filtri",
|
|
26
|
+
Paid: "Pagato",
|
|
27
|
+
Unpaid: "Non pagato",
|
|
28
|
+
Overdue: "Scaduto",
|
|
29
|
+
Voided: "Annullato",
|
|
30
|
+
"Created At": "Creato il",
|
|
31
|
+
Partial: "Parzialmente pagato",
|
|
32
|
+
Unshare: "Rimuovi condivisione",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "La lista delle note di credito e vuota",
|
|
35
|
+
"Get started by creating your first entry": "Inizia creando la tua prima nota di credito",
|
|
36
|
+
"Create new": "Crea nota di credito",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Nessuna nota di credito trovata",
|
|
39
|
+
"Try adjusting your search criteria": "Prova a modificare i criteri di ricerca",
|
|
40
|
+
"Clear search": "Cancella ricerca",
|
|
41
|
+
} as const;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Draft: "Concept",
|
|
3
|
+
Number: "Nummer",
|
|
4
|
+
Customer: "Klant",
|
|
5
|
+
Date: "Datum",
|
|
6
|
+
Total: "Totaal",
|
|
7
|
+
"Total with Tax": "Totaal met btw",
|
|
8
|
+
Status: "Status",
|
|
9
|
+
Actions: "Acties",
|
|
10
|
+
"Open menu": "Menu openen",
|
|
11
|
+
"Copy credit note ID": "Creditnota-ID kopieren",
|
|
12
|
+
"View credit note": "Creditnota bekijken",
|
|
13
|
+
"Download PDF": "PDF downloaden",
|
|
14
|
+
"Downloading...": "Downloaden...",
|
|
15
|
+
"Add Payment": "Betaling toevoegen",
|
|
16
|
+
Duplicate: "Dupliceren",
|
|
17
|
+
"Failed to download PDF": "PDF downloaden mislukt",
|
|
18
|
+
"Credit Note": "Creditnota",
|
|
19
|
+
// Filter translations
|
|
20
|
+
"Search...": "Zoeken...",
|
|
21
|
+
Filters: "Filters",
|
|
22
|
+
"Date Range": "Datumbereik",
|
|
23
|
+
From: "Van",
|
|
24
|
+
To: "Tot",
|
|
25
|
+
"Clear filters": "Filters wissen",
|
|
26
|
+
Paid: "Betaald",
|
|
27
|
+
Unpaid: "Onbetaald",
|
|
28
|
+
Overdue: "Achterstallig",
|
|
29
|
+
Voided: "Nietig verklaard",
|
|
30
|
+
"Created At": "Aangemaakt op",
|
|
31
|
+
Partial: "Gedeeltelijk betaald",
|
|
32
|
+
Unshare: "Delen opheffen",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Uw lijst met creditnota's is leeg",
|
|
35
|
+
"Get started by creating your first entry": "Begin met het aanmaken van uw eerste creditnota",
|
|
36
|
+
"Create new": "Creditnota aanmaken",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Geen creditnota's gevonden",
|
|
39
|
+
"Try adjusting your search criteria": "Probeer uw zoekcriteria aan te passen",
|
|
40
|
+
"Clear search": "Zoekopdracht wissen",
|
|
41
|
+
} as const;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Draft: "Szkic",
|
|
3
|
+
Number: "Numer",
|
|
4
|
+
Customer: "Klient",
|
|
5
|
+
Date: "Data",
|
|
6
|
+
Total: "Suma",
|
|
7
|
+
"Total with Tax": "Suma z podatkiem",
|
|
8
|
+
Status: "Status",
|
|
9
|
+
Actions: "Akcje",
|
|
10
|
+
"Open menu": "Otworz menu",
|
|
11
|
+
"Copy credit note ID": "Kopiuj ID noty kredytowej",
|
|
12
|
+
"View credit note": "Pokaz note kredytowa",
|
|
13
|
+
"Download PDF": "Pobierz PDF",
|
|
14
|
+
"Downloading...": "Pobieranie...",
|
|
15
|
+
"Add Payment": "Dodaj platnosc",
|
|
16
|
+
Duplicate: "Duplikuj",
|
|
17
|
+
"Failed to download PDF": "Nie udalo sie pobrac PDF",
|
|
18
|
+
"Credit Note": "Nota kredytowa",
|
|
19
|
+
// Filter translations
|
|
20
|
+
"Search...": "Szukaj...",
|
|
21
|
+
Filters: "Filtry",
|
|
22
|
+
"Date Range": "Zakres dat",
|
|
23
|
+
From: "Od",
|
|
24
|
+
To: "Do",
|
|
25
|
+
"Clear filters": "Wyczysc filtry",
|
|
26
|
+
Paid: "Oplacone",
|
|
27
|
+
Unpaid: "Nieoplacone",
|
|
28
|
+
Overdue: "Zaległe",
|
|
29
|
+
Voided: "Anulowane",
|
|
30
|
+
"Created At": "Utworzono",
|
|
31
|
+
Partial: "Czesciowo oplacone",
|
|
32
|
+
Unshare: "Cofnij udostepnienie",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Twoja lista not kredytowych jest pusta",
|
|
35
|
+
"Get started by creating your first entry": "Zacznij od utworzenia pierwszej noty kredytowej",
|
|
36
|
+
"Create new": "Utworz note kredytowa",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Nie znaleziono not kredytowych",
|
|
39
|
+
"Try adjusting your search criteria": "Sprobuj dostosowac kryteria wyszukiwania",
|
|
40
|
+
"Clear search": "Wyczysc wyszukiwanie",
|
|
41
|
+
} as const;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Draft: "Rascunho",
|
|
3
|
+
Number: "Numero",
|
|
4
|
+
Customer: "Cliente",
|
|
5
|
+
Date: "Data",
|
|
6
|
+
Total: "Total",
|
|
7
|
+
"Total with Tax": "Total com imposto",
|
|
8
|
+
Status: "Estado",
|
|
9
|
+
Actions: "Acoes",
|
|
10
|
+
"Open menu": "Abrir menu",
|
|
11
|
+
"Copy credit note ID": "Copiar ID da nota de credito",
|
|
12
|
+
"View credit note": "Ver nota de credito",
|
|
13
|
+
"Download PDF": "Transferir PDF",
|
|
14
|
+
"Downloading...": "A transferir...",
|
|
15
|
+
"Add Payment": "Adicionar pagamento",
|
|
16
|
+
Duplicate: "Duplicar",
|
|
17
|
+
"Failed to download PDF": "Falha ao transferir o PDF",
|
|
18
|
+
"Credit Note": "Nota de credito",
|
|
19
|
+
// Filter translations
|
|
20
|
+
"Search...": "Pesquisar...",
|
|
21
|
+
Filters: "Filtros",
|
|
22
|
+
"Date Range": "Intervalo de datas",
|
|
23
|
+
From: "De",
|
|
24
|
+
To: "Ate",
|
|
25
|
+
"Clear filters": "Limpar filtros",
|
|
26
|
+
Paid: "Pago",
|
|
27
|
+
Unpaid: "Nao pago",
|
|
28
|
+
Overdue: "Vencido",
|
|
29
|
+
Voided: "Anulado",
|
|
30
|
+
"Created At": "Criado em",
|
|
31
|
+
Partial: "Parcialmente pago",
|
|
32
|
+
Unshare: "Remover partilha",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "A sua lista de notas de credito esta vazia",
|
|
35
|
+
"Get started by creating your first entry": "Comece criando a sua primeira nota de credito",
|
|
36
|
+
"Create new": "Criar nota de credito",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Nenhuma nota de credito encontrada",
|
|
39
|
+
"Try adjusting your search criteria": "Tente ajustar os seus criterios de pesquisa",
|
|
40
|
+
"Clear search": "Limpar pesquisa",
|
|
41
|
+
} as const;
|
|
@@ -16,8 +16,6 @@ export default {
|
|
|
16
16
|
Duplicate: "Podvoji",
|
|
17
17
|
"Failed to download PDF": "Prenos PDF ni uspel",
|
|
18
18
|
"Credit Note": "Dobropis",
|
|
19
|
-
"No credit notes found": "Ni najdenih dobropisov",
|
|
20
|
-
"Create Credit Note": "Ustvari dobropis",
|
|
21
19
|
// Filter translations
|
|
22
20
|
"Search...": "Iskanje...",
|
|
23
21
|
Filters: "Filtri",
|
|
@@ -30,4 +28,14 @@ export default {
|
|
|
30
28
|
Overdue: "Zapadlo",
|
|
31
29
|
Voided: "Stornirano",
|
|
32
30
|
"Created At": "Ustvarjeno",
|
|
31
|
+
Partial: "Delno plačano",
|
|
32
|
+
Unshare: "Odstrani deljenje",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Vaš seznam dobropisov je prazen",
|
|
35
|
+
"Get started by creating your first entry": "Začnite z ustvarjanjem prvega dobropisa",
|
|
36
|
+
"Create new": "Ustvari dobropis",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Ni najdenih dobropisov",
|
|
39
|
+
"Try adjusting your search criteria": "Poskusite prilagoditi iskalne kriterije",
|
|
40
|
+
"Clear search": "Počisti iskanje",
|
|
33
41
|
} as const;
|
|
@@ -11,11 +11,25 @@ import type { ComponentTranslationProps } from "@/ui/lib/translation";
|
|
|
11
11
|
import { createTranslation } from "@/ui/lib/translation";
|
|
12
12
|
import { useCreateCustomer } from "../customers.hooks";
|
|
13
13
|
import de from "./locales/de";
|
|
14
|
+
import es from "./locales/es";
|
|
15
|
+
import fr from "./locales/fr";
|
|
16
|
+
import hr from "./locales/hr";
|
|
17
|
+
import it from "./locales/it";
|
|
18
|
+
import nl from "./locales/nl";
|
|
19
|
+
import pl from "./locales/pl";
|
|
20
|
+
import pt from "./locales/pt";
|
|
14
21
|
import sl from "./locales/sl";
|
|
15
22
|
|
|
16
23
|
const translations = {
|
|
17
24
|
sl,
|
|
18
25
|
de,
|
|
26
|
+
it,
|
|
27
|
+
fr,
|
|
28
|
+
es,
|
|
29
|
+
pt,
|
|
30
|
+
nl,
|
|
31
|
+
pl,
|
|
32
|
+
hr,
|
|
19
33
|
} as const;
|
|
20
34
|
|
|
21
35
|
type CreateCustomerFormProps = {
|
|
@@ -53,6 +67,7 @@ export default function CreateCustomerForm({
|
|
|
53
67
|
if (company.post_code) form.setValue("post_code", company.post_code);
|
|
54
68
|
if (company.city) form.setValue("city", company.city);
|
|
55
69
|
if (company.tax_number) form.setValue("tax_number", company.tax_number);
|
|
70
|
+
if (company.registration_number) form.setValue("company_number", company.registration_number);
|
|
56
71
|
// Note: country is intentionally not set - keep entity's country or let user choose
|
|
57
72
|
};
|
|
58
73
|
|
|
@@ -66,6 +81,7 @@ export default function CreateCustomerForm({
|
|
|
66
81
|
state: "",
|
|
67
82
|
country: "",
|
|
68
83
|
tax_number: "",
|
|
84
|
+
company_number: "",
|
|
69
85
|
},
|
|
70
86
|
});
|
|
71
87
|
|
|
@@ -84,19 +100,19 @@ export default function CreateCustomerForm({
|
|
|
84
100
|
},
|
|
85
101
|
});
|
|
86
102
|
|
|
87
|
-
const onSubmit = async (values:
|
|
103
|
+
const onSubmit = async (values: CreateCustomerSchema) => {
|
|
88
104
|
// Zod validation ensures required fields are present before this is called
|
|
89
105
|
// The type cast is safe because React Hook Form's DeepPartial doesn't reflect runtime validation
|
|
90
106
|
createCustomer(values as CreateCustomerRequest);
|
|
91
107
|
};
|
|
92
108
|
|
|
93
109
|
const handleSubmitClick = () => {
|
|
94
|
-
form.handleSubmit(onSubmit)();
|
|
110
|
+
form.handleSubmit(onSubmit as any)();
|
|
95
111
|
};
|
|
96
112
|
|
|
97
113
|
return (
|
|
98
114
|
<Form {...form}>
|
|
99
|
-
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
|
|
115
|
+
<form onSubmit={form.handleSubmit(onSubmit as any)} className="space-y-4">
|
|
100
116
|
{/* Company Registry Autocomplete - only shown for supported countries */}
|
|
101
117
|
{entityCountryCode && (
|
|
102
118
|
<div className="mb-4 rounded-lg border bg-muted/30 p-4">
|
|
@@ -124,6 +140,8 @@ export default function CreateCustomerForm({
|
|
|
124
140
|
|
|
125
141
|
<FormInput control={form.control} name="tax_number" label={t("Tax Number")} />
|
|
126
142
|
|
|
143
|
+
<FormInput control={form.control} name="company_number" label={t("Company Number")} />
|
|
144
|
+
|
|
127
145
|
{renderSubmitButton?.({
|
|
128
146
|
isSubmitting: isPending || form.formState.isSubmitting,
|
|
129
147
|
submit: handleSubmitClick,
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
"Enter post code": "Ingrese el codigo postal",
|
|
8
|
+
City: "Ciudad",
|
|
9
|
+
"Enter city": "Ingrese la ciudad",
|
|
10
|
+
State: "Estado",
|
|
11
|
+
"Enter state": "Ingrese el estado",
|
|
12
|
+
Country: "Pais",
|
|
13
|
+
"Enter country": "Ingrese el pais",
|
|
14
|
+
"Tax Number": "Numero fiscal",
|
|
15
|
+
"Company Number": "Numero de empresa",
|
|
16
|
+
"Enter tax number": "Ingrese el numero fiscal",
|
|
17
|
+
"Create Customer": "Crear cliente",
|
|
18
|
+
Cancel: "Cancelar",
|
|
19
|
+
"Search by company name or tax number": "Buscar por nombre de empresa o numero fiscal",
|
|
20
|
+
"There was an error creating the customer": "Hubo un error al crear el cliente",
|
|
21
|
+
} as const;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
"Enter post code": "Entrez le code postal",
|
|
8
|
+
City: "Ville",
|
|
9
|
+
"Enter city": "Entrez la ville",
|
|
10
|
+
State: "Region",
|
|
11
|
+
"Enter state": "Entrez la region",
|
|
12
|
+
Country: "Pays",
|
|
13
|
+
"Enter country": "Entrez le pays",
|
|
14
|
+
"Tax Number": "Numero de TVA",
|
|
15
|
+
"Company Number": "Numero d'entreprise",
|
|
16
|
+
"Enter tax number": "Entrez le numero de TVA",
|
|
17
|
+
"Create Customer": "Creer un client",
|
|
18
|
+
Cancel: "Annuler",
|
|
19
|
+
"Search by company name or tax number": "Rechercher par nom d'entreprise ou numero de TVA",
|
|
20
|
+
"There was an error creating the customer": "Une erreur est survenue lors de la creation du client",
|
|
21
|
+
} as const;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
"Enter post code": "Unesite postanski broj",
|
|
8
|
+
City: "Grad",
|
|
9
|
+
"Enter city": "Unesite grad",
|
|
10
|
+
State: "Zupanija",
|
|
11
|
+
"Enter state": "Unesite zupaniju",
|
|
12
|
+
Country: "Drzava",
|
|
13
|
+
"Enter country": "Unesite drzavu",
|
|
14
|
+
"Tax Number": "OIB",
|
|
15
|
+
"Company Number": "Maticni broj",
|
|
16
|
+
"Enter tax number": "Unesite OIB",
|
|
17
|
+
"Create Customer": "Kreiraj kupca",
|
|
18
|
+
Cancel: "Otkazi",
|
|
19
|
+
"Search by company name or tax number": "Pretrazi po nazivu tvrtke ili OIB-u",
|
|
20
|
+
"There was an error creating the customer": "Doslo je do greske pri kreiranju kupca",
|
|
21
|
+
} as const;
|