From 1bafdf1b858ff097859770e4db8347ad2e10ee41 Mon Sep 17 00:00:00 2001 From: carlossa Date: Sun, 20 Oct 2024 15:01:37 +0200 Subject: [PATCH 1/7] fix: refs #6389 ipt --- src/pages/Monitor/Ticket/MonitorTicketFilter.vue | 4 +++- src/pages/Monitor/Ticket/MonitorTickets.vue | 6 ++++++ src/pages/Monitor/locale/en.yml | 1 + src/pages/Monitor/locale/es.yml | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue index 57248d580..7a5d296a5 100644 --- a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue +++ b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue @@ -43,6 +43,7 @@ const getLocale = (label) => { (groupedStates = data.map((x) => Object.assign(x, { code: t(x.code) }))) " /> + { /> + [ }, }, }, + { + label: t('salesTicketsTable.payMethod'), + name: 'payMethod', + align: 'left', + columnFilter: false, + }, { label: t('salesTicketsTable.total'), name: 'totalWithVat', diff --git a/src/pages/Monitor/locale/en.yml b/src/pages/Monitor/locale/en.yml index b8082f02a..9a7317469 100644 --- a/src/pages/Monitor/locale/en.yml +++ b/src/pages/Monitor/locale/en.yml @@ -42,6 +42,7 @@ salesTicketsTable: preview: Preview total: Total preparation: Preparation + payMethod: Pay method searchBar: label: Search tickets info: Search tickets by id or alias diff --git a/src/pages/Monitor/locale/es.yml b/src/pages/Monitor/locale/es.yml index 4ee5b90a9..60760b70d 100644 --- a/src/pages/Monitor/locale/es.yml +++ b/src/pages/Monitor/locale/es.yml @@ -42,6 +42,7 @@ salesTicketsTable: preview: Vista previa total: Total preparation: Preparación + payMethod: Método de pago searchBar: label: Buscar tickets info: Buscar tickets por identificador o alias From daf57c9b2bfb4d8001a520cd0bec7be23efacef5 Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 23 Oct 2024 12:20:53 +0200 Subject: [PATCH 2/7] fix: refs #6389 front filters --- .../Monitor/Ticket/MonitorTicketFilter.vue | 13 +++++++++++- src/pages/Monitor/Ticket/MonitorTickets.vue | 21 +++++++++++++++++++ src/pages/Monitor/locale/en.yml | 1 + src/pages/Monitor/locale/es.yml | 1 + 4 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue index 7a5d296a5..ae5dc7a56 100644 --- a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue +++ b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue @@ -43,7 +43,6 @@ const getLocale = (label) => { (groupedStates = data.map((x) => Object.assign(x, { code: t(x.code) }))) " /> - { /> + + + + + [ }, }, }, + { + label: t('salesTicketsTable.department'), + name: 'department', + align: 'left', + component: 'select', + attrs: { + url: 'Departments', + optionValue: 'name', + optionLabel: 'name', + }, + columnFilter: { + component: 'select', + url: 'Departments', + attrs: { + optionValue: 'name', + optionLabel: 'name', + dense: true, + }, + }, + }, { align: 'right', name: 'tableActions', diff --git a/src/pages/Monitor/locale/en.yml b/src/pages/Monitor/locale/en.yml index 9a7317469..083c24e4e 100644 --- a/src/pages/Monitor/locale/en.yml +++ b/src/pages/Monitor/locale/en.yml @@ -43,6 +43,7 @@ salesTicketsTable: total: Total preparation: Preparation payMethod: Pay method + department: Department searchBar: label: Search tickets info: Search tickets by id or alias diff --git a/src/pages/Monitor/locale/es.yml b/src/pages/Monitor/locale/es.yml index 60760b70d..a3037d75b 100644 --- a/src/pages/Monitor/locale/es.yml +++ b/src/pages/Monitor/locale/es.yml @@ -43,6 +43,7 @@ salesTicketsTable: total: Total preparation: Preparación payMethod: Método de pago + department: Departamento searchBar: label: Buscar tickets info: Buscar tickets por identificador o alias From e8fd3c0a8f2bcb057c41396e211f099be62b7537 Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 23 Oct 2024 14:58:03 +0200 Subject: [PATCH 3/7] fix: refs #6389 fix front, filters, itp --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + .../Monitor/Ticket/MonitorTicketFilter.vue | 12 +++++ src/pages/Monitor/Ticket/MonitorTickets.vue | 48 ++++++++++++++++--- src/pages/Monitor/locale/en.yml | 1 + src/pages/Monitor/locale/es.yml | 1 + 6 files changed, 57 insertions(+), 7 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index fa0a14f45..8fd495e68 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -308,6 +308,7 @@ globals: email: Email SSN: SSN fi: FI + packing: ITP changePass: Change password deleteConfirmTitle: Delete selected elements errors: diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 5dfe90e98..f777089a6 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -312,6 +312,7 @@ globals: email: Correo SSN: NSS fi: NIF + packing: ITP changePass: Cambiar contraseña deleteConfirmTitle: Eliminar los elementos seleccionados errors: diff --git a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue index ae5dc7a56..f952850d2 100644 --- a/src/pages/Monitor/Ticket/MonitorTicketFilter.vue +++ b/src/pages/Monitor/Ticket/MonitorTicketFilter.vue @@ -222,6 +222,18 @@ const getLocale = (label) => { /> + + + + + [ align: 'left', format: (row) => row.practicalHour, columnFilter: false, + dense: true, }, { label: t('salesTicketsTable.preparation'), @@ -227,22 +233,32 @@ const columns = computed(() => [ label: t('salesTicketsTable.department'), name: 'department', align: 'left', - component: 'select', - attrs: { - url: 'Departments', - optionValue: 'name', - optionLabel: 'name', - }, columnFilter: { component: 'select', url: 'Departments', attrs: { + options: DepartmentOpts.value, optionValue: 'name', optionLabel: 'name', dense: true, }, }, }, + { + label: t('salesTicketsTable.packing'), + name: 'packing', + align: 'left', + columnFilter: { + component: 'select', + url: 'ItemPackingTypes', + attrs: { + options: ItemPackingTypeOpts.value, + 'option-value': 'code', + 'option-label': 'code', + dense: true, + }, + }, + }, { align: 'right', name: 'tableActions', @@ -349,6 +365,24 @@ const openTab = (id) => auto-load @on-fetch="(data) => (zoneOpts = data)" /> + +