48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
<vn-crud-model auto-load="false"
|
|
vn-id="model"
|
|
url="/ticket/api/sales"
|
|
filter="::$ctrl.filter"
|
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
|
limit="20"
|
|
data="sales">
|
|
</vn-crud-model>
|
|
<vn-vertical>
|
|
<vn-card pad-large>
|
|
<vn-vertical>
|
|
<vn-table model="model">
|
|
<vn-thead>
|
|
<vn-tr>
|
|
<vn-th field="isChecked" center>Is checked</vn-th>
|
|
<vn-th field="itemFk" number>Item</vn-th>
|
|
<vn-th field="concept" default-order="ASC">Description</vn-th>
|
|
<vn-th field="quantity" number>Quantity</vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody>
|
|
<vn-tr ng-repeat="sale in sales">
|
|
<vn-td center>
|
|
<vn-check
|
|
vn-one field="sale.isChecked.isChecked"
|
|
disabled="true">
|
|
</vn-check>
|
|
</vn-td>
|
|
<vn-td number>
|
|
<span
|
|
ng-click="$ctrl.showDescriptor($event, sale.itemFk)"
|
|
class="link">
|
|
{{sale.itemFk | zeroFill:6}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td><vn-fetched-tags max-length="6" item="sale.item"/></vn-td>
|
|
<vn-td number>{{::sale.quantity}}</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
</vn-vertical>
|
|
<vn-pagination model="model"></vn-pagination>
|
|
</vn-card>
|
|
</vn-vertical>
|
|
<vn-item-descriptor-popover vn-id="descriptor"
|
|
quicklinks="$ctrl.quicklinks">
|
|
</vn-item-descriptor-popover>
|