2018-04-30 10:48:29 +00:00
|
|
|
<mg-ajax path="/ticket/api/sales/filter" options="vnIndexNonAuto"></mg-ajax>
|
2018-03-22 17:02:48 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-card pad-large>
|
2018-03-23 15:50:11 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-title>Sale</vn-title>
|
2018-05-08 07:25:15 +00:00
|
|
|
<vn-tool-bar margin-medium-bottom>
|
|
|
|
<vn-button
|
|
|
|
disabled="$ctrl.ticket.tracking.state.alertLevel != 0"
|
|
|
|
label="Ok"
|
|
|
|
ng-click="$ctrl.onStateOkClick()">
|
|
|
|
</vn-button>
|
|
|
|
<vn-icon-menu
|
|
|
|
disabled="$ctrl.ticket.tracking.state.alertLevel != 0"
|
|
|
|
label="State"
|
|
|
|
url="/ticket/api/States/alertLevelIs0"
|
|
|
|
on-change="$ctrl.onStateChange(value)">
|
|
|
|
</vn-icon-menu>
|
2018-05-08 07:54:14 +00:00
|
|
|
<vn-button
|
|
|
|
disabled="!$ctrl.isChecked"
|
|
|
|
ng-click="$ctrl.onRemoveLinesClick()"
|
|
|
|
vn-tooltip="Remove lines"
|
|
|
|
tooltip-position="right"
|
|
|
|
icon="delete">
|
|
|
|
</vn-button>
|
2018-05-08 07:25:15 +00:00
|
|
|
</vn-tool-bar>
|
2018-03-23 15:50:11 +00:00
|
|
|
<table class="vn-grid">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-05-08 07:25:15 +00:00
|
|
|
<th number>
|
|
|
|
<vn-multi-check data="index.model.instances"></vn-multi-check>
|
|
|
|
</th>
|
2018-03-23 15:50:11 +00:00
|
|
|
<th number translate>Item</th>
|
|
|
|
<th translate style="text-align:center">Description</th>
|
|
|
|
<th number translate>Quantity</th>
|
|
|
|
<th number translate>Price</th>
|
|
|
|
<th number translate>Discount</th>
|
|
|
|
<th number translate>Amount</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-05-08 07:25:15 +00:00
|
|
|
<tr ng-repeat="sale in index.model.instances track by sale.id">
|
|
|
|
<td number>
|
|
|
|
<vn-check field="sale.checked"></vn-check>
|
|
|
|
</td>
|
2018-04-26 14:41:08 +00:00
|
|
|
<td
|
|
|
|
pointer
|
|
|
|
number
|
|
|
|
ng-click="$ctrl.showDescriptor($event, sale.itemFk)">
|
|
|
|
{{::sale.itemFk}}
|
|
|
|
</td>
|
2018-03-23 15:50:11 +00:00
|
|
|
<td><vn-fetched-tags sale="sale"/></td>
|
|
|
|
<td number>{{::sale.quantity}}</td>
|
|
|
|
<td number>{{::sale.price | currency:'€':2}}</td>
|
|
|
|
<td number>{{::sale.discount}} %</td>
|
|
|
|
<td number>{{::sale.quantity * sale.price | currency:'€':2}}</td>
|
|
|
|
</tr>
|
2018-05-07 06:33:45 +00:00
|
|
|
<tr ng-if="index.model.count === 0" class="list list-element">
|
|
|
|
<td colspan="6" style="text-align: center" translate>No results</td>
|
|
|
|
</tr>
|
2018-03-23 15:50:11 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</vn-vertical>
|
2018-03-22 17:02:48 +00:00
|
|
|
</vn-card>
|
2018-05-08 07:25:15 +00:00
|
|
|
<vn-auto-paging vn-one margin-large-top index="index" total="index.model.count" items="index.model.instances"></vn-auto-paging>
|
2018-04-26 14:41:08 +00:00
|
|
|
<vn-item-descriptor-popover vn-id="descriptor">
|
|
|
|
</vn-item-descriptor-popover>
|
|
|
|
</vn-popover>
|
2018-03-22 17:02:48 +00:00
|
|
|
</vn-vertical>
|