From fc73149dcfe1b2f83d06d3dd5cbaa6c6dc14008e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s?= Date: Mon, 11 Nov 2024 14:20:39 +0100 Subject: [PATCH] feat: refs #8087 refs#8087 Redadas en travel --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + .../Card/BasicData/TicketBasicDataForm.vue | 45 ++++++++++++++----- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + src/pages/Travel/Card/TravelBasicData.vue | 5 ++- src/pages/Travel/Card/TravelDescriptor.vue | 8 +--- src/pages/Travel/Card/TravelSummary.vue | 13 ++++-- src/pages/Travel/TravelList.vue | 8 ++-- 9 files changed, 57 insertions(+), 26 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index a6065e451..53d6e2e9e 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1041,6 +1041,7 @@ travel: delivered: Delivered received: Received daysInForward: Days in forward + isRaid: Raid thermographs: code: Code temperature: Temperature diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 6f01f7dd1..0e6ee61c8 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1039,6 +1039,7 @@ travel: delivered: Enviada received: Recibida daysInForward: Días redada + isRaid: Redada thermographs: code: Código temperature: Temperatura diff --git a/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue b/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue index f6c20c514..3ac385fbd 100644 --- a/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue +++ b/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue @@ -36,6 +36,7 @@ const canEditZone = useAcl().hasAny([ const agencyFetchRef = ref(); const warehousesOptions = ref([]); const companiesOptions = ref([]); +const currenciesOptions = ref([]); const agenciesOptions = ref([]); const zonesOptions = ref([]); const addresses = ref([]); @@ -289,6 +290,15 @@ async function getZone(options) { @on-fetch="(data) => (companiesOptions = data)" auto-load /> + - + + + + + es: - raidDays: Al rellenarlo, generamos una redada. Indica los días que un travel se moverá automáticamente en el tiempo + raidDays: Si se marca "Redada", la fecha de entrega se moverá automáticamente los días indicados (incluido 0). Si no se especifican días, la fecha no cambiará en: - raidDays: When filling, a raid is generated. Enter the number of days the travel will automatically forward in time + raidDays: If "Raid" is checked, the landing date will automatically shift by the specified number of days (including 0). If no days are specified, the date will stay the same. diff --git a/src/pages/Travel/Card/TravelDescriptor.vue b/src/pages/Travel/Card/TravelDescriptor.vue index 6025ad045..a77d7460e 100644 --- a/src/pages/Travel/Card/TravelDescriptor.vue +++ b/src/pages/Travel/Card/TravelDescriptor.vue @@ -32,6 +32,7 @@ const filter = { 'warehouseOutFk', 'cargoSupplierFk', 'agencyModeFk', + 'isRaid', 'daysInForward', ], include: [ @@ -80,12 +81,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity.