2019-10-11 15:38:04 +00:00
|
|
|
<vn-crud-model
|
2018-07-03 13:00:33 +00:00
|
|
|
vn-id="model"
|
2023-06-01 13:31:16 +00:00
|
|
|
url="SaleTrackings/{{$ctrl.$params.id}}/salePreparingList"
|
2018-07-03 13:00:33 +00:00
|
|
|
limit="20"
|
2023-01-03 12:06:30 +00:00
|
|
|
data="$ctrl.sales"
|
2023-06-02 08:57:28 +00:00
|
|
|
order="concept ASC, quantity DESC"
|
2019-10-11 15:38:04 +00:00
|
|
|
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">
|
2021-01-28 14:10:47 +00:00
|
|
|
<vn-card class="vn-w-lg">
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2022-12-28 11:16:23 +00:00
|
|
|
<vn-th field="isChecked" center>Is checked</vn-th>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-th field="itemFk" number>Item</vn-th>
|
2022-12-28 11:16:23 +00:00
|
|
|
<vn-th field="concept">Description</vn-th>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-th field="quantity" number>Quantity</vn-th>
|
2023-02-06 13:03:38 +00:00
|
|
|
<vn-th field="parking" center>Parking</vn-th>
|
2022-12-28 11:16:23 +00:00
|
|
|
<vn-th></vn-th>
|
2019-10-11 15:38:04 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2023-01-03 12:06:30 +00:00
|
|
|
<vn-tr ng-repeat="sale in $ctrl.sales">
|
2022-12-28 11:16:23 +00:00
|
|
|
<vn-td center>
|
2023-02-21 09:56:46 +00:00
|
|
|
<vn-chip
|
2023-06-01 13:01:38 +00:00
|
|
|
ng-class="{
|
2023-06-01 13:31:16 +00:00
|
|
|
'pink': sale.hasSaleGroupDetail,
|
|
|
|
'none': !sale.hasSaleGroupDetail,
|
2023-06-01 13:01:38 +00:00
|
|
|
}"
|
|
|
|
class="circleState"
|
|
|
|
vn-tooltip="has saleGroupDetail"
|
2023-02-21 09:56:46 +00:00
|
|
|
>
|
|
|
|
</vn-chip>
|
2023-06-01 13:01:38 +00:00
|
|
|
<vn-chip
|
|
|
|
ng-class="{
|
2023-06-01 13:31:16 +00:00
|
|
|
'notice': sale.isPreviousSelected,
|
|
|
|
'none': !sale.isPreviousSelected,
|
2023-06-01 13:01:38 +00:00
|
|
|
}"
|
|
|
|
class="circleState"
|
|
|
|
vn-tooltip="is previousSelected"
|
|
|
|
vn-click-stop="$ctrl.clickPreviousSelected($index)">
|
2023-02-21 09:56:46 +00:00
|
|
|
</vn-chip>
|
2023-06-01 13:01:38 +00:00
|
|
|
<vn-chip
|
|
|
|
ng-class="{
|
2023-06-01 13:31:16 +00:00
|
|
|
'dark-notice': sale.isPrevious,
|
|
|
|
'none': !sale.isPrevious,
|
2023-06-01 13:01:38 +00:00
|
|
|
}"
|
|
|
|
class="circleState"
|
2023-06-02 08:57:28 +00:00
|
|
|
vn-tooltip="is previous"
|
|
|
|
vn-click-stop="$ctrl.clickPrevious($index)">
|
2023-02-21 09:56:46 +00:00
|
|
|
</vn-chip>
|
2023-06-01 13:01:38 +00:00
|
|
|
<vn-chip
|
|
|
|
ng-class="{
|
2023-06-01 13:31:16 +00:00
|
|
|
'warning': sale.isPrepared,
|
|
|
|
'none': !sale.isPrepared,
|
2023-06-01 13:01:38 +00:00
|
|
|
}"
|
|
|
|
class="circleState"
|
2023-06-02 08:57:28 +00:00
|
|
|
vn-tooltip="is prepared"
|
|
|
|
vn-click-stop="$ctrl.clickPrepared($index)">
|
2023-02-21 09:56:46 +00:00
|
|
|
</vn-chip>
|
2023-06-01 13:01:38 +00:00
|
|
|
<vn-chip
|
|
|
|
ng-class="{
|
2023-06-01 13:31:16 +00:00
|
|
|
'yellow': sale.isControled,
|
|
|
|
'none': !sale.isControled,
|
2023-06-01 13:01:38 +00:00
|
|
|
}"
|
|
|
|
class="circleState"
|
2023-06-02 08:57:28 +00:00
|
|
|
vn-tooltip="is controled"
|
|
|
|
vn-click-stop="$ctrl.clickControled($index)">
|
2023-02-21 09:56:46 +00:00
|
|
|
</vn-chip>
|
2023-06-01 13:01:38 +00:00
|
|
|
</vn-td>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-td number>
|
2023-01-20 11:37:41 +00:00
|
|
|
<span
|
2023-06-01 13:31:16 +00:00
|
|
|
ng-click="itemDescriptor.show($event, sale.itemFk)"
|
2019-10-11 15:38:04 +00:00
|
|
|
class="link">
|
2023-06-01 13:31:16 +00:00
|
|
|
{{::sale.itemFk}}
|
2019-10-11 15:38:04 +00:00
|
|
|
</span>
|
2023-01-20 11:37:41 +00:00
|
|
|
</vn-td>
|
2021-09-23 15:19:47 +00:00
|
|
|
<vn-td vn-fetched-tags>
|
|
|
|
<div>
|
2023-06-01 13:31:16 +00:00
|
|
|
<vn-one title="{{::sale.concept}}">{{::sale.concept}}</vn-one>
|
|
|
|
<vn-one ng-if="::sale.subName">
|
|
|
|
<h3 title="{{::sale.subName}}">{{::sale.subName}}</h3>
|
2021-09-23 15:19:47 +00:00
|
|
|
</vn-one>
|
|
|
|
</div>
|
2019-10-11 15:38:04 +00:00
|
|
|
<vn-fetched-tags
|
|
|
|
max-length="6"
|
2023-06-01 13:31:16 +00:00
|
|
|
item="::sale"
|
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>
|
2023-06-01 13:31:16 +00:00
|
|
|
<vn-td center>{{::sale.parkingCode | dashIfEmpty}}</vn-td>
|
2022-12-28 11:42:51 +00:00
|
|
|
<vn-td actions>
|
2022-12-28 11:16:23 +00:00
|
|
|
<vn-icon-button
|
|
|
|
vn-click-stop="$ctrl.showSaleTracking(sale)"
|
|
|
|
vn-tooltip="Sale tracking"
|
|
|
|
icon="history">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
vn-click-stop="$ctrl.showItemShelvingSale(sale)"
|
|
|
|
vn-tooltip="ItemShelvings sale"
|
|
|
|
icon="icon-inventory">
|
|
|
|
</vn-icon-button>
|
2019-10-11 15:38:04 +00:00
|
|
|
</vn-td>
|
|
|
|
</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>
|
2020-04-25 09:50:04 +00:00
|
|
|
<vn-item-descriptor-popover
|
2021-05-21 13:31:28 +00:00
|
|
|
vn-id="item-descriptor"
|
2022-12-28 11:16:23 +00:00
|
|
|
warehouse-fk="$ctrl.ticket.warehouseFk"
|
|
|
|
ticket-fk="$ctrl.ticket.id">
|
2019-02-15 11:39:21 +00:00
|
|
|
</vn-item-descriptor-popover>
|
2022-12-28 11:16:23 +00:00
|
|
|
|
|
|
|
<vn-popup vn-id="saleTracking">
|
|
|
|
<vn-crud-model
|
|
|
|
vn-id="modelSaleTracking"
|
|
|
|
url="SaleTrackings/listSaleTracking"
|
|
|
|
link="{saleFk: $ctrl.saleId}"
|
|
|
|
limit="20"
|
2023-01-03 12:06:30 +00:00
|
|
|
data="saleTrackings"
|
2022-12-28 11:16:23 +00:00
|
|
|
order="itemFk DESC"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-data-viewer model="modelSaleTracking">
|
|
|
|
<vn-card class="vn-w-lg">
|
|
|
|
<vn-table model="modelSaleTracking">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="quantity" number>Quantity</vn-th>
|
|
|
|
<vn-th field="originalQuantity" number>Original</vn-th>
|
|
|
|
<vn-th field="workerFk">Worker</vn-th>
|
|
|
|
<vn-th field="state" shrink>State</vn-th>
|
|
|
|
<vn-th field="created" expand>Created</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
2023-01-20 11:37:41 +00:00
|
|
|
<vn-tr ng-repeat="saleTracking in saleTrackings">
|
|
|
|
<vn-td number>{{::saleTracking.quantity}}</vn-td>
|
|
|
|
<vn-td number>{{::saleTracking.originalQuantity}}</vn-td>
|
2022-12-28 11:16:23 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span
|
2023-01-20 11:45:02 +00:00
|
|
|
class="link"
|
|
|
|
ng-click="workerDescriptor.show($event, saleTracking.workerFk)">
|
|
|
|
{{::saleTracking.name | dashIfEmpty}}
|
2022-12-28 11:16:23 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
2023-01-20 11:37:41 +00:00
|
|
|
<vn-td shrink>{{::saleTracking.state}}</vn-td>
|
|
|
|
<vn-td expand>{{::saleTracking.created | date: 'dd/MM/yyyy HH:mm'}}</vn-td>
|
2022-12-28 11:16:23 +00:00
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="worker-descriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
</vn-popup>
|
|
|
|
|
|
|
|
<vn-popup vn-id="itemShelvingSale">
|
|
|
|
<vn-crud-model
|
|
|
|
vn-id="modelSaleTracking"
|
|
|
|
url="ItemShelvingSales/filter"
|
|
|
|
link="{saleFk: $ctrl.saleId}"
|
|
|
|
limit="20"
|
|
|
|
data="$ctrl.itemShelvingSales"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-data-viewer model="modelSaleTracking">
|
|
|
|
<vn-card class="vn-w-lg">
|
|
|
|
<vn-table model="modelSaleTracking">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="quantity" number>Quantity</vn-th>
|
|
|
|
<vn-th field="workerFk">Worker</vn-th>
|
|
|
|
<vn-th field="shelving" shrink>Shelving</vn-th>
|
|
|
|
<vn-th field="parking" shrink>Parking</vn-th>
|
|
|
|
<vn-th field="created" expand>Created</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="itemShelvingSale in $ctrl.itemShelvingSales">
|
|
|
|
<vn-td number>{{::itemShelvingSale.quantity}}</vn-td>
|
|
|
|
<vn-td expand>
|
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="workerDescriptor.show($event, itemShelvingSale.userFk)">
|
|
|
|
{{::itemShelvingSale.name | dashIfEmpty}}
|
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>{{::itemShelvingSale.shelvingFk}}</vn-td>
|
|
|
|
<vn-td shrink>{{::itemShelvingSale.code}}</vn-td>
|
|
|
|
<vn-td expand>{{::itemShelvingSale.created | date: 'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="worker-descriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
|
|
|
</vn-popup>
|