2018-09-28 13:00:12 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/client/api/clients/getTransactions"
|
|
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
|
|
|
limit="20"
|
2018-11-27 14:02:54 +00:00
|
|
|
data="transactions" auto-load="false">
|
2018-09-28 13:00:12 +00:00
|
|
|
</vn-crud-model>
|
2018-12-17 12:52:16 +00:00
|
|
|
<vn-vertical compact>
|
|
|
|
<vn-card pad-large>
|
2018-09-28 13:00:12 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2018-12-10 14:34:48 +00:00
|
|
|
<vn-th>State</vn-th>
|
2018-10-01 06:17:36 +00:00
|
|
|
<vn-th field="id">Id</vn-th>
|
2018-09-28 13:00:12 +00:00
|
|
|
<vn-th field="amount" number>Amount</vn-th>
|
2018-10-01 06:17:36 +00:00
|
|
|
<vn-th field="created" default-order="DESC">Payed</vn-th>
|
2018-12-10 14:34:48 +00:00
|
|
|
<vn-th>Confirm</vn-th>
|
2018-09-28 13:00:12 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="transaction in transactions">
|
2018-12-10 14:34:48 +00:00
|
|
|
<vn-td style="width: 3em; text-align: center">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="{{$ctrl.getFormattedMessage(transaction)}}"
|
|
|
|
ng-show="::((transaction.errorMessage || transaction.responseMessage) && !transaction.isConfirmed)"
|
|
|
|
icon="clear">
|
|
|
|
</vn-icon>
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Confirmed"
|
|
|
|
ng-show="::(transaction.isConfirmed)"
|
|
|
|
icon="check">
|
|
|
|
</vn-icon>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::transaction.id}}</vn-td>
|
2019-01-31 10:44:03 +00:00
|
|
|
<vn-td number>{{::transaction.amount | currency: 'EUR':2}}</vn-td>
|
2018-12-10 14:34:48 +00:00
|
|
|
<vn-td>{{::transaction.created | dateTime:'dd/MM/yyyy'}}</vn-td>
|
2018-09-28 13:00:12 +00:00
|
|
|
<vn-td style="width: 3em; text-align: center">
|
2018-10-11 07:41:30 +00:00
|
|
|
<vn-icon-button
|
2018-12-10 14:34:48 +00:00
|
|
|
icon="done_all"
|
2018-10-11 07:41:30 +00:00
|
|
|
vn-acl="administrative"
|
2018-11-23 07:44:19 +00:00
|
|
|
vn-acl-action="remove"
|
2018-09-28 13:00:12 +00:00
|
|
|
vn-tooltip="Confirm transaction"
|
2018-10-11 07:41:30 +00:00
|
|
|
ng-show="::!transaction.isConfirmed"
|
2018-10-17 10:49:18 +00:00
|
|
|
ng-click="$ctrl.confirm(transaction)">
|
2018-10-11 07:41:30 +00:00
|
|
|
</vn-icon-button>
|
2018-09-28 13:00:12 +00:00
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-09-28 13:00:12 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|