refs #5990 fix(ticket_descriptor_summary): client.salePersone null value
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-08-17 09:07:58 +02:00
parent 07d1801b5e
commit ab2e1f4553
2 changed files with 18 additions and 13 deletions

View File

@ -102,16 +102,18 @@ const setData = (entity) =>
</span> </span>
</template> </template>
</VnLv> </VnLv>
<VnLv <VnLv :label="t('ticket.summary.salesPerson')">
v-if="entity.client && entity.client.salesPersonUser" <template #value>
:label="t('ticket.card.salesPerson')" <span class="link">
:value="entity.client.salesPersonUser.name" {{ ticket.client?.salesPersonUser?.name }}
/> <WorkerDescriptorProxy
<VnLv :id="ticket.client.salesPersonFk"
v-if="entity.warehouse" v-if="ticket.client.salesPersonFk"
:label="t('ticket.card.warehouse')" />
:value="entity.warehouse.name" </span>
/> </template>
</VnLv>
<VnLv :label="t('ticket.card.warehouse')" :value="entity.warehouse?.name" />
<VnLv <VnLv
v-if="entity.agencyMode" v-if="entity.agencyMode"
:label="t('ticket.card.agency')" :label="t('ticket.card.agency')"

View File

@ -160,8 +160,11 @@ async function changeState(value) {
<VnLv :label="t('ticket.summary.salesPerson')"> <VnLv :label="t('ticket.summary.salesPerson')">
<template #value> <template #value>
<span class="link"> <span class="link">
{{ ticket.client.salesPersonUser.name }} {{ ticket.client?.salesPersonUser?.name }}
<WorkerDescriptorProxy :id="ticket.client.salesPersonFk" /> <WorkerDescriptorProxy
:id="ticket.client.salesPersonFk"
v-if="ticket.client.salesPersonFk"
/>
</span> </span>
</template> </template>
</VnLv> </VnLv>
@ -172,7 +175,7 @@ async function changeState(value) {
<VnLv :label="t('ticket.summary.zone')" :value="ticket.zone.name" /> <VnLv :label="t('ticket.summary.zone')" :value="ticket.zone.name" />
<VnLv <VnLv
:label="t('ticket.summary.warehouse')" :label="t('ticket.summary.warehouse')"
:value="ticket.warehouse.name" :value="ticket.warehouse?.name"
/> />
<VnLv :label="t('ticket.summary.route')" :value="ticket.routeFk" /> <VnLv :label="t('ticket.summary.route')" :value="ticket.routeFk" />
<VnLv :label="t('ticket.summary.invoice')"> <VnLv :label="t('ticket.summary.invoice')">