diff --git a/src/components/common/TableVisibleColumns.vue b/src/components/common/TableVisibleColumns.vue new file mode 100644 index 000000000..94e3bfbc7 --- /dev/null +++ b/src/components/common/TableVisibleColumns.vue @@ -0,0 +1,140 @@ + + + setUserConfigViewData(data)" + auto-load + /> + + + + + {{ t('Check the columns you want to see') }} + + {{ t('Visible columns') }} + + + + + {{ + t('globals.save') + }} + + + + + + diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 878dc03b8..a7567866b 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -206,6 +206,40 @@ export default { salesPerson: 'Sales person', contactChannel: 'Contact channel', }, + extendedList: { + tableVisibleColumns: { + id: 'Identifier', + name: 'Name', + fi: 'Tax number', + salesPersonFk: 'Salesperson', + credit: 'Credit', + creditInsurance: 'Credit insurance', + phone: 'Phone', + mobile: 'Mobile', + street: 'Street', + countryFk: 'Country', + provinceFk: 'Province', + city: 'City', + postcode: 'Postcode', + email: 'Email', + created: 'Created', + businessTypeFk: 'Business type', + payMethodFk: 'Billing data', + sageTaxTypeFk: 'Sage tax type', + sageTransactionTypeFk: 'Sage tr. type', + isActive: 'Active', + isVies: 'Vies', + isTaxDataChecked: 'Verified data', + isEqualizated: 'Is equalizated', + isFreezed: 'Freezed', + hasToInvoice: 'Invoice', + hasToInvoiceByAddress: 'Invoice by address', + isToBeMailed: 'Mailing', + hasLcr: 'Received LCR', + hasCoreVnl: 'VNL core received', + hasSepaVnl: 'VNL B2B received', + }, + }, }, entry: { pageTitles: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 4d29947a7..c4820e70e 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -205,6 +205,40 @@ export default { salesPerson: 'Comercial', contactChannel: 'Canal de contacto', }, + extendedList: { + tableVisibleColumns: { + id: 'Identificador', + name: 'Nombre', + fi: 'NIF / CIF', + salesPersonFk: 'Comercial', + credit: 'Crédito', + creditInsurance: 'Crédito asegurado', + phone: 'Teléfono', + mobile: 'Móvil', + street: 'Dirección fiscal', + countryFk: 'País', + provinceFk: 'Provincia', + city: 'Población', + postcode: 'Código postal', + email: 'Email', + created: 'Fecha creación', + businessTypeFk: 'Tipo de negocio', + payMethodFk: 'Forma de pago', + sageTaxTypeFk: 'Tipo de impuesto Sage', + sageTransactionTypeFk: 'Tipo tr. sage', + isActive: 'Activo', + isVies: 'Vies', + isTaxDataChecked: 'Datos comprobados', + isEqualizated: 'Recargo de equivalencias', + isFreezed: 'Congelado', + hasToInvoice: 'Factura', + hasToInvoiceByAddress: 'Factura por consigna', + isToBeMailed: 'Env. emails', + hasLcr: 'Recibido LCR', + hasCoreVnl: 'Recibido core VNL', + hasSepaVnl: 'Recibido B2B VNL', + }, + }, }, entry: { pageTitles: { diff --git a/src/pages/Customer/CustomerExtendedList.vue b/src/pages/Customer/CustomerExtendedList.vue index be3463867..a60b79caf 100644 --- a/src/pages/Customer/CustomerExtendedList.vue +++ b/src/pages/Customer/CustomerExtendedList.vue @@ -1,16 +1,18 @@ - + - + + + @@ -149,11 +521,11 @@ const selectCustomerId = (id) => { { v-bind="tableColumnComponents[col.name].props(props)" @click="tableColumnComponents[col.name].event(props)" > - {{ col.value }} - + {{ dashIfEmpty(col.value) }} + + @@ -189,13 +568,3 @@ const selectCustomerId = (id) => { padding: 6px 6px 6px 6px; } - - -es: - Identifier: Identificador - Social name: Razón social - Salesperson: Comercial - Phone: Teléfono - City: Población - Email: Email - diff --git a/src/pages/Customer/CustomerExtendedListActions.vue b/src/pages/Customer/CustomerExtendedListActions.vue index 1fec71ffe..882a71936 100644 --- a/src/pages/Customer/CustomerExtendedListActions.vue +++ b/src/pages/Customer/CustomerExtendedListActions.vue @@ -39,22 +39,29 @@ const viewSummary = () => { - - - {{ t('Client ticket list') }} - - - - - {{ t('Preview') }} - - + + + + {{ t('Client ticket list') }} + + + + + {{ t('Preview') }} + + + diff --git a/src/pages/Customer/CustomerExtendedListFilter.vue b/src/pages/Customer/CustomerExtendedListFilter.vue index ba1c966dc..0cf614fca 100644 --- a/src/pages/Customer/CustomerExtendedListFilter.vue +++ b/src/pages/Customer/CustomerExtendedListFilter.vue @@ -1,22 +1,40 @@ @@ -32,25 +50,75 @@ const workers = ref(); @on-fetch="(data) => (workers = data)" auto-load /> + (workers = data)" + auto-load + /> + (countriesOptions = data)" + auto-load + /> + (provincesOptions = data)" + auto-load + url="Provinces" + /> + (paymethodsOptions = data)" + auto-load + /> + (businessTypesOptions = data)" + auto-load + /> + (sageTaxTypesOptions = data)" + /> + (sageTransactionTypesOptions = data)" + /> - {{ t(`params.${tag.label}`) }}: + {{ t(`customer.extendedList.tableVisibleColumns.${tag.label}`) }}: + {{ formatFn(tag.value) }} - - + + + + + + + - + + + + + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -128,26 +565,7 @@ const workers = ref(); -en: - params: - identifier: Identifier - socialName: Social name - salesPerson: Salesperson - phone: Phone - city: City - email: Email + es: - params: - identifier: Identificador - socialName: Razón social - salesPerson: Comercial - phone: Teléfono - city: Población - email: Email - Identifier: Identificador Social name: Razón social - Salesperson: Comercial - Phone: Teléfono - City: Población - Email: Email