diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 3935cead4..4bfde9ea1 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -309,136 +309,6 @@ resetPassword: repeatPassword: Repeat password passwordNotMatch: Passwords don't match passwordChanged: Password changed -customer: - list: - phone: Phone - email: Email - customerOrders: Display customer orders - moreOptions: More options - card: - customerList: Customer list - customerId: Claim ID - salesPerson: Sales person - credit: Credit - risk: Risk - securedCredit: Secured credit - payMethod: Pay method - debt: Debt - isFrozen: Customer frozen - hasDebt: Customer has debt - isDisabled: Customer inactive - notChecked: Customer no checked - webAccountInactive: Web account inactive - noWebAccess: Web access is disabled - businessType: Business type - passwordRequirements: 'The password must have at least { length } length characters, {nAlpha} alphabetic characters, {nUpper} capital letters, {nDigits} digits and {nPunct} symbols (Ex: $%&.)\n' - businessTypeFk: Business type - summary: - basicData: Basic data - fiscalAddress: Fiscal address - fiscalData: Fiscal data - billingData: Billing data - consignee: Default consignee - businessData: Business data - financialData: Financial data - customerId: Customer ID - name: Name - contact: Contact - phone: Phone - mobile: Mobile - email: Email - salesPerson: Sales person - contactChannel: Contact channel - socialName: Social name - fiscalId: Fiscal ID - postcode: Postcode - province: Province - country: Country - street: Address - isEqualizated: Is equalizated - isActive: Is active - invoiceByAddress: Invoice by address - verifiedData: Verified data - hasToInvoice: Has to invoice - notifyByEmail: Notify by email - vies: VIES - payMethod: Pay method - bankAccount: Bank account - dueDay: Due day - hasLcr: Has LCR - hasCoreVnl: Has core VNL - hasB2BVnl: Has B2B VNL - addressName: Address name - addressCity: City - addressStreet: Street - username: Username - webAccess: Web access - totalGreuge: Total greuge - mana: Mana - priceIncreasingRate: Price increasing rate - averageInvoiced: Average invoiced - claimRate: Claming rate - risk: Risk - maximumRisk: Solunion's maximum risk - riskInfo: Invoices minus payments plus orders not yet invoiced - credit: Credit - creditInfo: Company's maximum risk - securedCredit: Secured credit - securedCreditInfo: Solunion's maximum risk - balance: Balance - balanceInfo: Invoices minus payments - balanceDue: Balance due - balanceDueInfo: Deviated invoices minus payments - recoverySince: Recovery since - businessType: Business Type - city: City - descriptorInfo: Invoices minus payments plus orders not yet - rating: Rating - recommendCredit: Recommended credit - basicData: - socialName: Fiscal name - businessType: Business type - contact: Contact - youCanSaveMultipleEmails: You can save multiple emails - email: Email - phone: Phone - mobile: Mobile - salesPerson: Sales person - contactChannel: Contact channel - previousClient: Previous client - extendedList: - tableVisibleColumns: - id: Identifier - name: Name - socialName: Social 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: list: newEntry: New entry diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f319f9430..14064ddcf 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -309,136 +309,6 @@ resetPassword: repeatPassword: Repetir contraseña passwordNotMatch: Las contraseñas no coinciden passwordChanged: Contraseña cambiada -customer: - list: - phone: Teléfono - email: Email - customerOrders: Mostrar órdenes del cliente - moreOptions: Más opciones - card: - customerId: ID cliente - salesPerson: Comercial - credit: Crédito - risk: Riesgo - securedCredit: Crédito asegurado - payMethod: Método de pago - debt: Riesgo - isFrozen: Cliente congelado - hasDebt: Cliente con riesgo - isDisabled: Cliente inactivo - notChecked: Cliente no comprobado - webAccountInactive: Sin acceso web - noWebAccess: El acceso web está desactivado - businessType: Tipo de negocio - passwordRequirements: 'La contraseña debe tener al menos { length } caracteres de longitud, {nAlpha} caracteres alfabéticos, {nUpper} letras mayúsculas, {nDigits} dígitos y {nPunct} símbolos (Ej: $%&.)' - businessTypeFk: Tipo de negocio - summary: - basicData: Datos básicos - fiscalAddress: Dirección fiscal - fiscalData: Datos fiscales - billingData: Datos de facturación - consignee: Consignatario pred. - businessData: Datos comerciales - financialData: Datos financieros - customerId: ID cliente - name: Nombre - contact: Contacto - phone: Teléfono - mobile: Móvil - email: Email - salesPerson: Comercial - contactChannel: Canal de contacto - socialName: Razón social - fiscalId: NIF/CIF - postcode: Código postal - province: Provincia - country: País - street: Calle - isEqualizated: Recargo de equivalencia - isActive: Activo - invoiceByAddress: Facturar por consignatario - verifiedData: Datos verificados - hasToInvoice: Facturar - notifyByEmail: Notificar por email - vies: VIES - payMethod: Método de pago - bankAccount: Cuenta bancaria - dueDay: Día de pago - hasLcr: Recibido LCR - hasCoreVnl: Recibido core VNL - hasB2BVnl: Recibido B2B VNL - addressName: Nombre de la dirección - addressCity: Ciudad - addressStreet: Calle - username: Usuario - webAccess: Acceso web - totalGreuge: Greuge total - mana: Maná - priceIncreasingRate: Ratio de incremento de precio - averageInvoiced: Facturación media - claimRate: Ratio de reclamaciones - maximumRisk: Riesgo máximo asumido por Solunion - - risk: Riesgo - riskInfo: Facturas menos recibos mas pedidos sin facturar - credit: Crédito - creditInfo: Riesgo máximo asumido por la empresa - securedCredit: Crédito asegurado - securedCreditInfo: Riesgo máximo asumido por Solunion - balance: Balance - balanceInfo: Facturas menos recibos - balanceDue: Saldo vencido - balanceDueInfo: Facturas fuera de plazo menos recibos - recoverySince: Recobro desde - businessType: Tipo de negocio - city: Población - descriptorInfo: Facturas menos recibos mas pedidos sin facturar - rating: Clasificación - recommendCredit: Crédito recomendado - basicData: - socialName: Nombre fiscal - businessType: Tipo de negocio - contact: Contacto - youCanSaveMultipleEmails: Puede guardar varios correos electrónicos encadenándolos mediante comas sin espacios{','} ejemplo{':'} user{'@'}dominio{'.'}com, user2{'@'}dominio{'.'}com siendo el primer correo electrónico el principal - email: Email - phone: Teléfono - mobile: Móvil - salesPerson: Comercial - contactChannel: Canal de contacto - previousClient: Cliente anterior - extendedList: - tableVisibleColumns: - id: Identificador - name: Nombre - socialName: Razón social - 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: list: newEntry: Nueva entrada diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue index 4980e5495..5cab825a9 100644 --- a/src/pages/Customer/Card/CustomerDescriptor.vue +++ b/src/pages/Customer/Card/CustomerDescriptor.vue @@ -3,7 +3,7 @@ import { ref, computed } from 'vue'; import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; -import { toCurrency, toDate } from 'src/filters'; +import { dashIfEmpty, toCurrency, toDate } from 'src/filters'; import useCardDescription from 'src/composables/useCardDescription'; @@ -66,12 +66,14 @@ const setData = (entity) => (data.value = useCardDescription(entity?.name, entit :value="toCurrency(entity.debt)" :info="t('customer.summary.riskInfo')" /> - + { return tooMuchInsurance || noCreditInsurance ? 'negative' : ''; }); +const sumRisk = ({ clientRisks }) => { + let total = clientRisks.reduce((acc, risk) => acc + risk.amount, 0); + + return total; +};