feat(client_descriptor): add supplier quick-link
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
76b63c8c45
commit
4e3fe180ca
|
@ -97,7 +97,8 @@ ngModule.vnComponent('vnDescriptor', {
|
||||||
btnOne: '?btnOne',
|
btnOne: '?btnOne',
|
||||||
btnTwo: '?btnTwo',
|
btnTwo: '?btnTwo',
|
||||||
btnThree: '?btnThree',
|
btnThree: '?btnThree',
|
||||||
btnFour: '?btnFour'
|
btnFour: '?btnFour',
|
||||||
|
btnFive: '?btnFive'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ vn-descriptor-content {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 0 $spacing-sm;
|
padding: 0 $spacing-sm;
|
||||||
margin: 0 $spacing-sm;
|
margin: 0 $spacing-xs;
|
||||||
|
|
||||||
& > vn-icon {
|
& > vn-icon {
|
||||||
font-size: 1.75rem;
|
font-size: 1.75rem;
|
||||||
|
|
|
@ -64,6 +64,12 @@ module.exports = function(Self) {
|
||||||
scope: {
|
scope: {
|
||||||
fields: ['id', 'name', 'active']
|
fields: ['id', 'name', 'active']
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
relation: 'supplier',
|
||||||
|
scope: {
|
||||||
|
fields: ['id', 'nif']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
|
@ -228,7 +228,13 @@
|
||||||
"type": "belongsTo",
|
"type": "belongsTo",
|
||||||
"model": "Client",
|
"model": "Client",
|
||||||
"foreignKey": "transferorFk"
|
"foreignKey": "transferorFk"
|
||||||
}
|
},
|
||||||
|
"supplier": {
|
||||||
|
"type": "belongsTo",
|
||||||
|
"model": "Supplier",
|
||||||
|
"foreignKey": "fi",
|
||||||
|
"primaryKey": "nif"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"scopes": {
|
"scopes": {
|
||||||
"isActive": {
|
"isActive": {
|
||||||
|
|
|
@ -101,6 +101,14 @@
|
||||||
icon="face">
|
icon="face">
|
||||||
</vn-quick-link>
|
</vn-quick-link>
|
||||||
</div>
|
</div>
|
||||||
|
<div ng-transclude="btnFive">
|
||||||
|
<vn-quick-link
|
||||||
|
ng-if="$ctrl.client.supplier.nif"
|
||||||
|
tooltip="Go to client"
|
||||||
|
state="['supplier.card.summary', {id: $ctrl.client.supplier.id}]"
|
||||||
|
icon="icon-supplier">
|
||||||
|
</vn-quick-link>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</slot-body>
|
</slot-body>
|
||||||
</vn-descriptor-content>
|
</vn-descriptor-content>
|
||||||
|
|
Loading…
Reference in New Issue