@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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Draft: "Borrador",
|
|
3
|
+
Number: "Numero",
|
|
4
|
+
Customer: "Cliente",
|
|
5
|
+
Date: "Fecha",
|
|
6
|
+
"Date Due": "Fecha de vencimiento",
|
|
7
|
+
Total: "Total",
|
|
8
|
+
"Total with Tax": "Total con impuestos",
|
|
9
|
+
Actions: "Acciones",
|
|
10
|
+
"Open menu": "Abrir menu",
|
|
11
|
+
"Copy advance invoice ID": "Copiar ID de factura anticipada",
|
|
12
|
+
"View advance invoice": "Ver factura anticipada",
|
|
13
|
+
"Add Payment": "Agregar pago",
|
|
14
|
+
"Download PDF": "Descargar PDF",
|
|
15
|
+
"Downloading...": "Descargando...",
|
|
16
|
+
Duplicate: "Duplicar",
|
|
17
|
+
"Advance Invoice": "Factura anticipada",
|
|
18
|
+
"Failed to download PDF": "Error al descargar el PDF",
|
|
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
|
+
Status: "Estado",
|
|
27
|
+
Paid: "Pagado",
|
|
28
|
+
Unpaid: "No pagado",
|
|
29
|
+
Overdue: "Vencido",
|
|
30
|
+
Voided: "Anulado",
|
|
31
|
+
"Created At": "Creado el",
|
|
32
|
+
Unshare: "Dejar de compartir",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Su lista de facturas anticipadas esta vacia",
|
|
35
|
+
"Get started by creating your first entry": "Comience creando su primera factura anticipada",
|
|
36
|
+
"Create new": "Crear factura anticipada",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "No se encontraron facturas anticipadas",
|
|
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
|
+
"Date Due": "Date d'echeance",
|
|
7
|
+
Total: "Total",
|
|
8
|
+
"Total with Tax": "Total TTC",
|
|
9
|
+
Actions: "Actions",
|
|
10
|
+
"Open menu": "Ouvrir le menu",
|
|
11
|
+
"Copy advance invoice ID": "Copier l'ID de la facture d'acompte",
|
|
12
|
+
"View advance invoice": "Voir la facture d'acompte",
|
|
13
|
+
"Add Payment": "Ajouter un paiement",
|
|
14
|
+
"Download PDF": "Telecharger le PDF",
|
|
15
|
+
"Downloading...": "Telechargement...",
|
|
16
|
+
Duplicate: "Dupliquer",
|
|
17
|
+
"Advance Invoice": "Facture d'acompte",
|
|
18
|
+
"Failed to download PDF": "Le telechargement du PDF a echoue",
|
|
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
|
+
Status: "Statut",
|
|
27
|
+
Paid: "Paye",
|
|
28
|
+
Unpaid: "Non paye",
|
|
29
|
+
Overdue: "En retard",
|
|
30
|
+
Voided: "Annule",
|
|
31
|
+
"Created At": "Cree le",
|
|
32
|
+
Unshare: "Supprimer le partage",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Votre liste de factures d'acompte est vide",
|
|
35
|
+
"Get started by creating your first entry": "Commencez par creer votre premiere facture d'acompte",
|
|
36
|
+
"Create new": "Creer une facture d'acompte",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Aucune facture d'acompte trouvee",
|
|
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
|
+
"Date Due": "Datum dospijeca",
|
|
7
|
+
Total: "Ukupno",
|
|
8
|
+
"Total with Tax": "Ukupno s PDV-om",
|
|
9
|
+
Actions: "Akcije",
|
|
10
|
+
"Open menu": "Otvori izbornik",
|
|
11
|
+
"Copy advance invoice ID": "Kopiraj ID avansnog racuna",
|
|
12
|
+
"View advance invoice": "Prikazi avansni racun",
|
|
13
|
+
"Add Payment": "Dodaj placanje",
|
|
14
|
+
"Download PDF": "Preuzmi PDF",
|
|
15
|
+
"Downloading...": "Preuzimanje...",
|
|
16
|
+
Duplicate: "Dupliciraj",
|
|
17
|
+
"Advance Invoice": "Avansni racun",
|
|
18
|
+
"Failed to download PDF": "Preuzimanje PDF-a nije uspjelo",
|
|
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
|
+
Status: "Status",
|
|
27
|
+
Paid: "Placeno",
|
|
28
|
+
Unpaid: "Neplaceno",
|
|
29
|
+
Overdue: "Dospjelo",
|
|
30
|
+
Voided: "Stornirano",
|
|
31
|
+
"Created At": "Kreirano",
|
|
32
|
+
Unshare: "Ukloni dijeljenje",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Vasa lista avansnih racuna je prazna",
|
|
35
|
+
"Get started by creating your first entry": "Pocnite kreiranjem prvog avansnog racuna",
|
|
36
|
+
"Create new": "Kreiraj avansni racun",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Nije pronadjen nijedan avansni racun",
|
|
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
|
+
"Date Due": "Data di scadenza",
|
|
7
|
+
Total: "Totale",
|
|
8
|
+
"Total with Tax": "Totale con IVA",
|
|
9
|
+
Actions: "Azioni",
|
|
10
|
+
"Open menu": "Apri menu",
|
|
11
|
+
"Copy advance invoice ID": "Copia ID fattura anticipata",
|
|
12
|
+
"View advance invoice": "Visualizza fattura anticipata",
|
|
13
|
+
"Add Payment": "Aggiungi pagamento",
|
|
14
|
+
"Download PDF": "Scarica PDF",
|
|
15
|
+
"Downloading...": "Download in corso...",
|
|
16
|
+
Duplicate: "Duplica",
|
|
17
|
+
"Advance Invoice": "Fattura anticipata",
|
|
18
|
+
"Failed to download PDF": "Download del PDF non riuscito",
|
|
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
|
+
Status: "Stato",
|
|
27
|
+
Paid: "Pagato",
|
|
28
|
+
Unpaid: "Non pagato",
|
|
29
|
+
Overdue: "Scaduto",
|
|
30
|
+
Voided: "Annullato",
|
|
31
|
+
"Created At": "Creato il",
|
|
32
|
+
Unshare: "Rimuovi condivisione",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "La lista delle fatture anticipate e vuota",
|
|
35
|
+
"Get started by creating your first entry": "Inizia creando la tua prima fattura anticipata",
|
|
36
|
+
"Create new": "Crea fattura anticipata",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Nessuna fattura anticipata 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
|
+
"Date Due": "Vervaldatum",
|
|
7
|
+
Total: "Totaal",
|
|
8
|
+
"Total with Tax": "Totaal met btw",
|
|
9
|
+
Actions: "Acties",
|
|
10
|
+
"Open menu": "Menu openen",
|
|
11
|
+
"Copy advance invoice ID": "Voorschotfactuur-ID kopieren",
|
|
12
|
+
"View advance invoice": "Voorschotfactuur bekijken",
|
|
13
|
+
"Add Payment": "Betaling toevoegen",
|
|
14
|
+
"Download PDF": "PDF downloaden",
|
|
15
|
+
"Downloading...": "Downloaden...",
|
|
16
|
+
Duplicate: "Dupliceren",
|
|
17
|
+
"Advance Invoice": "Voorschotfactuur",
|
|
18
|
+
"Failed to download PDF": "PDF downloaden mislukt",
|
|
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
|
+
Status: "Status",
|
|
27
|
+
Paid: "Betaald",
|
|
28
|
+
Unpaid: "Onbetaald",
|
|
29
|
+
Overdue: "Achterstallig",
|
|
30
|
+
Voided: "Nietig verklaard",
|
|
31
|
+
"Created At": "Aangemaakt op",
|
|
32
|
+
Unshare: "Delen opheffen",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Uw lijst met voorschotfacturen is leeg",
|
|
35
|
+
"Get started by creating your first entry": "Begin met het aanmaken van uw eerste voorschotfactuur",
|
|
36
|
+
"Create new": "Voorschotfactuur aanmaken",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Geen voorschotfacturen 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
|
+
"Date Due": "Termin platnosci",
|
|
7
|
+
Total: "Suma",
|
|
8
|
+
"Total with Tax": "Suma z podatkiem",
|
|
9
|
+
Actions: "Akcje",
|
|
10
|
+
"Open menu": "Otworz menu",
|
|
11
|
+
"Copy advance invoice ID": "Kopiuj ID faktury zaliczkowej",
|
|
12
|
+
"View advance invoice": "Pokaz fakture zaliczkowa",
|
|
13
|
+
"Add Payment": "Dodaj platnosc",
|
|
14
|
+
"Download PDF": "Pobierz PDF",
|
|
15
|
+
"Downloading...": "Pobieranie...",
|
|
16
|
+
Duplicate: "Duplikuj",
|
|
17
|
+
"Advance Invoice": "Faktura zaliczkowa",
|
|
18
|
+
"Failed to download PDF": "Nie udalo sie pobrac PDF",
|
|
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
|
+
Status: "Status",
|
|
27
|
+
Paid: "Oplacone",
|
|
28
|
+
Unpaid: "Nieoplacone",
|
|
29
|
+
Overdue: "Zaległe",
|
|
30
|
+
Voided: "Anulowane",
|
|
31
|
+
"Created At": "Utworzono",
|
|
32
|
+
Unshare: "Cofnij udostepnienie",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Twoja lista faktur zaliczkowych jest pusta",
|
|
35
|
+
"Get started by creating your first entry": "Zacznij od utworzenia pierwszej faktury zaliczkowej",
|
|
36
|
+
"Create new": "Utworz fakture zaliczkowa",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Nie znaleziono faktur zaliczkowych",
|
|
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
|
+
"Date Due": "Data de vencimento",
|
|
7
|
+
Total: "Total",
|
|
8
|
+
"Total with Tax": "Total com imposto",
|
|
9
|
+
Actions: "Acoes",
|
|
10
|
+
"Open menu": "Abrir menu",
|
|
11
|
+
"Copy advance invoice ID": "Copiar ID da fatura antecipada",
|
|
12
|
+
"View advance invoice": "Ver fatura antecipada",
|
|
13
|
+
"Add Payment": "Adicionar pagamento",
|
|
14
|
+
"Download PDF": "Transferir PDF",
|
|
15
|
+
"Downloading...": "A transferir...",
|
|
16
|
+
Duplicate: "Duplicar",
|
|
17
|
+
"Advance Invoice": "Fatura antecipada",
|
|
18
|
+
"Failed to download PDF": "Falha ao transferir o PDF",
|
|
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
|
+
Status: "Estado",
|
|
27
|
+
Paid: "Pago",
|
|
28
|
+
Unpaid: "Nao pago",
|
|
29
|
+
Overdue: "Vencido",
|
|
30
|
+
Voided: "Anulado",
|
|
31
|
+
"Created At": "Criado em",
|
|
32
|
+
Unshare: "Remover partilha",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "A sua lista de faturas antecipadas esta vazia",
|
|
35
|
+
"Get started by creating your first entry": "Comece criando a sua primeira fatura antecipada",
|
|
36
|
+
"Create new": "Criar fatura antecipada",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Nenhuma fatura antecipada encontrada",
|
|
39
|
+
"Try adjusting your search criteria": "Tente ajustar os seus criterios de pesquisa",
|
|
40
|
+
"Clear search": "Limpar pesquisa",
|
|
41
|
+
} as const;
|
|
@@ -29,4 +29,13 @@ export default {
|
|
|
29
29
|
Overdue: "Zapadlo",
|
|
30
30
|
Voided: "Stornirano",
|
|
31
31
|
"Created At": "Ustvarjeno",
|
|
32
|
+
Unshare: "Odstrani deljenje",
|
|
33
|
+
// Empty state translations
|
|
34
|
+
"Your list is empty": "Vaš seznam avansnih računov je prazen",
|
|
35
|
+
"Get started by creating your first entry": "Začnite z ustvarjanjem prvega avansnega računa",
|
|
36
|
+
"Create new": "Ustvari avansni račun",
|
|
37
|
+
// No results translations
|
|
38
|
+
"No results found": "Ni najdenih avansnih računov",
|
|
39
|
+
"Try adjusting your search criteria": "Poskusite prilagoditi iskalne kriterije",
|
|
40
|
+
"Clear search": "Počisti iskanje",
|
|
32
41
|
} as const;
|
|
@@ -26,11 +26,25 @@ import { useDocumentCustomerForm } from "../../documents/create/use-document-cus
|
|
|
26
26
|
import type { DocumentTypes } from "../../documents/types";
|
|
27
27
|
import { useCreateCreditNote } from "../credit-notes.hooks";
|
|
28
28
|
import de from "./locales/de";
|
|
29
|
+
import es from "./locales/es";
|
|
30
|
+
import fr from "./locales/fr";
|
|
31
|
+
import hr from "./locales/hr";
|
|
32
|
+
import it from "./locales/it";
|
|
33
|
+
import nl from "./locales/nl";
|
|
34
|
+
import pl from "./locales/pl";
|
|
35
|
+
import pt from "./locales/pt";
|
|
29
36
|
import sl from "./locales/sl";
|
|
30
37
|
|
|
31
38
|
const translations = {
|
|
32
39
|
sl,
|
|
33
40
|
de,
|
|
41
|
+
it,
|
|
42
|
+
fr,
|
|
43
|
+
es,
|
|
44
|
+
pt,
|
|
45
|
+
nl,
|
|
46
|
+
pl,
|
|
47
|
+
hr,
|
|
34
48
|
} as const;
|
|
35
49
|
|
|
36
50
|
// Form values: extend schema with local-only fields (number is for display, not sent to API)
|
|
@@ -81,7 +95,7 @@ export default function CreateCreditNoteForm({
|
|
|
81
95
|
|
|
82
96
|
// UI-only state (not part of API schema)
|
|
83
97
|
const [markAsPaid, setMarkAsPaid] = useState(false);
|
|
84
|
-
const [
|
|
98
|
+
const [paymentTypes, setPaymentTypes] = useState<string[]>(["bank_transfer"]);
|
|
85
99
|
const [isDraftPending, setIsDraftPending] = useState(false);
|
|
86
100
|
|
|
87
101
|
// Price modes per item (gross vs net) - collected from component state at submit
|
|
@@ -171,14 +185,14 @@ export default function CreateCreditNoteForm({
|
|
|
171
185
|
originalCustomer,
|
|
172
186
|
wasCustomerFormShown: showCustomerForm,
|
|
173
187
|
markAsPaid: isDraft ? false : markAsPaid,
|
|
174
|
-
|
|
188
|
+
paymentTypes,
|
|
175
189
|
documentType: "credit_note",
|
|
176
190
|
priceModes: priceModesRef.current,
|
|
177
191
|
isDraft,
|
|
178
192
|
});
|
|
179
193
|
createCreditNote(payload as CreateCreditNoteRequest);
|
|
180
194
|
},
|
|
181
|
-
[createCreditNote, markAsPaid, originalCustomer,
|
|
195
|
+
[createCreditNote, markAsPaid, originalCustomer, paymentTypes, showCustomerForm],
|
|
182
196
|
);
|
|
183
197
|
|
|
184
198
|
// Handle save as draft
|
|
@@ -282,8 +296,8 @@ export default function CreateCreditNoteForm({
|
|
|
282
296
|
<MarkAsPaidSection
|
|
283
297
|
checked={markAsPaid}
|
|
284
298
|
onCheckedChange={setMarkAsPaid}
|
|
285
|
-
|
|
286
|
-
|
|
299
|
+
paymentTypes={paymentTypes}
|
|
300
|
+
onPaymentTypesChange={setPaymentTypes}
|
|
287
301
|
t={t}
|
|
288
302
|
/>
|
|
289
303
|
</DocumentDetailsSection>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Recipient: "Destinatario",
|
|
3
|
+
Name: "Nombre",
|
|
4
|
+
Details: "Detalles",
|
|
5
|
+
Number: "Numero",
|
|
6
|
+
Date: "Fecha",
|
|
7
|
+
"Pick a date": "Seleccionar fecha",
|
|
8
|
+
"Due Date": "Fecha de vencimiento",
|
|
9
|
+
"Valid Until": "Valido hasta",
|
|
10
|
+
Items: "Articulos",
|
|
11
|
+
"Add item": "Agregar articulo",
|
|
12
|
+
Save: "Guardar",
|
|
13
|
+
"Save as Draft": "Guardar como borrador",
|
|
14
|
+
Quantity: "Cantidad",
|
|
15
|
+
Price: "Precio",
|
|
16
|
+
Unit: "Unidad",
|
|
17
|
+
Discount: "Descuento",
|
|
18
|
+
Tax: "Impuesto",
|
|
19
|
+
"Tax rate": "Tasa impositiva",
|
|
20
|
+
"Add tax": "Agregar impuesto",
|
|
21
|
+
"Select tax...": "Seleccionar impuesto...",
|
|
22
|
+
"Loading...": "Cargando...",
|
|
23
|
+
"No taxes found": "No se encontraron impuestos",
|
|
24
|
+
"Add new tax...": "Agregar nuevo impuesto...",
|
|
25
|
+
Description: "Descripcion",
|
|
26
|
+
"Mark as Paid": "Marcar como pagado",
|
|
27
|
+
Paid: "Pagado",
|
|
28
|
+
"Credit note will be marked as fully paid upon creation":
|
|
29
|
+
"La nota de credito se marcara como totalmente pagada al crearla",
|
|
30
|
+
"Payment Type": "Tipo de pago",
|
|
31
|
+
"Select payment type": "Seleccione tipo de pago",
|
|
32
|
+
Cash: "Efectivo",
|
|
33
|
+
"Bank Transfer": "Transferencia bancaria",
|
|
34
|
+
Card: "Tarjeta",
|
|
35
|
+
Check: "Cheque",
|
|
36
|
+
Other: "Otro",
|
|
37
|
+
// Note field
|
|
38
|
+
Note: "Nota",
|
|
39
|
+
"Insert variable": "Insertar variable",
|
|
40
|
+
"Add payment instructions, terms, or other notes...": "Agregue instrucciones de pago, terminos u otras notas...",
|
|
41
|
+
// Payment terms field
|
|
42
|
+
"Payment Terms": "Terminos de pago",
|
|
43
|
+
"Add payment terms...": "Agregue terminos de pago...",
|
|
44
|
+
// Recipient fields
|
|
45
|
+
"Search or create customer...": "Buscar o crear cliente...",
|
|
46
|
+
Clear: "Limpiar",
|
|
47
|
+
Address: "Direccion",
|
|
48
|
+
"Address 2": "Direccion 2",
|
|
49
|
+
"Post Code": "Codigo postal",
|
|
50
|
+
City: "Ciudad",
|
|
51
|
+
State: "Estado",
|
|
52
|
+
Country: "Pais",
|
|
53
|
+
"Tax Number": "Numero fiscal",
|
|
54
|
+
// Currency
|
|
55
|
+
Currency: "Moneda",
|
|
56
|
+
"Select currency": "Seleccionar moneda",
|
|
57
|
+
// Discount types
|
|
58
|
+
"Percentage discount": "Descuento porcentual",
|
|
59
|
+
"Fixed amount discount": "Descuento fijo",
|
|
60
|
+
Percentage: "Porcentaje",
|
|
61
|
+
"Fixed amount": "Monto fijo",
|
|
62
|
+
"Taxes disabled": "Impuestos desactivados",
|
|
63
|
+
// Gross price support
|
|
64
|
+
"Gross price": "Precio bruto",
|
|
65
|
+
"Net price": "Precio neto",
|
|
66
|
+
"Gross price (tax included)": "Precio bruto (impuestos incluidos)",
|
|
67
|
+
"Net price (before tax)": "Precio neto (antes de impuestos)",
|
|
68
|
+
} as const;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Recipient: "Destinataire",
|
|
3
|
+
Name: "Nom",
|
|
4
|
+
Details: "Details",
|
|
5
|
+
Number: "Numero",
|
|
6
|
+
Date: "Date",
|
|
7
|
+
"Pick a date": "Choisir une date",
|
|
8
|
+
"Due Date": "Date d'echeance",
|
|
9
|
+
"Valid Until": "Valable jusqu'au",
|
|
10
|
+
Items: "Articles",
|
|
11
|
+
"Add item": "Ajouter un article",
|
|
12
|
+
Save: "Enregistrer",
|
|
13
|
+
"Save as Draft": "Enregistrer comme brouillon",
|
|
14
|
+
Quantity: "Quantite",
|
|
15
|
+
Price: "Prix",
|
|
16
|
+
Unit: "Unite",
|
|
17
|
+
Discount: "Remise",
|
|
18
|
+
Tax: "Taxe",
|
|
19
|
+
"Tax rate": "Taux de taxe",
|
|
20
|
+
"Add tax": "Ajouter une taxe",
|
|
21
|
+
"Select tax...": "Selectionner une taxe...",
|
|
22
|
+
"Loading...": "Chargement...",
|
|
23
|
+
"No taxes found": "Aucune taxe trouvee",
|
|
24
|
+
"Add new tax...": "Ajouter une nouvelle taxe...",
|
|
25
|
+
Description: "Description",
|
|
26
|
+
"Mark as Paid": "Marquer comme paye",
|
|
27
|
+
Paid: "Paye",
|
|
28
|
+
"Credit note will be marked as fully paid upon creation":
|
|
29
|
+
"L'avoir sera marque comme entierement paye lors de la creation",
|
|
30
|
+
"Payment Type": "Type de paiement",
|
|
31
|
+
"Select payment type": "Selectionnez le type de paiement",
|
|
32
|
+
Cash: "Especes",
|
|
33
|
+
"Bank Transfer": "Virement bancaire",
|
|
34
|
+
Card: "Carte",
|
|
35
|
+
Check: "Cheque",
|
|
36
|
+
Other: "Autre",
|
|
37
|
+
// Note field
|
|
38
|
+
Note: "Note",
|
|
39
|
+
"Insert variable": "Inserer une variable",
|
|
40
|
+
"Add payment instructions, terms, or other notes...":
|
|
41
|
+
"Ajoutez des instructions de paiement, des conditions ou d'autres notes...",
|
|
42
|
+
// Payment terms field
|
|
43
|
+
"Payment Terms": "Conditions de paiement",
|
|
44
|
+
"Add payment terms...": "Ajoutez des conditions de paiement...",
|
|
45
|
+
// Recipient fields
|
|
46
|
+
"Search or create customer...": "Rechercher ou creer un client...",
|
|
47
|
+
Clear: "Effacer",
|
|
48
|
+
Address: "Adresse",
|
|
49
|
+
"Address 2": "Adresse 2",
|
|
50
|
+
"Post Code": "Code postal",
|
|
51
|
+
City: "Ville",
|
|
52
|
+
State: "Region",
|
|
53
|
+
Country: "Pays",
|
|
54
|
+
"Tax Number": "Numero de TVA",
|
|
55
|
+
// Currency
|
|
56
|
+
Currency: "Devise",
|
|
57
|
+
"Select currency": "Selectionner la devise",
|
|
58
|
+
// Discount types
|
|
59
|
+
"Percentage discount": "Remise en pourcentage",
|
|
60
|
+
"Fixed amount discount": "Remise fixe",
|
|
61
|
+
Percentage: "Pourcentage",
|
|
62
|
+
"Fixed amount": "Montant fixe",
|
|
63
|
+
"Taxes disabled": "Taxes desactivees",
|
|
64
|
+
// Gross price support
|
|
65
|
+
"Gross price": "Prix brut",
|
|
66
|
+
"Net price": "Prix net",
|
|
67
|
+
"Gross price (tax included)": "Prix brut (taxes comprises)",
|
|
68
|
+
"Net price (before tax)": "Prix net (hors taxes)",
|
|
69
|
+
} as const;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Recipient: "Primatelj",
|
|
3
|
+
Name: "Naziv",
|
|
4
|
+
Details: "Pojedinosti",
|
|
5
|
+
Number: "Broj",
|
|
6
|
+
Date: "Datum",
|
|
7
|
+
"Pick a date": "Odaberi datum",
|
|
8
|
+
"Due Date": "Rok placanja",
|
|
9
|
+
"Valid Until": "Vrijedi do",
|
|
10
|
+
Items: "Stavke",
|
|
11
|
+
"Add item": "Dodaj stavku",
|
|
12
|
+
Save: "Spremi",
|
|
13
|
+
"Save as Draft": "Spremi kao skicu",
|
|
14
|
+
Quantity: "Kolicina",
|
|
15
|
+
Price: "Cijena",
|
|
16
|
+
Unit: "Jedinica",
|
|
17
|
+
Discount: "Popust",
|
|
18
|
+
Tax: "Porez",
|
|
19
|
+
"Tax rate": "Porezna stopa",
|
|
20
|
+
"Add tax": "Dodaj porez",
|
|
21
|
+
"Select tax...": "Odaberi porez...",
|
|
22
|
+
"Loading...": "Ucitavanje...",
|
|
23
|
+
"No taxes found": "Nisu pronadjeni porezi",
|
|
24
|
+
"Add new tax...": "Dodaj novi porez...",
|
|
25
|
+
Description: "Opis",
|
|
26
|
+
"Mark as Paid": "Oznaci kao placeno",
|
|
27
|
+
Paid: "Placeno",
|
|
28
|
+
"Credit note will be marked as fully paid upon creation":
|
|
29
|
+
"Odobrenje ce biti oznaceno kao u potpunosti placeno pri kreiranju",
|
|
30
|
+
"Payment Type": "Vrsta placanja",
|
|
31
|
+
"Select payment type": "Odaberite vrstu placanja",
|
|
32
|
+
Cash: "Gotovina",
|
|
33
|
+
"Bank Transfer": "Bankovni prijenos",
|
|
34
|
+
Card: "Kartica",
|
|
35
|
+
Check: "Cek",
|
|
36
|
+
Other: "Ostalo",
|
|
37
|
+
// Note field
|
|
38
|
+
Note: "Napomena",
|
|
39
|
+
"Insert variable": "Umetni varijablu",
|
|
40
|
+
"Add payment instructions, terms, or other notes...": "Dodajte upute za placanje, uvjete ili druge napomene...",
|
|
41
|
+
// Payment terms field
|
|
42
|
+
"Payment Terms": "Uvjeti placanja",
|
|
43
|
+
"Add payment terms...": "Dodajte uvjete placanja...",
|
|
44
|
+
// Recipient fields
|
|
45
|
+
"Search or create customer...": "Pretrazi ili kreiraj kupca...",
|
|
46
|
+
Clear: "Ocisti",
|
|
47
|
+
Address: "Adresa",
|
|
48
|
+
"Address 2": "Adresa 2",
|
|
49
|
+
"Post Code": "Postanski broj",
|
|
50
|
+
City: "Grad",
|
|
51
|
+
State: "Zupanija",
|
|
52
|
+
Country: "Drzava",
|
|
53
|
+
"Tax Number": "OIB",
|
|
54
|
+
// Currency
|
|
55
|
+
Currency: "Valuta",
|
|
56
|
+
"Select currency": "Odaberi valutu",
|
|
57
|
+
// Discount types
|
|
58
|
+
"Percentage discount": "Postotni popust",
|
|
59
|
+
"Fixed amount discount": "Fiksni popust",
|
|
60
|
+
Percentage: "Postotak",
|
|
61
|
+
"Fixed amount": "Fiksni iznos",
|
|
62
|
+
"Taxes disabled": "Porezi onemoguceni",
|
|
63
|
+
// Gross price support
|
|
64
|
+
"Gross price": "Bruto cijena",
|
|
65
|
+
"Net price": "Neto cijena",
|
|
66
|
+
"Gross price (tax included)": "Bruto cijena (s porezom)",
|
|
67
|
+
"Net price (before tax)": "Neto cijena (bez poreza)",
|
|
68
|
+
} as const;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Recipient: "Destinatario",
|
|
3
|
+
Name: "Nome",
|
|
4
|
+
Details: "Dettagli",
|
|
5
|
+
Number: "Numero",
|
|
6
|
+
Date: "Data",
|
|
7
|
+
"Pick a date": "Seleziona una data",
|
|
8
|
+
"Due Date": "Data di scadenza",
|
|
9
|
+
"Valid Until": "Valido fino al",
|
|
10
|
+
Items: "Voci",
|
|
11
|
+
"Add item": "Aggiungi voce",
|
|
12
|
+
Save: "Salva",
|
|
13
|
+
"Save as Draft": "Salva come bozza",
|
|
14
|
+
Quantity: "Quantita",
|
|
15
|
+
Price: "Prezzo",
|
|
16
|
+
Unit: "Unita",
|
|
17
|
+
Discount: "Sconto",
|
|
18
|
+
Tax: "Imposta",
|
|
19
|
+
"Tax rate": "Aliquota fiscale",
|
|
20
|
+
"Add tax": "Aggiungi imposta",
|
|
21
|
+
"Select tax...": "Seleziona imposta...",
|
|
22
|
+
"Loading...": "Caricamento...",
|
|
23
|
+
"No taxes found": "Nessuna imposta trovata",
|
|
24
|
+
"Add new tax...": "Aggiungi nuova imposta...",
|
|
25
|
+
Description: "Descrizione",
|
|
26
|
+
"Mark as Paid": "Segna come pagato",
|
|
27
|
+
Paid: "Pagato",
|
|
28
|
+
"Credit note will be marked as fully paid upon creation":
|
|
29
|
+
"La nota di credito sara contrassegnata come completamente pagata al momento della creazione",
|
|
30
|
+
"Payment Type": "Tipo di pagamento",
|
|
31
|
+
"Select payment type": "Seleziona tipo di pagamento",
|
|
32
|
+
Cash: "Contanti",
|
|
33
|
+
"Bank Transfer": "Bonifico bancario",
|
|
34
|
+
Card: "Carta",
|
|
35
|
+
Check: "Assegno",
|
|
36
|
+
Other: "Altro",
|
|
37
|
+
// Note field
|
|
38
|
+
Note: "Nota",
|
|
39
|
+
"Insert variable": "Inserisci variabile",
|
|
40
|
+
"Add payment instructions, terms, or other notes...": "Aggiungi istruzioni di pagamento, termini o altre note...",
|
|
41
|
+
// Payment terms field
|
|
42
|
+
"Payment Terms": "Termini di pagamento",
|
|
43
|
+
"Add payment terms...": "Aggiungi termini di pagamento...",
|
|
44
|
+
// Recipient fields
|
|
45
|
+
"Search or create customer...": "Cerca o crea cliente...",
|
|
46
|
+
Clear: "Cancella",
|
|
47
|
+
Address: "Indirizzo",
|
|
48
|
+
"Address 2": "Indirizzo 2",
|
|
49
|
+
"Post Code": "CAP",
|
|
50
|
+
City: "Citta",
|
|
51
|
+
State: "Regione",
|
|
52
|
+
Country: "Paese",
|
|
53
|
+
"Tax Number": "Partita IVA",
|
|
54
|
+
// Currency
|
|
55
|
+
Currency: "Valuta",
|
|
56
|
+
"Select currency": "Seleziona valuta",
|
|
57
|
+
// Discount types
|
|
58
|
+
"Percentage discount": "Sconto percentuale",
|
|
59
|
+
"Fixed amount discount": "Sconto fisso",
|
|
60
|
+
Percentage: "Percentuale",
|
|
61
|
+
"Fixed amount": "Importo fisso",
|
|
62
|
+
"Taxes disabled": "Imposte disabilitate",
|
|
63
|
+
// Gross price support
|
|
64
|
+
"Gross price": "Prezzo lordo",
|
|
65
|
+
"Net price": "Prezzo netto",
|
|
66
|
+
"Gross price (tax included)": "Prezzo lordo (imposte incluse)",
|
|
67
|
+
"Net price (before tax)": "Prezzo netto (prima delle imposte)",
|
|
68
|
+
} as const;
|