2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/client/api/greuges"
|
|
|
|
filter="::$ctrl.filter"
|
|
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
|
|
|
limit="20"
|
2018-11-27 14:02:54 +00:00
|
|
|
data="greuges" auto-load="false">
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
|
|
|
|
<mg-ajax
|
|
|
|
path="/client/api/greuges/{{$ctrl.$stateParams.id}}/sumAmount"
|
|
|
|
options="mgEdit">
|
|
|
|
</mg-ajax>
|
|
|
|
|
2018-12-14 11:56:21 +00:00
|
|
|
<vn-vertical compact>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-card pad-large>
|
2018-07-19 12:06:35 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-title vn-two>Greuge</vn-title>
|
2018-07-31 09:08:22 +00:00
|
|
|
<div class="totalBox" ng-if="model.data.length > 0">
|
2018-07-19 12:06:35 +00:00
|
|
|
<vn-label-value label="Total"
|
|
|
|
value="{{edit.model.sumAmount | currency: ' €': 2}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
|
|
|
</vn-horizontal>
|
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 field="shipped" default-order="DESC">Date</vn-th>
|
|
|
|
<vn-th field="description">Comment</vn-th>
|
|
|
|
<vn-th field="amount">Amount</vn-th>
|
|
|
|
<vn-th field="greugeTypeFk">Type</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="greuge in greuges">
|
|
|
|
<vn-td>{{::greuge.shipped | date:'dd/MM/yyyy HH:mm' }}</vn-td>
|
|
|
|
<vn-td>{{::greuge.description}}</vn-td>
|
|
|
|
<vn-td>{{::greuge.amount | currency: ' €': 2}}</vn-td>
|
|
|
|
<vn-td>{{::greuge.greugeType.name}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
|
|
No results
|
|
|
|
</vn-empty-rows>
|
|
|
|
</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-23 09:25:51 +00:00
|
|
|
|
|
|
|
<vn-float-button icon="add" fixed-bottom-right
|
|
|
|
ui-sref="client.card.greuge.create"
|
|
|
|
vn-tooltip="New greuge"
|
|
|
|
vn-acl="salesAssistant"
|
|
|
|
vn-acl-action="remove"
|
|
|
|
vn-bind="+">
|
|
|
|
</vn-float-button>
|