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 1/6] 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. From 18593cc3f9d780b005a0e6ac59e01b9b8a4b985e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s?= Date: Tue, 12 Nov 2024 16:27:40 +0100 Subject: [PATCH 3/6] feat: refs #8087 refs#8087 Redadas en travel --- src/pages/Entry/EntryList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Entry/EntryList.vue b/src/pages/Entry/EntryList.vue index e9179c239..a9c25af43 100644 --- a/src/pages/Entry/EntryList.vue +++ b/src/pages/Entry/EntryList.vue @@ -221,7 +221,7 @@ onMounted(async () => { t('entry.list.tableVisibleColumns.isExcludedFromAvailable') }} - + {{ t('globals.raid', { daysInForward: row.daysInForward }) From 4572817699a53b23bbba17b001a4f492af877534 Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 12 Nov 2024 16:37:59 +0100 Subject: [PATCH 4/6] feat: refs #8087 reactive data --- src/pages/Travel/Card/TravelBasicData.vue | 7 +--- src/pages/Travel/Card/TravelCard.vue | 29 +---------------- src/pages/Travel/Card/TravelDescriptor.vue | 38 +++------------------- src/pages/Travel/Card/TravelFilter.js | 29 +++++++++++++++++ 4 files changed, 35 insertions(+), 68 deletions(-) create mode 100644 src/pages/Travel/Card/TravelFilter.js diff --git a/src/pages/Travel/Card/TravelBasicData.vue b/src/pages/Travel/Card/TravelBasicData.vue index f71bcf72c..8d6b54cc8 100644 --- a/src/pages/Travel/Card/TravelBasicData.vue +++ b/src/pages/Travel/Card/TravelBasicData.vue @@ -21,12 +21,7 @@ const agenciesOptions = ref([]); @on-fetch="(data) => (agenciesOptions = data)" auto-load /> - +