2019-10-11 15:38:04 +00:00
|
|
|
<vn-crud-model
|
2018-07-03 13:00:33 +00:00
|
|
|
vn-id="model"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="SaleTrackings/listSaleTracking"
|
2018-07-17 06:44:31 +00:00
|
|
|
link="{ticketFk: $ctrl.$stateParams.id}"
|
2018-07-03 13:00:33 +00:00
|
|
|
limit="20"
|
2019-10-11 15:38:04 +00:00
|
|
|
data="sales"
|
|
|
|
order="itemFk DESC"
|
|
|
|
auto-load="true">
|
2018-07-03 13:00:33 +00:00
|
|
|
</vn-crud-model>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-data-viewer model="model">
|
|
|
|
<vn-card class="vn-w-xl">
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th field="itemFk" number>Item</vn-th>
|
2019-11-11 12:22:25 +00:00
|
|
|
<vn-th expand>Description</vn-th>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-th field="quantity" number>Quantity</vn-th>
|
|
|
|
<vn-th field="originalQuantity" number>Original</vn-th>
|
|
|
|
<vn-th field="workerFk">Worker</vn-th>
|
2019-11-11 12:22:25 +00:00
|
|
|
<vn-th field="state" shrink>State</vn-th>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-th field="created">Created</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="sale in sales">
|
|
|
|
<vn-td shrink>
|
|
|
|
<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"
|
|
|
|
name="::sale.concept"
|
|
|
|
sub-name="::sale.item.subName">
|
|
|
|
</vn-fetched-tags>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td number>{{::sale.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::sale.originalQuantity}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, sale.workerFk)">
|
|
|
|
{{::sale.userNickname | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
2019-11-11 12:22:25 +00:00
|
|
|
<vn-td shrink>{{::sale.state}}</vn-td>
|
2019-10-18 23:18:25 +00:00
|
|
|
<vn-td>{{::sale.created | date: 'dd/MM/yyyy HH:mm'}}</vn-td>
|
2019-10-11 15:38:04 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
2018-07-03 13:00:33 +00:00
|
|
|
</vn-card>
|
2019-10-11 15:38:04 +00:00
|
|
|
</vn-data-viewer>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-item-descriptor-popover vn-id="itemDescriptor"
|
2018-09-04 09:49:00 +00:00
|
|
|
quicklinks="$ctrl.quicklinks">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-item-descriptor-popover>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
2019-04-25 12:24:02 +00:00
|
|
|
worker-fk="$ctrl.selectedWorker">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-worker-descriptor-popover>
|