2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/client/api/ClientCredits"
|
|
|
|
filter="::$ctrl.filter"
|
|
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
|
|
|
limit="20"
|
2018-11-27 14:02:54 +00:00
|
|
|
data="credits" auto-load="false">
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-crud-model>
|
2019-10-01 14:17:57 +00:00
|
|
|
<div class="vn-w-md">
|
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="created" default-order="DESC">Since</vn-th>
|
|
|
|
<vn-th>Employee</vn-th>
|
|
|
|
<vn-th field="amount" number>Credit</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="credit in credits track by credit.id">
|
|
|
|
<vn-td>{{::credit.created | dateTime:'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
|
|
<vn-td>{{::credit.worker.user.nickname}}</vn-td>
|
|
|
|
<vn-td number>{{::credit.amount | currency:'EUR':2}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-card>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
|
|
|
</div>
|
|
|
|
<vn-float-button
|
|
|
|
icon="add"
|
2018-10-23 09:25:51 +00:00
|
|
|
ui-sref="client.card.credit.create"
|
|
|
|
vn-acl="teamBoss"
|
|
|
|
vn-acl-action="remove"
|
|
|
|
vn-tooltip="New credit"
|
2019-10-01 14:17:57 +00:00
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
2018-10-23 09:25:51 +00:00
|
|
|
</vn-float-button>
|