2017-12-13 12:40:21 +00:00
|
|
|
<mg-ajax path="/client/api/ClientCredits/filter" options="vnIndexNonAuto"></mg-ajax>
|
2018-03-23 10:33:54 +00:00
|
|
|
<vn-vertical>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-card pad-large>
|
2018-05-07 06:33:45 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-title>Credit</vn-title>
|
|
|
|
<vn-grid-header on-order="$ctrl.onOrder(field, order)">
|
|
|
|
<vn-column-header vn-one pad-medium-h field="amount" text="Credit"></vn-column-header>
|
|
|
|
<vn-column-header vn-two pad-medium-h field="created" text="Since" default-order="ASC"></vn-column-header>
|
|
|
|
<vn-column-header vn-two pad-medium-h field="worker.firstName" text="Employee" order-locked></vn-column-header>
|
|
|
|
</vn-grid-header>
|
|
|
|
<vn-one class="list list-content">
|
|
|
|
<vn-horizontal
|
|
|
|
vn-one class="list list-element text-center"
|
|
|
|
pad-small-bottom
|
2018-05-11 06:35:28 +00:00
|
|
|
ng-repeat="credit in index.model.instances track by credit.id">
|
2018-05-07 06:33:45 +00:00
|
|
|
<vn-one pad-medium-h>{{::credit.amount | number:2}} €</vn-one>
|
|
|
|
<vn-two pad-medium-h>{{::credit.created | date:'dd/MM/yyyy HH:mm'}}</vn-two>
|
|
|
|
<vn-two pad-medium-h>{{::credit.worker.firstName}} {{::credit.worker.name}}</vn-two>
|
|
|
|
</vn-horizontal>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one class="text-center pad-small-v" ng-if="index.model.count === 0" translate>No results</vn-one>
|
|
|
|
<vn-horizontal vn-one class="list list-footer"></vn-horizontal>
|
|
|
|
</vn-vertical>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-card>
|
2018-05-11 06:35:28 +00:00
|
|
|
<vn-paging vn-one margin-large-top index="index" total="index.model.count"></vn-paging>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-vertical>
|
2018-05-23 12:26:51 +00:00
|
|
|
<a ui-sref="client.card.credit.create" vn-bind="+" fixed-bottom-right>
|
2018-01-05 07:06:21 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
2017-12-04 07:17:29 +00:00
|
|
|
</a>
|