diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 73cd207a0..863375043 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -154,6 +154,7 @@ export default { customerId: 'Claim ID', salesPerson: 'Sales person', credit: 'Credit', + risk: 'Risk', securedCredit: 'Secured credit', payMethod: 'Pay method', debt: 'Debt', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 931266fd9..e92ab8ce6 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -153,6 +153,7 @@ export default { customerId: 'ID cliente', salesPerson: 'Comercial', credit: 'Crédito', + risk: 'Riesgo', securedCredit: 'Crédito asegurado', payMethod: 'Método de pago', debt: 'Riesgo', diff --git a/src/pages/Customer/Card/CustomerContacts.vue b/src/pages/Customer/Card/CustomerContacts.vue index 35a561268..fffbf6147 100644 --- a/src/pages/Customer/Card/CustomerContacts.vue +++ b/src/pages/Customer/Card/CustomerContacts.vue @@ -77,9 +77,20 @@ const onSubmit = async () => { - + +
+ + + {{ t('info') }} + +
(data.value = useCardDescription(entity.name, entity { "en": { "ticketList": "Customer ticket list", - "invoiceOutList": "Customer invoice out list" + "invoiceOutList": "Customer invoice out list", + "info": "Invoices minus payments plus orders not yet" }, "es": { "ticketList": "Listado de tickets del cliente", - "invoiceOutList": "Listado de facturas del cliente" + "invoiceOutList": "Listado de facturas del cliente", + "info": "Facturas menos recibos mas pedidos sin facturar" } } diff --git a/src/pages/Customer/Card/CustomerWebAccess.vue b/src/pages/Customer/Card/CustomerWebAccess.vue index a077ca2fc..1dacba99e 100644 --- a/src/pages/Customer/Card/CustomerWebAccess.vue +++ b/src/pages/Customer/Card/CustomerWebAccess.vue @@ -45,16 +45,17 @@ const showChangePasswordDialog = () => { componentProps: { id: route.params.id, userPasswords: userPasswords.value, - promise: getData, + promise: usersPreviewRef.value.fetch(), }, }); }; -const getData = (data) => { - active.value = data[0].active; - email.value = data[0].email; - name.value = data[0].name; - user.value = data[0]; +const setInitialData = () => { + if (user.value.length) { + active.value = user.value[0].active; + email.value = user.value[0].email; + name.value = user.value[0].name; + } }; const onSubmit = async () => { @@ -80,7 +81,12 @@ const onSubmit = async () => {