2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/client/api/Recoveries"
|
|
|
|
filter="{}"
|
|
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
|
|
|
limit="20"
|
2018-11-27 14:02:54 +00:00
|
|
|
data="recoveries" auto-load="false">
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-crud-model>
|
2018-12-17 12:52:16 +00:00
|
|
|
<vn-vertical compact>
|
|
|
|
<vn-card pad-large>
|
2018-05-07 06:33:45 +00:00
|
|
|
<vn-vertical>
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th></vn-th>
|
|
|
|
<vn-th field="started" default-order="DESC">Since</vn-th>
|
|
|
|
<vn-th field="finished">To</vn-th>
|
|
|
|
<vn-th field="amount">Amount</vn-th>
|
|
|
|
<vn-th field="period">Period</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="recovery in recoveries">
|
|
|
|
<vn-td>
|
2018-10-11 07:41:30 +00:00
|
|
|
<vn-icon-button icon="lock"
|
|
|
|
vn-acl="administrative"
|
|
|
|
vn-acl-action="remove"
|
2018-07-16 06:00:04 +00:00
|
|
|
vn-tooltip="Finish that recovery period"
|
|
|
|
ng-if="!recovery.finished"
|
2018-10-17 10:49:18 +00:00
|
|
|
ng-click="$ctrl.setFinished(recovery)">
|
2018-10-11 07:41:30 +00:00
|
|
|
</vn-icon-button>
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::recovery.started | date:'dd/MM/yyyy' }}</vn-td>
|
|
|
|
<vn-td>{{recovery.finished | date:'dd/MM/yyyy' }}</vn-td>
|
2019-01-31 10:44:03 +00:00
|
|
|
<vn-td>{{::recovery.amount | currency: 'EUR': 0}}</vn-td>
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-td>{{::recovery.period}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-05-07 06:33:45 +00:00
|
|
|
</vn-vertical>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
2018-10-11 07:41:30 +00:00
|
|
|
|
|
|
|
<vn-float-button icon="add" fixed-bottom-right
|
|
|
|
vn-tooltip="New recovery"
|
|
|
|
vn-bind="+"
|
|
|
|
vn-acl="administrative"
|
|
|
|
vn-acl-action="remove"
|
|
|
|
ui-sref="client.card.recovery.create">
|
|
|
|
</vn-float-button>
|