From e075e1307663028b675e580251b4462859348afc Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 11 Dec 2024 17:42:31 +0100 Subject: [PATCH] feat: refs #7936 add dueDated field --- src/pages/InvoiceIn/InvoiceInList.vue | 16 +++++++++++++--- src/pages/InvoiceIn/locale/en.yml | 1 + src/pages/InvoiceIn/locale/es.yml | 4 ++-- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/pages/InvoiceIn/InvoiceInList.vue b/src/pages/InvoiceIn/InvoiceInList.vue index e9255398b..6469f446d 100644 --- a/src/pages/InvoiceIn/InvoiceInList.vue +++ b/src/pages/InvoiceIn/InvoiceInList.vue @@ -28,6 +28,12 @@ onUnmounted(() => (stateStore.rightDrawer = false)); const tableRef = ref(); const companies = ref([]); const cols = computed(() => [ + { + align: 'left', + name: 'isBooked', + label: t('InvoiceIn.isBooked'), + columnFilter: false, + }, { align: 'left', name: 'id', @@ -68,9 +74,13 @@ const cols = computed(() => [ }, { align: 'left', - name: 'isBooked', - label: t('InvoiceIn.isBooked'), - columnFilter: false, + label: t('InvoiceIn.list.dueDated'), + name: 'dueDated', + component: null, + columnFilter: { + component: 'date', + }, + format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.dueDated)), }, { align: 'left', diff --git a/src/pages/InvoiceIn/locale/en.yml b/src/pages/InvoiceIn/locale/en.yml index 529569aa0..ef7e31ac3 100644 --- a/src/pages/InvoiceIn/locale/en.yml +++ b/src/pages/InvoiceIn/locale/en.yml @@ -7,6 +7,7 @@ InvoiceIn: supplierRef: Supplier ref. file: File issued: Issued + dueDated: Due dated awb: AWB amount: Amount descriptor: diff --git a/src/pages/InvoiceIn/locale/es.yml b/src/pages/InvoiceIn/locale/es.yml index 2192442cd..ed5943489 100644 --- a/src/pages/InvoiceIn/locale/es.yml +++ b/src/pages/InvoiceIn/locale/es.yml @@ -5,9 +5,9 @@ InvoiceIn: ref: Referencia supplier: Proveedor supplierRef: Ref. proveedor - shortIssued: F. emisión + issued: F. emisión + dueDated: F. vencimiento file: Fichero - issued: Fecha emisión awb: AWB amount: Importe descriptor: