@spaceinvoices/react-ui 0.4.1 → 0.4.3
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 +25 -0
- package/src/components/advance-invoices/advance-invoices.hooks.ts +32 -2
- package/src/components/advance-invoices/create/create-advance-invoice-form.tsx +109 -4
- package/src/components/advance-invoices/create/locales/de.ts +2 -0
- package/src/components/advance-invoices/create/locales/es.ts +2 -0
- package/src/components/advance-invoices/create/locales/fr.ts +2 -0
- package/src/components/advance-invoices/create/locales/hr.ts +2 -0
- package/src/components/advance-invoices/create/locales/it.ts +2 -0
- package/src/components/advance-invoices/create/locales/nl.ts +2 -0
- package/src/components/advance-invoices/create/locales/pl.ts +2 -0
- package/src/components/advance-invoices/create/locales/pt.ts +2 -0
- package/src/components/advance-invoices/create/locales/sl.ts +2 -0
- package/src/components/advance-invoices/create/prepare-advance-invoice-submission.ts +17 -0
- package/src/components/advance-invoices/list/list-row-actions.tsx +3 -6
- package/src/components/advance-invoices/list/list-table.tsx +105 -2
- package/src/components/advance-invoices/list/locales/de.ts +4 -0
- package/src/components/advance-invoices/list/locales/en.ts +4 -0
- package/src/components/advance-invoices/list/locales/es.ts +4 -0
- package/src/components/advance-invoices/list/locales/fr.ts +4 -0
- package/src/components/advance-invoices/list/locales/hr.ts +4 -0
- package/src/components/advance-invoices/list/locales/it.ts +4 -0
- package/src/components/advance-invoices/list/locales/nl.ts +4 -0
- package/src/components/advance-invoices/list/locales/pl.ts +4 -0
- package/src/components/advance-invoices/list/locales/pt.ts +4 -0
- package/src/components/advance-invoices/list/locales/sl.ts +4 -0
- package/src/components/credit-notes/create/create-credit-note-form.tsx +177 -6
- package/src/components/credit-notes/create/locales/de.ts +8 -0
- package/src/components/credit-notes/create/locales/es.ts +8 -0
- package/src/components/credit-notes/create/locales/fr.ts +7 -0
- package/src/components/credit-notes/create/locales/hr.ts +7 -0
- package/src/components/credit-notes/create/locales/it.ts +9 -0
- package/src/components/credit-notes/create/locales/nl.ts +7 -0
- package/src/components/credit-notes/create/locales/pl.ts +7 -0
- package/src/components/credit-notes/create/locales/pt.ts +7 -0
- package/src/components/credit-notes/create/locales/sl.ts +7 -0
- package/src/components/credit-notes/credit-notes.hooks.ts +30 -0
- package/src/components/credit-notes/list/list-row-actions.tsx +3 -6
- package/src/components/credit-notes/list/list-table.tsx +79 -8
- package/src/components/credit-notes/list/locales/de.ts +4 -1
- package/src/components/credit-notes/list/locales/en.ts +5 -0
- package/src/components/credit-notes/list/locales/es.ts +4 -1
- package/src/components/credit-notes/list/locales/fr.ts +4 -1
- package/src/components/credit-notes/list/locales/hr.ts +4 -1
- package/src/components/credit-notes/list/locales/it.ts +4 -1
- package/src/components/credit-notes/list/locales/nl.ts +4 -1
- package/src/components/credit-notes/list/locales/pl.ts +4 -1
- package/src/components/credit-notes/list/locales/pt.ts +4 -1
- package/src/components/credit-notes/list/locales/sl.ts +4 -1
- package/src/components/customers/create-customer-form/create-customer-form.tsx +0 -1
- package/src/components/dashboard/collection-rate-card/use-collection-rate.ts +2 -2
- package/src/components/dashboard/invoice-status-chart/use-invoice-status.ts +3 -3
- package/src/components/dashboard/payment-methods-chart/use-payment-methods.ts +1 -1
- package/src/components/dashboard/payment-trend-chart/use-payment-trend.ts +1 -1
- package/src/components/dashboard/revenue-trend-chart/use-revenue-trend.ts +1 -1
- package/src/components/dashboard/shared/use-revenue-data.ts +4 -4
- package/src/components/dashboard/shared/use-stats-counts.ts +4 -4
- package/src/components/dashboard/shared/use-stats-query.ts +1 -1
- package/src/components/dashboard/tax-collected-card/use-tax-collected.ts +2 -2
- package/src/components/dashboard/top-customers-chart/use-top-customers.ts +1 -1
- package/src/components/delivery-notes/create/create-delivery-note-form.tsx +332 -0
- package/src/components/delivery-notes/create/locales/de.ts +50 -0
- package/src/components/delivery-notes/create/locales/es.ts +49 -0
- package/src/components/delivery-notes/create/locales/fr.ts +50 -0
- package/src/components/delivery-notes/create/locales/hr.ts +49 -0
- package/src/components/delivery-notes/create/locales/it.ts +49 -0
- package/src/components/delivery-notes/create/locales/nl.ts +50 -0
- package/src/components/delivery-notes/create/locales/pl.ts +49 -0
- package/src/components/delivery-notes/create/locales/pt.ts +50 -0
- package/src/components/delivery-notes/create/locales/sl.ts +49 -0
- package/src/components/delivery-notes/create/prepare-delivery-note-submission.ts +38 -0
- package/src/components/delivery-notes/create/use-delivery-note-customer-form.ts +1 -0
- package/src/components/delivery-notes/delivery-notes.hooks.ts +15 -0
- package/src/components/delivery-notes/list/index.ts +3 -0
- package/src/components/delivery-notes/list/list-row-actions.tsx +103 -0
- package/src/components/delivery-notes/list/list-table.tsx +214 -0
- package/src/components/delivery-notes/list/locales/de.ts +9 -0
- package/src/components/delivery-notes/list/locales/en.ts +11 -0
- package/src/components/delivery-notes/list/locales/es.ts +9 -0
- package/src/components/delivery-notes/list/locales/fr.ts +9 -0
- package/src/components/delivery-notes/list/locales/hr.ts +9 -0
- package/src/components/delivery-notes/list/locales/it.ts +9 -0
- package/src/components/delivery-notes/list/locales/nl.ts +9 -0
- package/src/components/delivery-notes/list/locales/pl.ts +9 -0
- package/src/components/delivery-notes/list/locales/pt.ts +9 -0
- package/src/components/delivery-notes/list/locales/sl.ts +9 -0
- package/src/components/delivery-notes/list/use-delivery-note-download.ts +63 -0
- package/src/components/documents/create/document-details-section.tsx +103 -33
- package/src/components/documents/create/live-preview.tsx +37 -10
- package/src/components/documents/create/mark-as-paid-section.tsx +11 -2
- package/src/components/documents/create/prepare-document-submission.ts +1 -1
- package/src/components/documents/documents.hooks.ts +2 -1
- package/src/components/documents/shared/document-preview-display.tsx +12 -5
- package/src/components/documents/types.ts +10 -1
- package/src/components/documents/view/document-actions-bar.tsx +30 -0
- package/src/components/documents/view/document-details-card.tsx +3 -3
- package/src/components/documents/view/document-payments-list.tsx +3 -3
- package/src/components/documents/view/document-relations-list.tsx +105 -0
- package/src/components/documents/view/locales/de.ts +26 -0
- package/src/components/documents/view/locales/es.ts +26 -0
- package/src/components/documents/view/locales/fr.ts +26 -0
- package/src/components/documents/view/locales/hr.ts +26 -0
- package/src/components/documents/view/locales/it.ts +26 -0
- package/src/components/documents/view/locales/nl.ts +26 -0
- package/src/components/documents/view/locales/pl.ts +26 -0
- package/src/components/documents/view/locales/pt.ts +26 -0
- package/src/components/documents/view/locales/sl.ts +26 -0
- package/src/components/documents/view/use-document-download.ts +5 -3
- package/src/components/entities/create-entity-form.tsx +1 -1
- package/src/components/entities/entity-settings-form/entity-settings-form.tsx +2 -3
- package/src/components/entities/entity-settings-form/locales/es.ts +2 -0
- package/src/components/entities/entity-settings-form/locales/fr.ts +2 -0
- package/src/components/entities/entity-settings-form/locales/hr.ts +2 -0
- package/src/components/entities/entity-settings-form/locales/it.ts +2 -0
- package/src/components/entities/entity-settings-form/locales/nl.ts +2 -0
- package/src/components/entities/entity-settings-form/locales/pl.ts +2 -0
- package/src/components/entities/entity-settings-form/locales/pt.ts +2 -0
- package/src/components/entities/fina-settings-form/fina-operator-required-dialog.tsx +109 -0
- package/src/components/entities/fina-settings-form/fina-settings-form.tsx +377 -35
- package/src/components/entities/fina-settings-form/fina-settings.hooks.ts +106 -20
- package/src/components/entities/fina-settings-form/index.ts +1 -0
- package/src/components/entities/fina-settings-form/locales/de.ts +54 -34
- package/src/components/entities/fina-settings-form/locales/en.ts +51 -34
- package/src/components/entities/fina-settings-form/locales/es.ts +50 -34
- package/src/components/entities/fina-settings-form/locales/fr.ts +50 -34
- package/src/components/entities/fina-settings-form/locales/hr.ts +50 -34
- package/src/components/entities/fina-settings-form/locales/it.ts +50 -34
- package/src/components/entities/fina-settings-form/locales/nl.ts +50 -34
- package/src/components/entities/fina-settings-form/locales/pl.ts +50 -34
- package/src/components/entities/fina-settings-form/locales/pt.ts +50 -34
- package/src/components/entities/fina-settings-form/locales/sl.ts +50 -34
- package/src/components/entities/fina-settings-form/sections/certificate-settings-section.tsx +18 -0
- package/src/components/entities/fina-settings-form/sections/premises-management-section.tsx +64 -89
- package/src/components/entities/fina-settings-form/sections/register-premise-dialog.tsx +51 -323
- package/src/components/entities/furs-settings-form/furs-operator-required-dialog.tsx +106 -0
- package/src/components/entities/furs-settings-form/furs-settings-form.tsx +33 -10
- package/src/components/entities/furs-settings-form/furs-settings.hooks.ts +12 -11
- package/src/components/entities/furs-settings-form/index.ts +1 -0
- package/src/components/entities/furs-settings-form/locales/de.ts +27 -3
- package/src/components/entities/furs-settings-form/locales/en.ts +17 -3
- package/src/components/entities/furs-settings-form/locales/es.ts +26 -3
- package/src/components/entities/furs-settings-form/locales/fr.ts +26 -3
- package/src/components/entities/furs-settings-form/locales/hr.ts +26 -3
- package/src/components/entities/furs-settings-form/locales/it.ts +26 -3
- package/src/components/entities/furs-settings-form/locales/nl.ts +26 -3
- package/src/components/entities/furs-settings-form/locales/pl.ts +26 -3
- package/src/components/entities/furs-settings-form/locales/pt.ts +26 -3
- package/src/components/entities/furs-settings-form/locales/sl.ts +16 -3
- package/src/components/entities/furs-settings-form/sections/certificate-settings-section.tsx +22 -0
- package/src/components/entities/furs-settings-form/sections/general-settings-section.tsx +26 -5
- package/src/components/entities/furs-settings-form/sections/register-premise-dialog.tsx +14 -2
- package/src/components/entities/settings/tax-rules-settings-form.tsx +4 -4
- package/src/components/estimates/list/list-row-actions.tsx +3 -7
- package/src/components/estimates/list/list-table.tsx +35 -2
- package/src/components/estimates/list/locales/de.ts +3 -0
- package/src/components/estimates/list/locales/en.ts +3 -0
- package/src/components/estimates/list/locales/es.ts +3 -0
- package/src/components/estimates/list/locales/fr.ts +3 -0
- package/src/components/estimates/list/locales/hr.ts +3 -0
- package/src/components/estimates/list/locales/it.ts +3 -0
- package/src/components/estimates/list/locales/nl.ts +3 -0
- package/src/components/estimates/list/locales/pl.ts +3 -0
- package/src/components/estimates/list/locales/pt.ts +3 -0
- package/src/components/estimates/list/locales/sl.ts +3 -0
- package/src/components/export/document-export-form.tsx +34 -34
- package/src/components/invoices/create/create-invoice-form.tsx +107 -5
- package/src/components/invoices/create/prepare-invoice-submission.ts +17 -0
- package/src/components/invoices/invoices-furs.hooks.ts +24 -9
- package/src/components/invoices/invoices.hooks.ts +32 -2
- package/src/components/invoices/list/list-row-actions.tsx +26 -11
- package/src/components/invoices/list/list-table.tsx +121 -5
- package/src/components/invoices/list/locales/de.ts +5 -0
- package/src/components/invoices/list/locales/en.ts +5 -0
- package/src/components/invoices/list/locales/es.ts +5 -0
- package/src/components/invoices/list/locales/fr.ts +5 -0
- package/src/components/invoices/list/locales/hr.ts +5 -0
- package/src/components/invoices/list/locales/it.ts +5 -0
- package/src/components/invoices/list/locales/nl.ts +5 -0
- package/src/components/invoices/list/locales/pl.ts +5 -0
- package/src/components/invoices/list/locales/pt.ts +5 -0
- package/src/components/invoices/list/locales/sl.ts +5 -0
- package/src/components/invoices/view/fiscalization-status-card.tsx +4 -1
- package/src/components/items/item-list-table/item-list-row-actions.tsx +5 -8
- package/src/components/items/item-list-table/item-list-row.tsx +5 -3
- package/src/components/items/item-list-table/item-list-table.tsx +5 -1
- package/src/components/recurring-invoices/create-recurring-invoice-form/create-recurring-invoice-form.tsx +418 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/de.ts +45 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/es.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/fr.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/hr.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/it.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/nl.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/pl.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/pt.ts +44 -0
- package/src/components/recurring-invoices/create-recurring-invoice-form/locales/sl.ts +44 -0
- package/src/components/recurring-invoices/index.ts +3 -0
- package/src/components/recurring-invoices/list/index.ts +2 -0
- package/src/components/recurring-invoices/list/list-row-actions.tsx +139 -0
- package/src/components/recurring-invoices/list/list-table.tsx +179 -0
- package/src/components/recurring-invoices/list/locales/de.ts +27 -0
- package/src/components/recurring-invoices/list/locales/en.ts +5 -0
- package/src/components/recurring-invoices/list/locales/es.ts +27 -0
- package/src/components/recurring-invoices/list/locales/fr.ts +27 -0
- package/src/components/recurring-invoices/list/locales/hr.ts +27 -0
- package/src/components/recurring-invoices/list/locales/it.ts +27 -0
- package/src/components/recurring-invoices/list/locales/nl.ts +27 -0
- package/src/components/recurring-invoices/list/locales/pl.ts +27 -0
- package/src/components/recurring-invoices/list/locales/pt.ts +27 -0
- package/src/components/recurring-invoices/list/locales/sl.ts +27 -0
- package/src/components/recurring-invoices/recurring-invoices.hooks.ts +28 -0
- package/src/components/table/data-table.tsx +122 -5
- package/src/components/table/selection-toolbar.tsx +36 -0
- package/src/components/tax-reports/kir-export-form.tsx +75 -55
- package/src/components/taxes/tax-list-table/tax-list-row-actions.tsx +3 -6
- package/src/components/taxes/tax-list-table/tax-list-row.tsx +3 -2
- package/src/components/taxes/tax-list-table/tax-list-table.tsx +5 -1
- package/src/components/ui/checkbox.tsx +5 -5
- package/src/generate-schemas.ts +45 -18
- package/src/generated/schemas/authorizeshopify_body.ts +22 -0
- package/src/generated/schemas/creditnote.ts +0 -2
- package/src/generated/schemas/deliverynote.ts +134 -0
- package/src/generated/schemas/entity.ts +5 -1
- package/src/generated/schemas/index.ts +42 -28
- package/src/generated/schemas/order.ts +129 -0
- package/src/generated/schemas/orderintegration.ts +51 -0
- package/src/generated/schemas/payment.ts +24 -2
- package/src/generated/schemas/recurringinvoice.ts +61 -0
- package/src/generated/schemas/renderadvanceinvoicepreview_body.ts +108 -140
- package/src/generated/schemas/rendercreditnotepreview_body.ts +109 -141
- package/src/generated/schemas/renderdeliverynotepreview_body.ts +185 -0
- package/src/generated/schemas/renderestimatepreview_body.ts +79 -82
- package/src/generated/schemas/renderinvoicepreview_body.ts +109 -141
- package/src/generated/schemas/startpdfexport_body.ts +18 -2
- package/src/generated/schemas/userfinasettings.ts +19 -0
- package/src/generated/schemas/webhook.ts +54 -0
- package/src/hooks/use-duplicate-document.ts +11 -3
- package/src/hooks/use-next-document-number.ts +2 -2
- package/src/lib/furs-error-utils.ts +36 -0
- package/src/lib/schemas/advance-invoice.ts +3 -3
- package/src/lib/schemas/credit-note.ts +3 -3
- package/src/lib/schemas/estimate.ts +3 -3
- package/src/lib/schemas/invoice.ts +3 -3
- package/src/providers/sdk-provider.tsx +5 -7
- package/src/providers/white-label-provider.tsx +3 -0
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "Überfällig",
|
|
29
29
|
Voided: "Storniert",
|
|
30
30
|
"Created At": "Erstellt am",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Teilweise bezahlt",
|
|
32
32
|
Unshare: "Freigabe aufheben",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "Ihre Gutschriftenliste ist leer",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "Keine Gutschriften gefunden",
|
|
39
39
|
"Try adjusting your search criteria": "Versuchen Sie, Ihre Suchkriterien anzupassen",
|
|
40
40
|
"Clear search": "Suche zurücksetzen",
|
|
41
|
+
selected: "ausgewählt",
|
|
42
|
+
"Export PDFs": "PDFs exportieren",
|
|
43
|
+
"Deselect all": "Auswahl aufheben",
|
|
41
44
|
} as const;
|
|
@@ -5,4 +5,9 @@ export default {
|
|
|
5
5
|
"Create new": "Create credit note",
|
|
6
6
|
// No results translations
|
|
7
7
|
"No results found": "No credit notes found",
|
|
8
|
+
selected: "selected",
|
|
9
|
+
"Export PDFs": "Export PDFs",
|
|
10
|
+
"Deselect all": "Deselect all",
|
|
11
|
+
"Partially Paid": "Partially Paid",
|
|
12
|
+
Voided: "Voided",
|
|
8
13
|
} as const;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "Vencido",
|
|
29
29
|
Voided: "Anulado",
|
|
30
30
|
"Created At": "Creado el",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Parcialmente pagado",
|
|
32
32
|
Unshare: "Dejar de compartir",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "Su lista de notas de credito esta vacia",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "No se encontraron notas de credito",
|
|
39
39
|
"Try adjusting your search criteria": "Intente ajustar sus criterios de busqueda",
|
|
40
40
|
"Clear search": "Limpiar busqueda",
|
|
41
|
+
selected: "seleccionados",
|
|
42
|
+
"Export PDFs": "Exportar PDFs",
|
|
43
|
+
"Deselect all": "Deseleccionar todo",
|
|
41
44
|
} as const;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "En retard",
|
|
29
29
|
Voided: "Annule",
|
|
30
30
|
"Created At": "Cree le",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Partiellement payé",
|
|
32
32
|
Unshare: "Supprimer le partage",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "Votre liste d'avoirs est vide",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "Aucun avoir trouve",
|
|
39
39
|
"Try adjusting your search criteria": "Essayez de modifier vos criteres de recherche",
|
|
40
40
|
"Clear search": "Effacer la recherche",
|
|
41
|
+
selected: "sélectionnés",
|
|
42
|
+
"Export PDFs": "Exporter les PDF",
|
|
43
|
+
"Deselect all": "Tout désélectionner",
|
|
41
44
|
} as const;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "Dospjelo",
|
|
29
29
|
Voided: "Stornirano",
|
|
30
30
|
"Created At": "Kreirano",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Djelomično plaćeno",
|
|
32
32
|
Unshare: "Ukloni dijeljenje",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "Vasa lista odobrenja je prazna",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "Nije pronadjeno nijedno odobrenje",
|
|
39
39
|
"Try adjusting your search criteria": "Pokusajte prilagoditi kriterije pretrazivanja",
|
|
40
40
|
"Clear search": "Ocisti pretragu",
|
|
41
|
+
selected: "odabranih",
|
|
42
|
+
"Export PDFs": "Izvezi PDF-ove",
|
|
43
|
+
"Deselect all": "Poništi odabir",
|
|
41
44
|
} as const;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "Scaduto",
|
|
29
29
|
Voided: "Annullato",
|
|
30
30
|
"Created At": "Creato il",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Parzialmente pagato",
|
|
32
32
|
Unshare: "Rimuovi condivisione",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "La lista delle note di credito e vuota",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "Nessuna nota di credito trovata",
|
|
39
39
|
"Try adjusting your search criteria": "Prova a modificare i criteri di ricerca",
|
|
40
40
|
"Clear search": "Cancella ricerca",
|
|
41
|
+
selected: "selezionati",
|
|
42
|
+
"Export PDFs": "Esporta PDF",
|
|
43
|
+
"Deselect all": "Deseleziona tutto",
|
|
41
44
|
} as const;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "Achterstallig",
|
|
29
29
|
Voided: "Nietig verklaard",
|
|
30
30
|
"Created At": "Aangemaakt op",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Gedeeltelijk betaald",
|
|
32
32
|
Unshare: "Delen opheffen",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "Uw lijst met creditnota's is leeg",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "Geen creditnota's gevonden",
|
|
39
39
|
"Try adjusting your search criteria": "Probeer uw zoekcriteria aan te passen",
|
|
40
40
|
"Clear search": "Zoekopdracht wissen",
|
|
41
|
+
selected: "geselecteerd",
|
|
42
|
+
"Export PDFs": "PDFs exporteren",
|
|
43
|
+
"Deselect all": "Alles deselecteren",
|
|
41
44
|
} as const;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "Zaległe",
|
|
29
29
|
Voided: "Anulowane",
|
|
30
30
|
"Created At": "Utworzono",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Częściowo opłacona",
|
|
32
32
|
Unshare: "Cofnij udostepnienie",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "Twoja lista not kredytowych jest pusta",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "Nie znaleziono not kredytowych",
|
|
39
39
|
"Try adjusting your search criteria": "Sprobuj dostosowac kryteria wyszukiwania",
|
|
40
40
|
"Clear search": "Wyczysc wyszukiwanie",
|
|
41
|
+
selected: "wybranych",
|
|
42
|
+
"Export PDFs": "Eksportuj PDF-y",
|
|
43
|
+
"Deselect all": "Odznacz wszystko",
|
|
41
44
|
} as const;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "Vencido",
|
|
29
29
|
Voided: "Anulado",
|
|
30
30
|
"Created At": "Criado em",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Parcialmente pago",
|
|
32
32
|
Unshare: "Remover partilha",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "A sua lista de notas de credito esta vazia",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "Nenhuma nota de credito encontrada",
|
|
39
39
|
"Try adjusting your search criteria": "Tente ajustar os seus criterios de pesquisa",
|
|
40
40
|
"Clear search": "Limpar pesquisa",
|
|
41
|
+
selected: "selecionados",
|
|
42
|
+
"Export PDFs": "Exportar PDFs",
|
|
43
|
+
"Deselect all": "Desselecionar tudo",
|
|
41
44
|
} as const;
|
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
Overdue: "Zapadlo",
|
|
29
29
|
Voided: "Stornirano",
|
|
30
30
|
"Created At": "Ustvarjeno",
|
|
31
|
-
|
|
31
|
+
"Partially Paid": "Delno plačano",
|
|
32
32
|
Unshare: "Odstrani deljenje",
|
|
33
33
|
// Empty state translations
|
|
34
34
|
"Your list is empty": "Vaš seznam dobropisov je prazen",
|
|
@@ -38,4 +38,7 @@ export default {
|
|
|
38
38
|
"No results found": "Ni najdenih dobropisov",
|
|
39
39
|
"Try adjusting your search criteria": "Poskusite prilagoditi iskalne kriterije",
|
|
40
40
|
"Clear search": "Počisti iskanje",
|
|
41
|
+
selected: "izbranih",
|
|
42
|
+
"Export PDFs": "Izvozi PDF-je",
|
|
43
|
+
"Deselect all": "Počisti izbiro",
|
|
41
44
|
} as const;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
2
2
|
import type { CompanyRegistryResult, CreateCustomerRequest, Customer } from "@spaceinvoices/js-sdk";
|
|
3
3
|
import { useForm } from "react-hook-form";
|
|
4
|
-
import type z from "zod";
|
|
5
4
|
import { CompanyRegistryAutocomplete } from "@/ui/components/company-registry";
|
|
6
5
|
import { FormInput } from "@/ui/components/form";
|
|
7
6
|
import { Form } from "@/ui/components/ui/form";
|
|
@@ -35,7 +35,7 @@ export function useCollectionRateData(entityId: string | undefined) {
|
|
|
35
35
|
);
|
|
36
36
|
},
|
|
37
37
|
enabled: !!entityId && !!sdk,
|
|
38
|
-
staleTime:
|
|
38
|
+
staleTime: 120_000,
|
|
39
39
|
},
|
|
40
40
|
// Total collected (payments)
|
|
41
41
|
{
|
|
@@ -51,7 +51,7 @@ export function useCollectionRateData(entityId: string | undefined) {
|
|
|
51
51
|
);
|
|
52
52
|
},
|
|
53
53
|
enabled: !!entityId && !!sdk,
|
|
54
|
-
staleTime:
|
|
54
|
+
staleTime: 120_000,
|
|
55
55
|
},
|
|
56
56
|
],
|
|
57
57
|
});
|
|
@@ -36,7 +36,7 @@ export function useInvoiceStatusData(entityId: string | undefined) {
|
|
|
36
36
|
);
|
|
37
37
|
},
|
|
38
38
|
enabled: !!entityId && !!sdk,
|
|
39
|
-
staleTime:
|
|
39
|
+
staleTime: 120_000,
|
|
40
40
|
},
|
|
41
41
|
// Unpaid invoices grouped by overdue bucket (current = pending, others = overdue)
|
|
42
42
|
{
|
|
@@ -54,7 +54,7 @@ export function useInvoiceStatusData(entityId: string | undefined) {
|
|
|
54
54
|
);
|
|
55
55
|
},
|
|
56
56
|
enabled: !!entityId && !!sdk,
|
|
57
|
-
staleTime:
|
|
57
|
+
staleTime: 120_000,
|
|
58
58
|
},
|
|
59
59
|
// Total count to derive voided
|
|
60
60
|
{
|
|
@@ -71,7 +71,7 @@ export function useInvoiceStatusData(entityId: string | undefined) {
|
|
|
71
71
|
);
|
|
72
72
|
},
|
|
73
73
|
enabled: !!entityId && !!sdk,
|
|
74
|
-
staleTime:
|
|
74
|
+
staleTime: 120_000,
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
77
|
});
|
|
@@ -32,7 +32,7 @@ export function usePaymentMethodsData(entityId: string | undefined) {
|
|
|
32
32
|
);
|
|
33
33
|
},
|
|
34
34
|
enabled: !!entityId && !!sdk,
|
|
35
|
-
staleTime:
|
|
35
|
+
staleTime: 120_000,
|
|
36
36
|
select: (response) => {
|
|
37
37
|
const data = response.data || [];
|
|
38
38
|
return (data as StatsQueryDataItem[]).map((row) => ({
|
|
@@ -54,7 +54,7 @@ export function usePaymentTrendData(entityId: string | undefined) {
|
|
|
54
54
|
);
|
|
55
55
|
},
|
|
56
56
|
enabled: !!entityId && !!sdk,
|
|
57
|
-
staleTime:
|
|
57
|
+
staleTime: 120_000,
|
|
58
58
|
select: (response) => {
|
|
59
59
|
// Build a map of all months with 0 amount
|
|
60
60
|
const monthMap: Record<string, number> = {};
|
|
@@ -55,7 +55,7 @@ export function useRevenueTrendData(entityId: string | undefined) {
|
|
|
55
55
|
);
|
|
56
56
|
},
|
|
57
57
|
enabled: !!entityId && !!sdk,
|
|
58
|
-
staleTime:
|
|
58
|
+
staleTime: 120_000,
|
|
59
59
|
select: (response) => {
|
|
60
60
|
// Build a map of all months with 0 revenue
|
|
61
61
|
const monthMap: Record<string, number> = {};
|
|
@@ -61,7 +61,7 @@ export function useRevenueData(entityId: string | undefined) {
|
|
|
61
61
|
);
|
|
62
62
|
},
|
|
63
63
|
enabled: !!entityId && !!sdk,
|
|
64
|
-
staleTime:
|
|
64
|
+
staleTime: 120_000,
|
|
65
65
|
},
|
|
66
66
|
// This year revenue (using converted amounts for multi-currency support)
|
|
67
67
|
{
|
|
@@ -80,7 +80,7 @@ export function useRevenueData(entityId: string | undefined) {
|
|
|
80
80
|
);
|
|
81
81
|
},
|
|
82
82
|
enabled: !!entityId && !!sdk,
|
|
83
|
-
staleTime:
|
|
83
|
+
staleTime: 120_000,
|
|
84
84
|
},
|
|
85
85
|
// Outstanding (unpaid, not voided)
|
|
86
86
|
{
|
|
@@ -97,7 +97,7 @@ export function useRevenueData(entityId: string | undefined) {
|
|
|
97
97
|
);
|
|
98
98
|
},
|
|
99
99
|
enabled: !!entityId && !!sdk,
|
|
100
|
-
staleTime:
|
|
100
|
+
staleTime: 120_000,
|
|
101
101
|
},
|
|
102
102
|
// Overdue (past due date, unpaid)
|
|
103
103
|
{
|
|
@@ -118,7 +118,7 @@ export function useRevenueData(entityId: string | undefined) {
|
|
|
118
118
|
);
|
|
119
119
|
},
|
|
120
120
|
enabled: !!entityId && !!sdk,
|
|
121
|
-
staleTime:
|
|
121
|
+
staleTime: 120_000,
|
|
122
122
|
},
|
|
123
123
|
],
|
|
124
124
|
});
|
|
@@ -31,7 +31,7 @@ export function useStatsCountsData(entityId: string | undefined) {
|
|
|
31
31
|
);
|
|
32
32
|
},
|
|
33
33
|
enabled: !!entityId && !!sdk,
|
|
34
|
-
staleTime:
|
|
34
|
+
staleTime: 120_000,
|
|
35
35
|
},
|
|
36
36
|
// Estimates count
|
|
37
37
|
{
|
|
@@ -44,7 +44,7 @@ export function useStatsCountsData(entityId: string | undefined) {
|
|
|
44
44
|
);
|
|
45
45
|
},
|
|
46
46
|
enabled: !!entityId && !!sdk,
|
|
47
|
-
staleTime:
|
|
47
|
+
staleTime: 120_000,
|
|
48
48
|
},
|
|
49
49
|
// Customers count
|
|
50
50
|
{
|
|
@@ -57,7 +57,7 @@ export function useStatsCountsData(entityId: string | undefined) {
|
|
|
57
57
|
);
|
|
58
58
|
},
|
|
59
59
|
enabled: !!entityId && !!sdk,
|
|
60
|
-
staleTime:
|
|
60
|
+
staleTime: 120_000,
|
|
61
61
|
},
|
|
62
62
|
// Items count
|
|
63
63
|
{
|
|
@@ -70,7 +70,7 @@ export function useStatsCountsData(entityId: string | undefined) {
|
|
|
70
70
|
);
|
|
71
71
|
},
|
|
72
72
|
enabled: !!entityId && !!sdk,
|
|
73
|
-
staleTime:
|
|
73
|
+
staleTime: 120_000,
|
|
74
74
|
},
|
|
75
75
|
],
|
|
76
76
|
});
|
|
@@ -32,7 +32,7 @@ export function useStatsQuery<TData = StatsQueryResponse>(
|
|
|
32
32
|
return await sdk.entityStats.queryEntityStats(query, { entity_id: entityId });
|
|
33
33
|
},
|
|
34
34
|
enabled: !!entityId && !!sdk,
|
|
35
|
-
staleTime:
|
|
35
|
+
staleTime: 120_000, // 2 minutes
|
|
36
36
|
...options,
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -88,7 +88,7 @@ export function useTaxCollectedData(entityId: string | undefined) {
|
|
|
88
88
|
);
|
|
89
89
|
},
|
|
90
90
|
enabled: !!entityId && !!sdk,
|
|
91
|
-
staleTime:
|
|
91
|
+
staleTime: 120_000, // 1 minute
|
|
92
92
|
},
|
|
93
93
|
// Current year taxes - aggregated by rate using stats API
|
|
94
94
|
{
|
|
@@ -108,7 +108,7 @@ export function useTaxCollectedData(entityId: string | undefined) {
|
|
|
108
108
|
);
|
|
109
109
|
},
|
|
110
110
|
enabled: !!entityId && !!sdk,
|
|
111
|
-
staleTime:
|
|
111
|
+
staleTime: 120_000,
|
|
112
112
|
},
|
|
113
113
|
],
|
|
114
114
|
});
|