section no longer nukes salesPerson-user relation #353

Merged
carlosjr merged 3 commits from 2365-claim_descriptor_bug into dev 2020-08-14 16:30:39 +00:00
3 changed files with 4 additions and 23 deletions
Showing only changes of commit b711728999 - Show all commits

View File

@ -36,16 +36,7 @@ module.exports = Self => {
relation: 'client', relation: 'client',
scope: { scope: {
include: { include: {
relation: 'salesPerson', relation: 'salesPersonUser'
scope: {
fields: ['userFk'],
include: {
relation: 'user',
scope: {
fields: ['nickname']
}
}
}
} }
} }
} }

View File

@ -34,17 +34,7 @@ class Controller extends ModuleCard {
scope: { scope: {
fields: ['salesPersonFk', 'name', 'email'], fields: ['salesPersonFk', 'name', 'email'],
include: { include: {
relation: 'salesPerson', relation: 'salesPersonUser'
scope: {
fields: ['userFk'],
include: {
relation: 'user',
scope: {
fields: ['nickname']
}
}
}
} }
} }
} }

View File

@ -33,7 +33,7 @@
</vn-label-value> </vn-label-value>
<vn-label-value <vn-label-value
label="Salesperson" label="Salesperson"
value="{{$ctrl.claim.client.salesPerson.user.nickname}}"> value="{{$ctrl.claim.client.salesPersonUser.nickname}}">
</vn-label-value> </vn-label-value>
<vn-label-value <vn-label-value
label="Attended by" label="Attended by"