2018-11-27 14:02:54 +00:00
|
|
|
<vn-crud-model auto-load="false"
|
2018-07-03 13:00:33 +00:00
|
|
|
vn-id="model"
|
|
|
|
url="/ticket/api/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"
|
2018-10-01 06:17:36 +00:00
|
|
|
data="sales">
|
2018-07-03 13:00:33 +00:00
|
|
|
</vn-crud-model>
|
|
|
|
<vn-vertical>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2018-07-03 13:00:33 +00:00
|
|
|
<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>
|
2018-09-06 06:04:43 +00:00
|
|
|
<vn-td number>
|
|
|
|
<span
|
2019-02-15 11:39:21 +00:00
|
|
|
ng-click="$ctrl.showItemDescriptor($event, sale.itemFk)"
|
2019-02-10 21:52:35 +00:00
|
|
|
class="link">
|
|
|
|
{{sale.itemFk | zeroFill:6}}
|
2018-09-06 06:04:43 +00:00
|
|
|
</span>
|
2018-07-03 13:00:33 +00:00
|
|
|
</vn-td>
|
2019-02-20 11:12:16 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
|
|
|
item="::sale.item"
|
2019-07-02 10:12:15 +00:00
|
|
|
name="::sale.concept"
|
2019-03-22 14:05:15 +00:00
|
|
|
sub-name="::sale.item.subName">
|
2019-02-20 11:12:16 +00:00
|
|
|
</vn-fetched-tags>
|
|
|
|
</vn-td>
|
2018-07-03 13:00:33 +00:00
|
|
|
<vn-td>{{::sale.quantity}}</vn-td>
|
|
|
|
<vn-td>{{::sale.originalQuantity}}</vn-td>
|
2019-02-15 11:39:21 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
2019-04-25 12:24:02 +00:00
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, sale.workerFk)">
|
2019-02-15 11:39:21 +00:00
|
|
|
{{::sale.userNickname | dashIfEmpty}}
|
|
|
|
</span>
|
2018-07-03 13:00:33 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td>{{::sale.state}}</vn-td>
|
2019-02-27 16:04:00 +00:00
|
|
|
<vn-td>{{::sale.created | dateTime: 'dd/MM/yyyy HH:mm'}}</vn-td>
|
2018-07-03 13:00:33 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="model"></vn-pagination>
|
2018-07-03 13:00:33 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
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>
|