From 899633171d0e8830e71481fa165b92ad925269cc Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 24 Jan 2024 10:47:48 -0300 Subject: [PATCH] Suppliers corrections --- src/pages/Supplier/Card/SupplierBasicData.vue | 12 ++ .../Supplier/Card/SupplierBillingData.vue | 11 +- .../Supplier/Card/SupplierConsumption.vue | 35 ++--- .../Card/SupplierConsumptionFilter.vue | 17 +-- .../Supplier/Card/SupplierDescriptor.vue | 72 ++++++++++- src/pages/Supplier/SupplierCreate.vue | 8 ++ src/pages/Supplier/SupplierList.vue | 14 +- src/pages/Supplier/SupplierListFilter.vue | 122 ++++++++++++++++++ 8 files changed, 259 insertions(+), 32 deletions(-) create mode 100644 src/pages/Supplier/SupplierListFilter.vue diff --git a/src/pages/Supplier/Card/SupplierBasicData.vue b/src/pages/Supplier/Card/SupplierBasicData.vue index b73ce9346..747784943 100644 --- a/src/pages/Supplier/Card/SupplierBasicData.vue +++ b/src/pages/Supplier/Card/SupplierBasicData.vue @@ -48,6 +48,13 @@ const workersOptions = ref([]); map-options :rules="validate('supplier.workerFk')" > + + + +es: + Responsible for approving invoices: Responsable de aprobar las facturas + diff --git a/src/pages/Supplier/Card/SupplierBillingData.vue b/src/pages/Supplier/Card/SupplierBillingData.vue index 1237a0403..bf5ccb115 100644 --- a/src/pages/Supplier/Card/SupplierBillingData.vue +++ b/src/pages/Supplier/Card/SupplierBillingData.vue @@ -13,6 +13,13 @@ const { t } = useI18n(); const paymethodsOptions = ref([]); const payDemsOptions = ref([]); + +const formatPayDems = (data) => { + payDemsOptions.value = data.map(({ id, payDem }) => ({ + id: id, + payDem: payDem || '0', + })); +};