invoiceOut descriptor popover in ticket summary
This commit is contained in:
parent
1f2dee9c12
commit
c205c173f8
|
@ -101,6 +101,12 @@ module.exports = Self => {
|
||||||
fields: ['name']
|
fields: ['name']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
relation: 'invoiceOut',
|
||||||
|
scope: {
|
||||||
|
fields: ['id']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
where: {id: ticketFk}
|
where: {id: ticketFk}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "Tickets",
|
"name": "Tickets",
|
||||||
"icon": "icon-ticket",
|
"icon": "icon-ticket",
|
||||||
"validations": true,
|
"validations": true,
|
||||||
"dependencies": ["worker", "item", "client", "route"],
|
"dependencies": ["worker", "item", "client", "route", "invoiceOut"],
|
||||||
"menus": {
|
"menus": {
|
||||||
"main": [
|
"main": [
|
||||||
{"state": "ticket.index", "icon": "icon-ticket"},
|
{"state": "ticket.index", "icon": "icon-ticket"},
|
||||||
|
|
|
@ -37,8 +37,12 @@
|
||||||
{{$ctrl.summary.routeFk}}
|
{{$ctrl.summary.routeFk}}
|
||||||
</span>
|
</span>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Invoice"
|
<vn-label-value label="Invoice">
|
||||||
value="{{$ctrl.summary.refFk}}">
|
<span
|
||||||
|
ng-click="$ctrl.showInvoiceOutDescriptor($event)"
|
||||||
|
class="link">
|
||||||
|
{{$ctrl.summary.refFk | dashIfEmpty}}
|
||||||
|
</span>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-one>
|
<vn-one>
|
||||||
|
@ -235,3 +239,6 @@
|
||||||
vn-id="descriptor"
|
vn-id="descriptor"
|
||||||
quicklinks="$ctrl.quicklinks">
|
quicklinks="$ctrl.quicklinks">
|
||||||
</vn-item-descriptor-popover>
|
</vn-item-descriptor-popover>
|
||||||
|
<vn-invoice-out-descriptor-popover
|
||||||
|
vn-id="invoice-out-descriptor">
|
||||||
|
</vn-invoice-out-descriptor-popover>
|
|
@ -44,6 +44,12 @@ class Controller extends Section {
|
||||||
this.$.routeDescriptor.show();
|
this.$.routeDescriptor.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
showInvoiceOutDescriptor(event) {
|
||||||
|
this.$.invoiceOutDescriptor.invoiceOutId = this.summary.invoiceOut.id;
|
||||||
|
this.$.invoiceOutDescriptor.parent = event.target;
|
||||||
|
this.$.invoiceOutDescriptor.show();
|
||||||
|
}
|
||||||
|
|
||||||
showDescriptor(event, sale) {
|
showDescriptor(event, sale) {
|
||||||
this.quicklinks = {
|
this.quicklinks = {
|
||||||
btnThree: {
|
btnThree: {
|
||||||
|
|
Loading…
Reference in New Issue