feat(entry_summary): add reference
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2021-10-18 14:00:59 +02:00
parent 015fbc37a8
commit 40ab2ce5bc
2 changed files with 11 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module.exports = Self => {
{
relation: 'travel',
scope: {
fields: ['id', 'name', 'shipped', 'landed', 'agencyFk', 'warehouseOutFk', 'warehouseInFk', 'isReceived', 'isDelivered'],
fields: ['id', 'name', 'shipped', 'landed', 'agencyFk', 'warehouseOutFk', 'warehouseInFk', 'isReceived', 'isDelivered', 'ref'],
include: [
{
relation: 'agency',

View File

@ -34,6 +34,13 @@
</vn-label-value>
</vn-one>
<vn-one>
<vn-label-value label="Reference">
<span
ng-click="travelDescriptor.show($event, $ctrl.entryData.travel.id)"
class="link">
{{$ctrl.entryData.travel.ref}}
</span>
</vn-label-value>
<vn-label-value label="Agency"
value="{{$ctrl.entryData.travel.agency.name}}">
</vn-label-value>
@ -185,4 +192,7 @@
vn-id="item-descriptor"
warehouse-fk="$ctrl.vnConfig.warehouseFk">
</vn-item-descriptor-popover>
<vn-travel-descriptor-popover
vn-id="travelDescriptor">
</vn-travel-descriptor-popover>