@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
|
@@ -4,9 +4,16 @@ import { Card, CardContent, CardHeader, CardTitle } from "@/ui/components/ui/car
|
|
|
4
4
|
import type { ComponentTranslationProps } from "@/ui/lib/translation";
|
|
5
5
|
import { createTranslation } from "@/ui/lib/translation";
|
|
6
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";
|
|
7
14
|
import sl from "./locales/sl";
|
|
8
15
|
|
|
9
|
-
const translations = { de, sl } as const;
|
|
16
|
+
const translations = { de, es, fr, hr, it, nl, pl, pt, sl } as const;
|
|
10
17
|
|
|
11
18
|
// Re-export for convenience
|
|
12
19
|
export type { Activity };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Header
|
|
3
|
+
Activity: "Actividad",
|
|
4
|
+
|
|
5
|
+
// Actions
|
|
6
|
+
created: "Creado",
|
|
7
|
+
updated: "Actualizado",
|
|
8
|
+
deleted: "Eliminado",
|
|
9
|
+
voided: "Anulado",
|
|
10
|
+
sent: "Enviado",
|
|
11
|
+
exported: "Exportado",
|
|
12
|
+
synced: "Sincronizado",
|
|
13
|
+
fiscalized: "Fiscalizado",
|
|
14
|
+
|
|
15
|
+
// Actor types
|
|
16
|
+
user: "Usuario",
|
|
17
|
+
system: "Sistema",
|
|
18
|
+
cron: "Tarea programada",
|
|
19
|
+
webhook: "Webhook",
|
|
20
|
+
|
|
21
|
+
// Empty state
|
|
22
|
+
"No activities": "Sin actividades",
|
|
23
|
+
"No activities yet for this resource": "Aun no hay actividades para este recurso",
|
|
24
|
+
|
|
25
|
+
// Time
|
|
26
|
+
"just now": "ahora mismo",
|
|
27
|
+
"minutes ago": "minutos atras",
|
|
28
|
+
"hours ago": "horas atras",
|
|
29
|
+
"days ago": "dias atras",
|
|
30
|
+
} as const;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Header
|
|
3
|
+
Activity: "Activite",
|
|
4
|
+
|
|
5
|
+
// Actions
|
|
6
|
+
created: "Cree",
|
|
7
|
+
updated: "Mis a jour",
|
|
8
|
+
deleted: "Supprime",
|
|
9
|
+
voided: "Annule",
|
|
10
|
+
sent: "Envoye",
|
|
11
|
+
exported: "Exporte",
|
|
12
|
+
synced: "Synchronise",
|
|
13
|
+
fiscalized: "Fiscalise",
|
|
14
|
+
|
|
15
|
+
// Actor types
|
|
16
|
+
user: "Utilisateur",
|
|
17
|
+
system: "Systeme",
|
|
18
|
+
cron: "Tache planifiee",
|
|
19
|
+
webhook: "Webhook",
|
|
20
|
+
|
|
21
|
+
// Empty state
|
|
22
|
+
"No activities": "Aucune activite",
|
|
23
|
+
"No activities yet for this resource": "Aucune activite pour cette ressource",
|
|
24
|
+
|
|
25
|
+
// Time
|
|
26
|
+
"just now": "a l'instant",
|
|
27
|
+
"minutes ago": "minutes",
|
|
28
|
+
"hours ago": "heures",
|
|
29
|
+
"days ago": "jours",
|
|
30
|
+
} as const;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Header
|
|
3
|
+
Activity: "Aktivnost",
|
|
4
|
+
|
|
5
|
+
// Actions
|
|
6
|
+
created: "Kreirano",
|
|
7
|
+
updated: "Azurirano",
|
|
8
|
+
deleted: "Obrisano",
|
|
9
|
+
voided: "Stornirano",
|
|
10
|
+
sent: "Poslano",
|
|
11
|
+
exported: "Izvezeno",
|
|
12
|
+
synced: "Sinkronizirano",
|
|
13
|
+
fiscalized: "Fiskalizirano",
|
|
14
|
+
|
|
15
|
+
// Actor types
|
|
16
|
+
user: "Korisnik",
|
|
17
|
+
system: "Sustav",
|
|
18
|
+
cron: "Planirani zadatak",
|
|
19
|
+
webhook: "Webhook",
|
|
20
|
+
|
|
21
|
+
// Empty state
|
|
22
|
+
"No activities": "Nema aktivnosti",
|
|
23
|
+
"No activities yet for this resource": "Jos nema aktivnosti za ovaj resurs",
|
|
24
|
+
|
|
25
|
+
// Time
|
|
26
|
+
"just now": "upravo sada",
|
|
27
|
+
"minutes ago": "minuta prije",
|
|
28
|
+
"hours ago": "sati prije",
|
|
29
|
+
"days ago": "dana prije",
|
|
30
|
+
} as const;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Header
|
|
3
|
+
Activity: "Attivita",
|
|
4
|
+
|
|
5
|
+
// Actions
|
|
6
|
+
created: "Creato",
|
|
7
|
+
updated: "Aggiornato",
|
|
8
|
+
deleted: "Eliminato",
|
|
9
|
+
voided: "Annullato",
|
|
10
|
+
sent: "Inviato",
|
|
11
|
+
exported: "Esportato",
|
|
12
|
+
synced: "Sincronizzato",
|
|
13
|
+
fiscalized: "Fiscalizzato",
|
|
14
|
+
|
|
15
|
+
// Actor types
|
|
16
|
+
user: "Utente",
|
|
17
|
+
system: "Sistema",
|
|
18
|
+
cron: "Operazione pianificata",
|
|
19
|
+
webhook: "Webhook",
|
|
20
|
+
|
|
21
|
+
// Empty state
|
|
22
|
+
"No activities": "Nessuna attivita",
|
|
23
|
+
"No activities yet for this resource": "Nessuna attivita per questa risorsa",
|
|
24
|
+
|
|
25
|
+
// Time
|
|
26
|
+
"just now": "proprio ora",
|
|
27
|
+
"minutes ago": "minuti fa",
|
|
28
|
+
"hours ago": "ore fa",
|
|
29
|
+
"days ago": "giorni fa",
|
|
30
|
+
} as const;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Header
|
|
3
|
+
Activity: "Activiteit",
|
|
4
|
+
|
|
5
|
+
// Actions
|
|
6
|
+
created: "Aangemaakt",
|
|
7
|
+
updated: "Bijgewerkt",
|
|
8
|
+
deleted: "Verwijderd",
|
|
9
|
+
voided: "Nietig verklaard",
|
|
10
|
+
sent: "Verzonden",
|
|
11
|
+
exported: "Geexporteerd",
|
|
12
|
+
synced: "Gesynchroniseerd",
|
|
13
|
+
fiscalized: "Gefiscaliseerd",
|
|
14
|
+
|
|
15
|
+
// Actor types
|
|
16
|
+
user: "Gebruiker",
|
|
17
|
+
system: "Systeem",
|
|
18
|
+
cron: "Geplande taak",
|
|
19
|
+
webhook: "Webhook",
|
|
20
|
+
|
|
21
|
+
// Empty state
|
|
22
|
+
"No activities": "Geen activiteiten",
|
|
23
|
+
"No activities yet for this resource": "Nog geen activiteiten voor deze bron",
|
|
24
|
+
|
|
25
|
+
// Time
|
|
26
|
+
"just now": "zojuist",
|
|
27
|
+
"minutes ago": "minuten geleden",
|
|
28
|
+
"hours ago": "uur geleden",
|
|
29
|
+
"days ago": "dagen geleden",
|
|
30
|
+
} as const;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Header
|
|
3
|
+
Activity: "Aktywnosc",
|
|
4
|
+
|
|
5
|
+
// Actions
|
|
6
|
+
created: "Utworzono",
|
|
7
|
+
updated: "Zaktualizowano",
|
|
8
|
+
deleted: "Usunieto",
|
|
9
|
+
voided: "Anulowano",
|
|
10
|
+
sent: "Wyslano",
|
|
11
|
+
exported: "Wyeksportowano",
|
|
12
|
+
synced: "Zsynchronizowano",
|
|
13
|
+
fiscalized: "Zafiskalizowano",
|
|
14
|
+
|
|
15
|
+
// Actor types
|
|
16
|
+
user: "Uzytkownik",
|
|
17
|
+
system: "System",
|
|
18
|
+
cron: "Zaplanowane zadanie",
|
|
19
|
+
webhook: "Webhook",
|
|
20
|
+
|
|
21
|
+
// Empty state
|
|
22
|
+
"No activities": "Brak aktywnosci",
|
|
23
|
+
"No activities yet for this resource": "Brak aktywnosci dla tego zasobu",
|
|
24
|
+
|
|
25
|
+
// Time
|
|
26
|
+
"just now": "wlasnie teraz",
|
|
27
|
+
"minutes ago": "minut temu",
|
|
28
|
+
"hours ago": "godzin temu",
|
|
29
|
+
"days ago": "dni temu",
|
|
30
|
+
} as const;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Header
|
|
3
|
+
Activity: "Atividade",
|
|
4
|
+
|
|
5
|
+
// Actions
|
|
6
|
+
created: "Criado",
|
|
7
|
+
updated: "Atualizado",
|
|
8
|
+
deleted: "Eliminado",
|
|
9
|
+
voided: "Anulado",
|
|
10
|
+
sent: "Enviado",
|
|
11
|
+
exported: "Exportado",
|
|
12
|
+
synced: "Sincronizado",
|
|
13
|
+
fiscalized: "Fiscalizado",
|
|
14
|
+
|
|
15
|
+
// Actor types
|
|
16
|
+
user: "Utilizador",
|
|
17
|
+
system: "Sistema",
|
|
18
|
+
cron: "Tarefa agendada",
|
|
19
|
+
webhook: "Webhook",
|
|
20
|
+
|
|
21
|
+
// Empty state
|
|
22
|
+
"No activities": "Sem atividades",
|
|
23
|
+
"No activities yet for this resource": "Ainda sem atividades para este recurso",
|
|
24
|
+
|
|
25
|
+
// Time
|
|
26
|
+
"just now": "agora mesmo",
|
|
27
|
+
"minutes ago": "minutos atras",
|
|
28
|
+
"hours ago": "horas atras",
|
|
29
|
+
"days ago": "dias atras",
|
|
30
|
+
} as const;
|
|
@@ -29,12 +29,26 @@ import { useFursPremises, useFursSettings } from "../../entities/furs-settings-f
|
|
|
29
29
|
import { getEntityErrors, getFormFieldErrors, validateEslogForm } from "../../invoices/create/eslog-validation";
|
|
30
30
|
import { getLastUsedFursCombo, setLastUsedFursCombo, useCreateAdvanceInvoice } from "../advance-invoices.hooks";
|
|
31
31
|
import de from "./locales/de";
|
|
32
|
+
import es from "./locales/es";
|
|
33
|
+
import fr from "./locales/fr";
|
|
34
|
+
import hr from "./locales/hr";
|
|
35
|
+
import it from "./locales/it";
|
|
36
|
+
import nl from "./locales/nl";
|
|
37
|
+
import pl from "./locales/pl";
|
|
38
|
+
import pt from "./locales/pt";
|
|
32
39
|
import sl from "./locales/sl";
|
|
33
40
|
import { prepareAdvanceInvoiceSubmission } from "./prepare-advance-invoice-submission";
|
|
34
41
|
|
|
35
42
|
const translations = {
|
|
36
43
|
sl,
|
|
37
44
|
de,
|
|
45
|
+
it,
|
|
46
|
+
fr,
|
|
47
|
+
es,
|
|
48
|
+
pt,
|
|
49
|
+
nl,
|
|
50
|
+
pl,
|
|
51
|
+
hr,
|
|
38
52
|
} as const;
|
|
39
53
|
|
|
40
54
|
// Form values: extend schema with local-only fields (number is for display, not sent to API)
|
|
@@ -106,7 +120,7 @@ export default function CreateAdvanceInvoiceForm({
|
|
|
106
120
|
|
|
107
121
|
// UI-only state (not part of API schema)
|
|
108
122
|
const [markAsPaid, setMarkAsPaid] = useState(false);
|
|
109
|
-
const [
|
|
123
|
+
const [paymentTypes, setPaymentTypes] = useState<string[]>(["bank_transfer"]);
|
|
110
124
|
const [isDraftPending, setIsDraftPending] = useState(false);
|
|
111
125
|
|
|
112
126
|
// Price modes per item (gross vs net) - collected from component state at submit
|
|
@@ -228,7 +242,7 @@ export default function CreateAdvanceInvoiceForm({
|
|
|
228
242
|
});
|
|
229
243
|
|
|
230
244
|
// Skip fiscalization is only allowed for bank transfers or unpaid invoices
|
|
231
|
-
const canSkipFiscalization = !markAsPaid ||
|
|
245
|
+
const canSkipFiscalization = !markAsPaid || paymentTypes.every((type) => type === "bank_transfer");
|
|
232
246
|
|
|
233
247
|
// Auto-disable skip when it becomes invalid (e.g., user changes payment type to cash)
|
|
234
248
|
useEffect(() => {
|
|
@@ -418,7 +432,7 @@ export default function CreateAdvanceInvoiceForm({
|
|
|
418
432
|
(values: CreateAdvanceInvoiceFormValues, isDraft: boolean) => {
|
|
419
433
|
// Skip e-SLOG and FURS validation for drafts
|
|
420
434
|
if (!isDraft && eslogValidationEnabled) {
|
|
421
|
-
const validationErrors = validateEslogForm(values, activeEntity);
|
|
435
|
+
const validationErrors = validateEslogForm(values as any, activeEntity);
|
|
422
436
|
|
|
423
437
|
if (validationErrors.length > 0) {
|
|
424
438
|
const entityErrors = getEntityErrors(validationErrors);
|
|
@@ -453,7 +467,7 @@ export default function CreateAdvanceInvoiceForm({
|
|
|
453
467
|
originalCustomer,
|
|
454
468
|
wasCustomerFormShown: showCustomerForm,
|
|
455
469
|
markAsPaid: isDraft ? false : markAsPaid,
|
|
456
|
-
|
|
470
|
+
paymentTypes,
|
|
457
471
|
furs: fursOptions,
|
|
458
472
|
eslog: eslogOptions,
|
|
459
473
|
priceModes: priceModesRef.current,
|
|
@@ -471,7 +485,7 @@ export default function CreateAdvanceInvoiceForm({
|
|
|
471
485
|
isFursEnabled,
|
|
472
486
|
markAsPaid,
|
|
473
487
|
originalCustomer,
|
|
474
|
-
|
|
488
|
+
paymentTypes,
|
|
475
489
|
selectedDeviceName,
|
|
476
490
|
selectedPremiseName,
|
|
477
491
|
showCustomerForm,
|
|
@@ -659,8 +673,8 @@ export default function CreateAdvanceInvoiceForm({
|
|
|
659
673
|
<MarkAsPaidSection
|
|
660
674
|
checked={markAsPaid}
|
|
661
675
|
onCheckedChange={setMarkAsPaid}
|
|
662
|
-
|
|
663
|
-
|
|
676
|
+
paymentTypes={paymentTypes}
|
|
677
|
+
onPaymentTypesChange={setPaymentTypes}
|
|
664
678
|
t={t}
|
|
665
679
|
/>
|
|
666
680
|
</DocumentDetailsSection>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Guardar",
|
|
3
|
+
"Save as Draft": "Guardar como borrador",
|
|
4
|
+
"Create Advance Invoice": "Crear factura anticipada",
|
|
5
|
+
"e-SLOG": "e-SLOG",
|
|
6
|
+
"Fiscally verify": "Verificar fiscalmente",
|
|
7
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
8
|
+
"Haga clic para omitir la validacion e-SLOG para esta factura anticipada",
|
|
9
|
+
"Click to enable e-SLOG validation": "Haga clic para habilitar la validacion e-SLOG",
|
|
10
|
+
"Click to skip fiscalization for this advance invoice":
|
|
11
|
+
"Haga clic para omitir la fiscalizacion para esta factura anticipada",
|
|
12
|
+
"Click to enable fiscalization": "Haga clic para habilitar la fiscalizacion",
|
|
13
|
+
"Cannot skip fiscalization for cash payments": "No se puede omitir la fiscalizacion para pagos en efectivo",
|
|
14
|
+
"e-SLOG Validation Failed": "La validacion e-SLOG ha fallado",
|
|
15
|
+
"The following entity settings need to be updated:":
|
|
16
|
+
"Las siguientes configuraciones de la entidad deben actualizarse:",
|
|
17
|
+
"Reverse charge - tax exempt EU B2B sale": "Inversion del sujeto pasivo - venta B2B UE exenta de impuestos",
|
|
18
|
+
"Mark as Paid": "Marcar como pagado",
|
|
19
|
+
Paid: "Pagado",
|
|
20
|
+
"Advance invoice will be marked as fully paid upon creation":
|
|
21
|
+
"La factura anticipada se marcara como totalmente pagada al crearla",
|
|
22
|
+
"Payment Type": "Tipo de pago",
|
|
23
|
+
"Select payment type": "Seleccione tipo de pago",
|
|
24
|
+
Cash: "Efectivo",
|
|
25
|
+
"Bank Transfer": "Transferencia bancaria",
|
|
26
|
+
Card: "Tarjeta",
|
|
27
|
+
Check: "Cheque",
|
|
28
|
+
Other: "Otro",
|
|
29
|
+
} as const;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Enregistrer",
|
|
3
|
+
"Save as Draft": "Enregistrer comme brouillon",
|
|
4
|
+
"Create Advance Invoice": "Creer une facture d'acompte",
|
|
5
|
+
"e-SLOG": "e-SLOG",
|
|
6
|
+
"Fiscally verify": "Verification fiscale",
|
|
7
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
8
|
+
"Cliquez pour ignorer la validation e-SLOG pour cette facture d'acompte",
|
|
9
|
+
"Click to enable e-SLOG validation": "Cliquez pour activer la validation e-SLOG",
|
|
10
|
+
"Click to skip fiscalization for this advance invoice":
|
|
11
|
+
"Cliquez pour ignorer la fiscalisation pour cette facture d'acompte",
|
|
12
|
+
"Click to enable fiscalization": "Cliquez pour activer la fiscalisation",
|
|
13
|
+
"Cannot skip fiscalization for cash payments": "Impossible d'ignorer la fiscalisation pour les paiements en especes",
|
|
14
|
+
"e-SLOG Validation Failed": "La validation e-SLOG a echoue",
|
|
15
|
+
"The following entity settings need to be updated:": "Les parametres d'entite suivants doivent etre mis a jour :",
|
|
16
|
+
"Reverse charge - tax exempt EU B2B sale": "Autoliquidation - vente B2B UE exoneree de taxe",
|
|
17
|
+
"Mark as Paid": "Marquer comme paye",
|
|
18
|
+
Paid: "Paye",
|
|
19
|
+
"Advance invoice will be marked as fully paid upon creation":
|
|
20
|
+
"La facture d'acompte sera marquee comme entierement payee lors de la creation",
|
|
21
|
+
"Payment Type": "Type de paiement",
|
|
22
|
+
"Select payment type": "Selectionnez le type de paiement",
|
|
23
|
+
Cash: "Especes",
|
|
24
|
+
"Bank Transfer": "Virement bancaire",
|
|
25
|
+
Card: "Carte",
|
|
26
|
+
Check: "Cheque",
|
|
27
|
+
Other: "Autre",
|
|
28
|
+
} as const;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Spremi",
|
|
3
|
+
"Save as Draft": "Spremi kao skicu",
|
|
4
|
+
"Create Advance Invoice": "Kreiraj avansni racun",
|
|
5
|
+
"e-SLOG": "e-SLOG",
|
|
6
|
+
"Fiscally verify": "Fiskalno potvrdi",
|
|
7
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
8
|
+
"Kliknite za preskakanje e-SLOG validacije za ovaj avansni racun",
|
|
9
|
+
"Click to enable e-SLOG validation": "Kliknite za ukljucivanje e-SLOG validacije",
|
|
10
|
+
"Click to skip fiscalization for this advance invoice": "Kliknite za preskakanje fiskalizacije za ovaj avansni racun",
|
|
11
|
+
"Click to enable fiscalization": "Kliknite za ukljucivanje fiskalizacije",
|
|
12
|
+
"Cannot skip fiscalization for cash payments": "Za gotovinska placanja nije moguce preskociti fiskalizaciju",
|
|
13
|
+
"e-SLOG Validation Failed": "e-SLOG validacija nije uspjela",
|
|
14
|
+
"The following entity settings need to be updated:": "Sljedece postavke entiteta trebaju biti azurirane:",
|
|
15
|
+
"Reverse charge - tax exempt EU B2B sale": "Obrnuto porezno opterecenje - porezno oslobodena EU B2B prodaja",
|
|
16
|
+
"Mark as Paid": "Oznaci kao placeno",
|
|
17
|
+
Paid: "Placeno",
|
|
18
|
+
"Advance invoice will be marked as fully paid upon creation":
|
|
19
|
+
"Avansni racun ce biti oznacen kao u potpunosti placen pri kreiranju",
|
|
20
|
+
"Payment Type": "Vrsta placanja",
|
|
21
|
+
"Select payment type": "Odaberite vrstu placanja",
|
|
22
|
+
Cash: "Gotovina",
|
|
23
|
+
"Bank Transfer": "Bankovni prijenos",
|
|
24
|
+
Card: "Kartica",
|
|
25
|
+
Check: "Cek",
|
|
26
|
+
Other: "Ostalo",
|
|
27
|
+
} as const;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Salva",
|
|
3
|
+
"Save as Draft": "Salva come bozza",
|
|
4
|
+
"Create Advance Invoice": "Crea fattura anticipata",
|
|
5
|
+
"e-SLOG": "e-SLOG",
|
|
6
|
+
"Fiscally verify": "Verifica fiscale",
|
|
7
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
8
|
+
"Clicca per saltare la validazione e-SLOG per questa fattura anticipata",
|
|
9
|
+
"Click to enable e-SLOG validation": "Clicca per abilitare la validazione e-SLOG",
|
|
10
|
+
"Click to skip fiscalization for this advance invoice":
|
|
11
|
+
"Clicca per saltare la fiscalizzazione per questa fattura anticipata",
|
|
12
|
+
"Click to enable fiscalization": "Clicca per abilitare la fiscalizzazione",
|
|
13
|
+
"Cannot skip fiscalization for cash payments":
|
|
14
|
+
"Non e possibile saltare la fiscalizzazione per i pagamenti in contanti",
|
|
15
|
+
"e-SLOG Validation Failed": "Validazione e-SLOG non riuscita",
|
|
16
|
+
"The following entity settings need to be updated:": "Le seguenti impostazioni dell'entita devono essere aggiornate:",
|
|
17
|
+
"Reverse charge - tax exempt EU B2B sale": "Inversione contabile - vendita B2B UE esente da imposta",
|
|
18
|
+
"Mark as Paid": "Segna come pagato",
|
|
19
|
+
Paid: "Pagato",
|
|
20
|
+
"Advance invoice will be marked as fully paid upon creation":
|
|
21
|
+
"La fattura anticipata sara contrassegnata come completamente pagata al momento della creazione",
|
|
22
|
+
"Payment Type": "Tipo di pagamento",
|
|
23
|
+
"Select payment type": "Seleziona tipo di pagamento",
|
|
24
|
+
Cash: "Contanti",
|
|
25
|
+
"Bank Transfer": "Bonifico bancario",
|
|
26
|
+
Card: "Carta",
|
|
27
|
+
Check: "Assegno",
|
|
28
|
+
Other: "Altro",
|
|
29
|
+
} as const;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Opslaan",
|
|
3
|
+
"Save as Draft": "Opslaan als concept",
|
|
4
|
+
"Create Advance Invoice": "Voorschotfactuur aanmaken",
|
|
5
|
+
"e-SLOG": "e-SLOG",
|
|
6
|
+
"Fiscally verify": "Fiscaal verifieren",
|
|
7
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
8
|
+
"Klik om e-SLOG-validatie voor deze voorschotfactuur over te slaan",
|
|
9
|
+
"Click to enable e-SLOG validation": "Klik om e-SLOG-validatie in te schakelen",
|
|
10
|
+
"Click to skip fiscalization for this advance invoice":
|
|
11
|
+
"Klik om fiscalisatie voor deze voorschotfactuur over te slaan",
|
|
12
|
+
"Click to enable fiscalization": "Klik om fiscalisatie in te schakelen",
|
|
13
|
+
"Cannot skip fiscalization for cash payments": "Fiscalisatie kan niet worden overgeslagen voor contante betalingen",
|
|
14
|
+
"e-SLOG Validation Failed": "e-SLOG-validatie mislukt",
|
|
15
|
+
"The following entity settings need to be updated:": "De volgende entiteitsinstellingen moeten worden bijgewerkt:",
|
|
16
|
+
"Reverse charge - tax exempt EU B2B sale": "Verlegde btw - btw-vrijgestelde EU B2B-verkoop",
|
|
17
|
+
"Mark as Paid": "Markeren als betaald",
|
|
18
|
+
Paid: "Betaald",
|
|
19
|
+
"Advance invoice will be marked as fully paid upon creation":
|
|
20
|
+
"De voorschotfactuur wordt bij aanmaak als volledig betaald gemarkeerd",
|
|
21
|
+
"Payment Type": "Betaaltype",
|
|
22
|
+
"Select payment type": "Selecteer betaaltype",
|
|
23
|
+
Cash: "Contant",
|
|
24
|
+
"Bank Transfer": "Bankoverschrijving",
|
|
25
|
+
Card: "Kaart",
|
|
26
|
+
Check: "Cheque",
|
|
27
|
+
Other: "Overig",
|
|
28
|
+
} as const;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Zapisz",
|
|
3
|
+
"Save as Draft": "Zapisz jako szkic",
|
|
4
|
+
"Create Advance Invoice": "Utworz fakture zaliczkowa",
|
|
5
|
+
"e-SLOG": "e-SLOG",
|
|
6
|
+
"Fiscally verify": "Zweryfikuj fiskalnie",
|
|
7
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
8
|
+
"Kliknij, aby pominac walidacje e-SLOG dla tej faktury zaliczkowej",
|
|
9
|
+
"Click to enable e-SLOG validation": "Kliknij, aby wlaczyc walidacje e-SLOG",
|
|
10
|
+
"Click to skip fiscalization for this advance invoice":
|
|
11
|
+
"Kliknij, aby pominac fiskalizacje dla tej faktury zaliczkowej",
|
|
12
|
+
"Click to enable fiscalization": "Kliknij, aby wlaczyc fiskalizacje",
|
|
13
|
+
"Cannot skip fiscalization for cash payments": "Nie mozna pominac fiskalizacji dla platnosci gotowkowych",
|
|
14
|
+
"e-SLOG Validation Failed": "Walidacja e-SLOG nie powiodla sie",
|
|
15
|
+
"The following entity settings need to be updated:": "Nastepujace ustawienia podmiotu wymagaja aktualizacji:",
|
|
16
|
+
"Reverse charge - tax exempt EU B2B sale": "Odwrotne obciazenie - sprzedaz B2B UE zwolniona z podatku",
|
|
17
|
+
"Mark as Paid": "Oznacz jako oplacone",
|
|
18
|
+
Paid: "Oplacone",
|
|
19
|
+
"Advance invoice will be marked as fully paid upon creation":
|
|
20
|
+
"Faktura zaliczkowa zostanie oznaczona jako w pelni oplacona po utworzeniu",
|
|
21
|
+
"Payment Type": "Rodzaj platnosci",
|
|
22
|
+
"Select payment type": "Wybierz rodzaj platnosci",
|
|
23
|
+
Cash: "Gotowka",
|
|
24
|
+
"Bank Transfer": "Przelew bankowy",
|
|
25
|
+
Card: "Karta",
|
|
26
|
+
Check: "Czek",
|
|
27
|
+
Other: "Inne",
|
|
28
|
+
} as const;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Save: "Guardar",
|
|
3
|
+
"Save as Draft": "Guardar como rascunho",
|
|
4
|
+
"Create Advance Invoice": "Criar fatura antecipada",
|
|
5
|
+
"e-SLOG": "e-SLOG",
|
|
6
|
+
"Fiscally verify": "Verificar fiscalmente",
|
|
7
|
+
"Click to skip e-SLOG validation for this advance invoice":
|
|
8
|
+
"Clique para ignorar a validacao e-SLOG para esta fatura antecipada",
|
|
9
|
+
"Click to enable e-SLOG validation": "Clique para ativar a validacao e-SLOG",
|
|
10
|
+
"Click to skip fiscalization for this advance invoice":
|
|
11
|
+
"Clique para ignorar a fiscalizacao para esta fatura antecipada",
|
|
12
|
+
"Click to enable fiscalization": "Clique para ativar a fiscalizacao",
|
|
13
|
+
"Cannot skip fiscalization for cash payments": "Nao e possivel ignorar a fiscalizacao para pagamentos em dinheiro",
|
|
14
|
+
"e-SLOG Validation Failed": "A validacao e-SLOG falhou",
|
|
15
|
+
"The following entity settings need to be updated:":
|
|
16
|
+
"As seguintes configuracoes da entidade precisam ser atualizadas:",
|
|
17
|
+
"Reverse charge - tax exempt EU B2B sale": "Autoliquidacao - venda B2B UE isenta de imposto",
|
|
18
|
+
"Mark as Paid": "Marcar como pago",
|
|
19
|
+
Paid: "Pago",
|
|
20
|
+
"Advance invoice will be marked as fully paid upon creation":
|
|
21
|
+
"A fatura antecipada sera marcada como totalmente paga ao ser criada",
|
|
22
|
+
"Payment Type": "Tipo de pagamento",
|
|
23
|
+
"Select payment type": "Selecione o tipo de pagamento",
|
|
24
|
+
Cash: "Dinheiro",
|
|
25
|
+
"Bank Transfer": "Transferencia bancaria",
|
|
26
|
+
Card: "Cartao",
|
|
27
|
+
Check: "Cheque",
|
|
28
|
+
Other: "Outro",
|
|
29
|
+
} as const;
|
|
@@ -19,7 +19,7 @@ type PrepareOptions = {
|
|
|
19
19
|
originalCustomer: any;
|
|
20
20
|
wasCustomerFormShown?: boolean;
|
|
21
21
|
markAsPaid?: boolean;
|
|
22
|
-
|
|
22
|
+
paymentTypes?: string[];
|
|
23
23
|
/** FURS fiscalization data (for Slovenia) */
|
|
24
24
|
furs?: FursData;
|
|
25
25
|
/** e-SLOG validation data (for Slovenia) */
|
|
@@ -42,9 +42,9 @@ export function prepareAdvanceInvoiceSubmission(
|
|
|
42
42
|
originalCustomer: options.originalCustomer,
|
|
43
43
|
wasCustomerFormShown: options.wasCustomerFormShown,
|
|
44
44
|
markAsPaid: options.markAsPaid,
|
|
45
|
-
|
|
45
|
+
paymentTypes: options.paymentTypes,
|
|
46
46
|
documentType: "advance_invoice",
|
|
47
|
-
secondaryDate: values.date_due,
|
|
47
|
+
secondaryDate: values.date_due ?? undefined,
|
|
48
48
|
priceModes: options.priceModes,
|
|
49
49
|
isDraft: options.isDraft,
|
|
50
50
|
}) as CreateAdvanceInvoiceRequest;
|
|
@@ -17,11 +17,27 @@ import { useSDK } from "@/ui/providers/sdk-provider";
|
|
|
17
17
|
|
|
18
18
|
import AdvanceInvoiceListRowActions 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 AdvanceInvoiceListTableProps = {
|
|
@@ -152,12 +168,13 @@ export default function AdvanceInvoiceListTable({
|
|
|
152
168
|
onDownloadStart={onDownloadStart}
|
|
153
169
|
onDownloadSuccess={onDownloadSuccess}
|
|
154
170
|
onDownloadError={onDownloadError}
|
|
155
|
-
{
|
|
171
|
+
t={t}
|
|
172
|
+
locale={i18nProps.locale}
|
|
156
173
|
/>
|
|
157
174
|
),
|
|
158
175
|
},
|
|
159
176
|
],
|
|
160
|
-
[t, onRowClick, onAddPayment, onDuplicate, onDownloadStart, onDownloadSuccess, onDownloadError, i18nProps],
|
|
177
|
+
[t, onRowClick, onAddPayment, onDuplicate, onDownloadStart, onDownloadSuccess, onDownloadError, i18nProps.locale],
|
|
161
178
|
);
|
|
162
179
|
|
|
163
180
|
return (
|
|
@@ -166,7 +183,7 @@ export default function AdvanceInvoiceListTable({
|
|
|
166
183
|
queryParams={queryParams}
|
|
167
184
|
resourceName="advance_invoice"
|
|
168
185
|
cacheKey="advance-invoices"
|
|
169
|
-
createNewLink=
|
|
186
|
+
createNewLink={entityId ? `/app/${entityId}/documents/add/advance_invoice` : undefined}
|
|
170
187
|
onFetch={handleFetch}
|
|
171
188
|
onChangeParams={onChangeParams}
|
|
172
189
|
entityId={entityId}
|
|
@@ -29,4 +29,13 @@ export default {
|
|
|
29
29
|
Overdue: "Überfällig",
|
|
30
30
|
Voided: "Storniert",
|
|
31
31
|
"Created At": "Erstellt am",
|
|
32
|
+
Unshare: "Freigabe aufheben",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Ihre Liste der Vorauszahlungsrechnungen ist leer",
|
|
35
|
+
"Get started by creating your first entry": "Erstellen Sie Ihre erste Vorauszahlungsrechnung",
|
|
36
|
+
"Create new": "Vorauszahlungsrechnung erstellen",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Keine Vorauszahlungsrechnungen gefunden",
|
|
39
|
+
"Try adjusting your search criteria": "Versuchen Sie, Ihre Suchkriterien anzupassen",
|
|
40
|
+
"Clear search": "Suche zurücksetzen",
|
|
32
41
|
} as const;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Empty state translations
|
|
3
|
+
"Your list is empty": "Your advance invoice list is empty",
|
|
4
|
+
"Get started by creating your first entry": "Get started by creating your first advance invoice",
|
|
5
|
+
"Create new": "Create advance invoice",
|
|
6
|
+
// No results translations
|
|
7
|
+
"No results found": "No advance invoices found",
|
|
8
|
+
} as const;
|