2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="greuges"
|
2018-07-16 06:00:04 +00:00
|
|
|
filter="::$ctrl.filter"
|
2020-03-17 10:17:50 +00:00
|
|
|
link="{clientFk: $ctrl.$params.id}"
|
2018-07-16 06:00:04 +00:00
|
|
|
limit="20"
|
2019-10-01 14:17:57 +00:00
|
|
|
data="greuges"
|
|
|
|
auto-load="true">
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<mg-ajax
|
2020-03-17 10:17:50 +00:00
|
|
|
path="greuges/{{$ctrl.$params.id}}/sumAmount"
|
2018-07-16 06:00:04 +00:00
|
|
|
options="mgEdit">
|
|
|
|
</mg-ajax>
|
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
|
|
|
|
ng-if="model.data.length > 0"
|
|
|
|
style="text-align: right;"
|
2019-10-04 22:16:57 +00:00
|
|
|
class="vn-mb-md vn-pa-lg">
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Total"
|
|
|
|
value="{{edit.model.sumAmount | currency: 'EUR': 2}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</vn-card>
|
|
|
|
<vn-card>
|
2018-05-07 06:33:45 +00:00
|
|
|
<vn-vertical>
|
2019-05-16 07:24:13 +00:00
|
|
|
<vn-table model="model" auto-load="false">
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2020-11-10 15:47:39 +00:00
|
|
|
<vn-th field="shipped" default-order="DESC" expand>Date</vn-th>
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-th field="description">Comment</vn-th>
|
|
|
|
<vn-th field="greugeTypeFk">Type</vn-th>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-th field="amount" number>Amount</vn-th>
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="greuge in greuges">
|
2021-08-15 06:35:14 +00:00
|
|
|
<vn-td shrink-datetime>{{::greuge.shipped | date:'dd/MM/yyyy HH:mm' }}</vn-td>
|
2019-12-19 10:37:53 +00:00
|
|
|
<vn-td>
|
|
|
|
<span title="{{::greuge.description}}">{{::greuge.description}}</span>
|
|
|
|
</vn-td>
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-td>{{::greuge.greugeType.name}}</vn-td>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-td number>{{::greuge.amount | currency: 'EUR': 2}}</vn-td>
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-05-07 06:33:45 +00:00
|
|
|
</vn-vertical>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-card>
|
2019-10-02 17:24:42 +00:00
|
|
|
</vn-data-viewer>
|
2019-10-01 14:17:57 +00:00
|
|
|
<vn-float-button
|
|
|
|
icon="add"
|
2018-10-23 09:25:51 +00:00
|
|
|
ui-sref="client.card.greuge.create"
|
|
|
|
vn-tooltip="New greuge"
|
2020-11-23 10:10:16 +00:00
|
|
|
vn-acl="salesAssistant,claimManager"
|
2018-10-23 09:25:51 +00:00
|
|
|
vn-acl-action="remove"
|
2019-10-01 14:17:57 +00:00
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
2018-10-23 09:25:51 +00:00
|
|
|
</vn-float-button>
|