-
- General
- Contacto
- Domicilio
- VU
- DODA
- ANAM
-
+
+ General
+ Contacto
+ Domicilio
+ VU
+ DODA
+
diff --git a/frontend/src/routes/dashboard/invoices/+page.svelte b/frontend/src/routes/dashboard/invoices/+page.svelte
index 9fd6feae..6d58da6c 100644
--- a/frontend/src/routes/dashboard/invoices/+page.svelte
+++ b/frontend/src/routes/dashboard/invoices/+page.svelte
@@ -909,9 +909,19 @@
const taskInfo = result.external_task_id ? ` (task_id: ${result.external_task_id})` : '';
toast.success(result.message + taskInfo);
} else {
+ const resolvedError =
+ (typeof result === 'string' && result.trim()) ||
+ (typeof result?.message === 'string' && result.message.trim()) ||
+ (typeof result?.error === 'string' && result.error.trim()) ||
+ (typeof result?.detail === 'string' && result.detail.trim()) ||
+ (typeof result?.result === 'string' && result.result.trim()) ||
+ (Array.isArray(result?.errors) &&
+ typeof result.errors[0]?.message === 'string' &&
+ result.errors[0].message.trim()) ||
+ m.invoice_table_not_available_short();
toast.error(
m.invoice_list_toasts_worker_error_prefix({
- error: String(result.message || m.invoice_table_not_available_short())
+ error: String(resolvedError)
})
);
}
@@ -1744,7 +1754,7 @@
class="flex w-full cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent"
onclick={() => {
showVuSubmenu = false;
- toast.info(m.invoice_list_submenu_consult_soon());
+ openCoveDialog();
}}
>
@@ -1947,7 +1957,7 @@
toast.info(m.invoice_list_submenu_consult_soon())}
+ onclick={() => openCoveDialog()}
>
{m.invoice_list_footer_vu_consult()}