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"
|
|
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
|
|
|
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
|
2019-10-24 22:53:53 +00:00
|
|
|
path="greuges/{{$ctrl.$stateParams.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>
|
|
|
|
<vn-th field="shipped" default-order="DESC">Date</vn-th>
|
|
|
|
<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">
|
2019-10-18 23:18:25 +00:00
|
|
|
<vn-td>{{::greuge.shipped | date:'dd/MM/yyyy HH:mm' }}</vn-td>
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-td>{{::greuge.description}}</vn-td>
|
|
|
|
<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"
|
|
|
|
vn-acl="salesAssistant"
|
|
|
|
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>
|