refs #5334 workFk, clientFk
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2023-05-30 11:48:39 +02:00
parent 2778858705
commit cf632040e7
2 changed files with 14 additions and 4 deletions

View File

@ -26,13 +26,13 @@
</vn-label-value> </vn-label-value>
<vn-label-value <vn-label-value
label="Boss department" label="Boss department"
value="{{$summary.workerFk}}"> value="{{summary.worker.firstName}} {{summary.worker.lastName}}">
</vn-label-value> </vn-label-value>
<vn-label-value label="Email" <vn-label-value label="Email"
value="{{summary.notificationEmail}}"> value="{{summary.notificationEmail}}">
</vn-label-value> </vn-label-value>
<vn-label-value label="Self-consumption customer" <vn-label-value label="Self-consumption customer"
value="{{summary.workerFk}}"> value="{{summary.client.name}}">
</vn-label-value> </vn-label-value>
</vn-one> </vn-one>
<vn-vertical> <vn-vertical>

View File

@ -8,9 +8,19 @@ class Controller extends Component {
if (!value) return; if (!value) return;
const filter = { const filter = {
fields: ['id', 'name', 'code', 'workerFk', 'isProduction', 'chatName',
'isTeleworking', 'notificationEmail', 'hasToRefill', 'hasToSendMai', 'hasToMistake', 'clientFk'],
include: [ include: [
{relation: 'client'}, {relation: 'client',
{relation: 'worker'} scope: {
fields: ['id', 'name']
}},
{
relation: 'worker',
scope: {
fields: ['id', 'firstName', 'lastName']
}
}
] ]
}; };