client greuge order by shipped and amount #1431
This commit is contained in:
parent
417dc511f5
commit
1ae2512169
|
@ -4,7 +4,7 @@
|
||||||
filter="::$ctrl.filter"
|
filter="::$ctrl.filter"
|
||||||
link="{clientFk: $ctrl.$stateParams.id}"
|
link="{clientFk: $ctrl.$stateParams.id}"
|
||||||
limit="20"
|
limit="20"
|
||||||
data="greuges" auto-load="false">
|
data="greuges" auto-load="true">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
<mg-ajax
|
<mg-ajax
|
||||||
path="/client/api/greuges/{{$ctrl.$stateParams.id}}/sumAmount"
|
path="/client/api/greuges/{{$ctrl.$stateParams.id}}/sumAmount"
|
||||||
|
@ -20,12 +20,12 @@
|
||||||
</div>
|
</div>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-vertical>
|
<vn-vertical>
|
||||||
<vn-table model="model">
|
<vn-table model="model" auto-load="false">
|
||||||
<vn-thead>
|
<vn-thead>
|
||||||
<vn-tr>
|
<vn-tr>
|
||||||
<vn-th field="shipped" default-order="DESC">Date</vn-th>
|
<vn-th field="shipped" default-order="DESC">Date</vn-th>
|
||||||
<vn-th field="description">Comment</vn-th>
|
<vn-th field="description">Comment</vn-th>
|
||||||
<vn-th field="amount">Amount</vn-th>
|
<vn-th field="amount" >Amount</vn-th>
|
||||||
<vn-th field="greugeTypeFk">Type</vn-th>
|
<vn-th field="greugeTypeFk">Type</vn-th>
|
||||||
</vn-tr>
|
</vn-tr>
|
||||||
</vn-thead>
|
</vn-thead>
|
||||||
|
|
|
@ -6,12 +6,13 @@ class Controller {
|
||||||
this.filter = {
|
this.filter = {
|
||||||
include: [
|
include: [
|
||||||
{
|
{
|
||||||
relation: "greugeType",
|
relation: 'greugeType',
|
||||||
scope: {
|
scope: {
|
||||||
fields: ["id", "name"]
|
fields: ['id', 'name']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
order: 'shipped DESC, amount'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue