2020-04-30 10:48:52 +00:00
|
|
|
<vn-descriptor-content module="item">
|
|
|
|
<slot-menu>
|
|
|
|
<ul class="vn-list">
|
|
|
|
<li>
|
|
|
|
<div class="vn-item"
|
|
|
|
ng-click="regularize.show()"
|
|
|
|
translate>
|
|
|
|
Regularize stock
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</slot-menu>
|
|
|
|
<slot-body>
|
|
|
|
<div>
|
|
|
|
<div style="position: relative" text-center>
|
|
|
|
<img
|
|
|
|
ng-src="{{::$root.imagePath}}/catalog/200x200/{{$ctrl.item.image}}"
|
|
|
|
zoom-image="{{::$root.imagePath}}/catalog/1600x900/{{$ctrl.item.image}}"
|
|
|
|
on-error-src
|
|
|
|
/>
|
|
|
|
<a href="//verdnatura.es/#!form=admin/items&filter={{$ctrl.item.id}}" target="_blank">
|
|
|
|
<vn-float-button
|
|
|
|
icon="edit"
|
|
|
|
style="position: absolute; margin: 1em; bottom: 0; right: 0;"
|
|
|
|
vn-visible-by="marketing, buyer">
|
|
|
|
</vn-float-button>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<vn-horizontal class="item-state">
|
|
|
|
<vn-one>
|
|
|
|
<p translate>Visible</p>
|
|
|
|
<p>{{$ctrl.visible | dashIfEmpty}}</p>
|
|
|
|
</vn-one>
|
|
|
|
<vn-one>
|
|
|
|
<p translate>Available</p>
|
|
|
|
<p>{{$ctrl.available | dashIfEmpty}}</p>
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="attributes">
|
2018-04-24 12:47:00 +00:00
|
|
|
<h5>{{$ctrl.item.id}}</h5>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Name"
|
|
|
|
value="{{$ctrl.item.name}}">
|
2018-06-08 11:26:06 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Buyer"
|
2019-01-31 13:14:39 +00:00
|
|
|
value="{{$ctrl.item.itemType.worker.user.nickname}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
2018-04-26 14:41:08 +00:00
|
|
|
<vn-label-value
|
2020-04-30 10:48:52 +00:00
|
|
|
ng-repeat="tag in $ctrl.item.tags | limitTo:4"
|
|
|
|
label="{{tag.tag.name}}"
|
|
|
|
value="{{tag.value}}">
|
2018-04-17 10:19:40 +00:00
|
|
|
</vn-label-value>
|
2019-01-21 14:21:24 +00:00
|
|
|
</div>
|
2019-03-04 19:00:12 +00:00
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
|
|
|
vn-tooltip="Item inactive"
|
|
|
|
icon="icon-unavailable"
|
|
|
|
ng-class="{bright: $ctrl.item.isActive == false}">
|
|
|
|
</vn-icon>
|
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
<div class="quicklinks">
|
|
|
|
<div ng-transclude="btnOne"></div>
|
|
|
|
<div ng-transclude="btnTwo"></div>
|
|
|
|
<div ng-transclude="btnThree"></div>
|
|
|
|
</div>
|
|
|
|
</slot-body>
|
|
|
|
</vn-descriptor-content>
|
2018-11-12 12:12:25 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="regularize"
|
2020-04-30 10:48:52 +00:00
|
|
|
on-open="$ctrl.warehouseFk = $ctrl.vnConfig.warehouseFk"
|
|
|
|
on-close="$ctrl.clearRegularizeDialog()"
|
|
|
|
on-accept="$ctrl.saveRegularize()">
|
|
|
|
<tpl-title translate>
|
|
|
|
Regularize stock
|
|
|
|
</tpl-title>
|
2018-11-12 12:12:25 +00:00
|
|
|
<tpl-body>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-textfield
|
|
|
|
label="Type the visible quantity"
|
|
|
|
ng-model="$ctrl.quantity"
|
|
|
|
vn-focus>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete
|
|
|
|
label="Warehouse"
|
|
|
|
ng-model="$ctrl.warehouseFk"
|
|
|
|
url="Warehouses">
|
|
|
|
</vn-autocomplete>
|
2018-11-12 12:12:25 +00:00
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
2019-10-30 15:57:14 +00:00
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Save</button>
|
2018-11-12 12:12:25 +00:00
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|