salix/modules/client/front/greuge/index/index.html

58 lines
1.8 KiB
HTML
Raw Normal View History

2018-07-16 06:00:04 +00:00
<vn-crud-model
vn-id="model"
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
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;"
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>
<vn-vertical>
<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">
<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>
</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"
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>
</vn-float-button>