salix/modules/ticket/front/sale-checked/index.html

59 lines
2.0 KiB
HTML
Raw Normal View History

2019-10-11 15:38:04 +00:00
<vn-crud-model
2018-07-17 06:44:31 +00:00
vn-id="model"
url="sales"
2018-07-17 06:44:31 +00:00
filter="::$ctrl.filter"
2020-03-18 07:35:59 +00:00
link="{ticketFk: $ctrl.$params.id}"
2018-07-17 06:44:31 +00:00
limit="20"
2019-10-11 15:38:04 +00:00
data="sales"
order="concept ASC"
auto-load="true">
2018-07-17 06:44:31 +00:00
</vn-crud-model>
2019-10-11 15:38:04 +00:00
<vn-data-viewer model="model">
<vn-card class="vn-w-lg">
<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">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 shrink>
<vn-check
vn-one ng-model="sale.isChecked.isChecked"
disabled="true">
</vn-check>
</vn-td>
<vn-td number>
<span
ng-click="$ctrl.showItemDescriptor($event, sale)"
2019-10-11 15:38:04 +00:00
class="link">
{{::sale.itemFk | zeroFill:6}}
</span>
</vn-td>
2021-01-28 14:10:47 +00:00
<vn-td vn-fetched-tags>
<vn-one title="{{::sale.item.name}}">{{::sale.item.name}}</vn-one>
<vn-one ng-if="::sale.item.subName">
<h3 title="{{::sale.item.subName}}">{{::sale.item.subName}}</h3>
</vn-one>
2019-10-11 15:38:04 +00:00
<vn-fetched-tags
max-length="6"
item="::sale.item"
2021-01-28 14:10:47 +00:00
tabindex="-1">
2019-10-11 15:38:04 +00:00
</vn-fetched-tags>
</vn-td>
<vn-td number>{{::sale.quantity}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
2018-03-26 13:10:51 +00:00
</vn-card>
2019-10-11 15:38:04 +00:00
</vn-data-viewer>
<vn-item-descriptor-popover
vn-id="item-descriptor"
warehouse-fk="$ctrl.ticket.warehouseFk"
ticket-fk="$ctrl.ticket.id">
2018-09-04 09:49:00 +00:00
</vn-item-descriptor-popover>