refs #5919 locker relation
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2024-01-03 08:17:37 +01:00
parent e2eebf96f7
commit 69739fca9c
2 changed files with 12 additions and 0 deletions

View File

@ -59,6 +59,7 @@
></vn-link-phone>
</vn-label-value>
<vn-label-value label="Locker"
value="{{worker.locker.code}}"
>
</vn-label-value>
</vn-one>

View File

@ -51,7 +51,18 @@ class Controller extends Summary {
scope: {fields: ['id', 'code', 'name']}
}
}
},
{
relation: 'locker',
scope: {
fields: ['id', 'code', 'gender'],
include: {
relation: 'worker',
scope: {fields: ['id']}
}
}
}
]
};