From ae6517bcb49a39a1d0ef6bbd5e549d39ae5727aa Mon Sep 17 00:00:00 2001 From: Kevin_Ramirez Date: Tue, 2 Jun 2026 11:04:52 -0500 Subject: [PATCH] fix(multimoneda): formato fijo DD/MM/YYYY en campo de fecha MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reemplaza por componente DateInputDMY que siempre muestra DD/MM/YYYY sin depender del locale del navegador. El picker nativo sigue funcionando vía input oculto. Se elimina el texto auxiliar "Se guarda como entero (YYYYMMDD)". Co-Authored-By: Claude Sonnet 4.6 --- .../create-edit-dialog.svelte | 5 +- .../lib/components/ui/date-input-dmy.svelte | 129 ++++++++++++++++++ 2 files changed, 131 insertions(+), 3 deletions(-) create mode 100644 frontend/src/lib/components/ui/date-input-dmy.svelte diff --git a/frontend/src/lib/components/dashboard/general_catalogs/multi_currency_types/create-edit-dialog.svelte b/frontend/src/lib/components/dashboard/general_catalogs/multi_currency_types/create-edit-dialog.svelte index b318e602..902d18e3 100644 --- a/frontend/src/lib/components/dashboard/general_catalogs/multi_currency_types/create-edit-dialog.svelte +++ b/frontend/src/lib/components/dashboard/general_catalogs/multi_currency_types/create-edit-dialog.svelte @@ -16,6 +16,7 @@ import type { CurrencyType } from '$lib/api/dashboard/reference_data/currency_types'; import type { Country } from '$lib/api/dashboard/reference_data/countries'; import { toast } from 'svelte-sonner'; + import DateInputDMY from '$lib/components/ui/date-input-dmy.svelte'; let { open = $bindable(false), @@ -205,14 +206,12 @@ {m.multi_currency_date_label()} *
- -

{m.multi_currency_date_help()}

diff --git a/frontend/src/lib/components/ui/date-input-dmy.svelte b/frontend/src/lib/components/ui/date-input-dmy.svelte new file mode 100644 index 00000000..da994e43 --- /dev/null +++ b/frontend/src/lib/components/ui/date-input-dmy.svelte @@ -0,0 +1,129 @@ + + +
+ + + + + + +