71 lines
3.0 KiB
HTML
71 lines
3.0 KiB
HTML
<vn-crud-model auto-load="false"
|
|
vn-id="model"
|
|
url="/ticket/api/SaleTrackings/listSaleTracking"
|
|
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></vn-th>
|
|
<vn-th field="itemFk" number default-order="DESC">Item</vn-th>
|
|
<vn-th>Description</vn-th>
|
|
<vn-th field="quantity">Quantity</vn-th>
|
|
<vn-th field="originalQuantity">Original quantity</vn-th>
|
|
<vn-th class="ellipsize" style="max-width: 5em" field="workerFk">Worker</vn-th>
|
|
<vn-th field="state">State</vn-th>
|
|
<vn-th field="created">Created</vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody>
|
|
<vn-tr ng-repeat="sale in sales">
|
|
<vn-td>
|
|
<vn-icon
|
|
class="bright"
|
|
icon="warning"
|
|
ng-if="sale.quantity != sale.originalQuantity"
|
|
vn-tooltip="The quantity do not match"></vn-icon>
|
|
</vn-td>
|
|
<vn-td number>
|
|
<span
|
|
ng-click="$ctrl.showItemDescriptor($event, sale.itemFk)"
|
|
class="link">
|
|
{{sale.itemFk | zeroFill:6}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td expand>
|
|
<vn-fetched-tags
|
|
max-length="6"
|
|
item="::sale.item"
|
|
title="::sale.concept">
|
|
</vn-fetched-tags>
|
|
</vn-td>
|
|
<vn-td>{{::sale.quantity}}</vn-td>
|
|
<vn-td>{{::sale.originalQuantity}}</vn-td>
|
|
<vn-td expand>
|
|
<span
|
|
class="link"
|
|
ng-click="$ctrl.showWorkerDescriptor($event, sale.userId)">
|
|
{{::sale.userNickname | dashIfEmpty}}
|
|
</span>
|
|
</vn-td>
|
|
<vn-td>{{::sale.state}}</vn-td>
|
|
<vn-td>{{::sale.created | date: 'dd/MM/yyyy HH:mm'}}</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="itemDescriptor"
|
|
quicklinks="$ctrl.quicklinks">
|
|
</vn-item-descriptor-popover>
|
|
<vn-worker-descriptor-popover
|
|
vn-id="workerDescriptor"
|
|
user-id="$ctrl.selectedWorker">
|
|
</vn-worker-descriptor-popover> |