2018-09-28 13:00:12 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="clients/getTransactions"
|
2020-03-17 10:17:50 +00:00
|
|
|
link="{clientFk: $ctrl.$params.id}"
|
2018-09-28 13:00:12 +00:00
|
|
|
limit="20"
|
2019-10-02 17:24:42 +00:00
|
|
|
data="transactions"
|
|
|
|
order="created DESC"
|
|
|
|
auto-load="true">
|
2018-09-28 13:00:12 +00:00
|
|
|
</vn-crud-model>
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-w-md">
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-card>
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th shrink>State</vn-th>
|
|
|
|
<vn-th field="id" number>Id</vn-th>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-th field="created" expand>Date</vn-th>
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-th field="amount" number>Amount</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="transaction in transactions">
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon
|
2021-06-15 11:48:42 +00:00
|
|
|
vn-tooltip="{{::$ctrl.getFormattedMessage(transaction)}}"
|
2019-10-02 17:24:42 +00:00
|
|
|
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 number>{{::transaction.id}}</vn-td>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-td expand>{{::transaction.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
2019-10-02 17:24:42 +00:00
|
|
|
<vn-td number>{{::transaction.amount | currency: 'EUR':2}}</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="done_all"
|
|
|
|
vn-acl="administrative"
|
|
|
|
vn-acl-action="remove"
|
|
|
|
translate-attr="{title: 'Confirm transaction'}"
|
|
|
|
ng-show="::!transaction.isConfirmed"
|
|
|
|
ng-click="$ctrl.confirm(transaction)">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-09-28 13:00:12 +00:00
|
|
|
</vn-card>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-data-viewer>
|