diff --git a/src/pages/Claim/Card/ClaimDescriptor.vue b/src/pages/Claim/Card/ClaimDescriptor.vue index 4f2703e71..afd22c340 100644 --- a/src/pages/Claim/Card/ClaimDescriptor.vue +++ b/src/pages/Claim/Card/ClaimDescriptor.vue @@ -2,7 +2,7 @@ import { ref, computed } from 'vue'; import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; -import { toDate } from 'src/filters'; +import { toDate, toPercentage } from 'src/filters'; import { useState } from 'src/composables/useState'; import TicketDescriptorProxy from 'pages/Ticket/Card/TicketDescriptorProxy.vue'; import ClaimDescriptorMenu from 'pages/Claim/Card/ClaimDescriptorMenu.vue'; @@ -32,7 +32,16 @@ const filter = { { relation: 'client', scope: { - include: { relation: 'salesPersonUser' }, + include: [ + { relation: 'salesPersonUser' }, + { + relation: 'claimsRatio', + scope: { + fields: ['claimingRate'], + limit: 1, + }, + }, + ], }, }, { @@ -135,6 +144,10 @@ const setData = (entity) => { :value="entity.ticket?.address?.province?.name" /> +