2020-05-06 12:38:09 +00:00
|
|
|
<default>
|
|
|
|
<vn-descriptor-content
|
|
|
|
module="item"
|
|
|
|
description="$ctrl.item.name"
|
|
|
|
descriptor="$ctrl"
|
|
|
|
class="vn-order-prices-popover">
|
|
|
|
<slot-body>
|
2019-10-28 16:31:33 +00:00
|
|
|
<div class="attributes">
|
|
|
|
<vn-label-value
|
|
|
|
label="Buyer"
|
|
|
|
value="{{$ctrl.item.firstName}} {{$ctrl.item.lastName}}">
|
|
|
|
</vn-label-value>
|
|
|
|
<vn-label-value
|
|
|
|
ng-repeat="tag in $ctrl.tags"
|
|
|
|
label="{{::tag.tag.name}}"
|
|
|
|
value="{{::tag.value}}">
|
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
2020-05-06 12:38:09 +00:00
|
|
|
<div class="quicklinks">
|
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Diary"
|
|
|
|
state="['item.card.diary', {id: $ctrl.id}]"
|
|
|
|
icon="icon-transaction">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
|
|
|
</slot-body>
|
|
|
|
<slot-after>
|
|
|
|
<form name="form" class="prices">
|
|
|
|
<vn-table>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="price in $ctrl.prices">
|
|
|
|
<vn-td shrink class="warehouse">
|
2019-10-28 16:31:33 +00:00
|
|
|
<span
|
2020-05-06 12:38:09 +00:00
|
|
|
class="ellipsize text"
|
|
|
|
title="{{::price.warehouse}}">
|
|
|
|
{{::price.warehouse}}
|
2019-10-28 16:31:33 +00:00
|
|
|
</span>
|
2020-05-06 12:38:09 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td number expand>
|
|
|
|
<div>
|
|
|
|
<span
|
|
|
|
ng-click="$ctrl.addQuantity(price)"
|
|
|
|
class="link unselectable">{{::price.grouping}}</span>
|
|
|
|
<span> x {{::price.price | currency: 'EUR': 2}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="price-kg" ng-show="::price.priceKg">
|
|
|
|
{{price.priceKg | currency: 'EUR'}}/Kg
|
|
|
|
</div>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-input-number
|
|
|
|
min="0"
|
|
|
|
name="quantity"
|
|
|
|
ng-model="price.quantity"
|
|
|
|
step="price.grouping"
|
|
|
|
on-change="$ctrl.validate()"
|
|
|
|
class="dense">
|
|
|
|
</vn-input-number>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
<div class="footer vn-pa-md">
|
|
|
|
<div class="error">
|
|
|
|
<span translate>Wrong quantity</span>
|
|
|
|
</div>
|
|
|
|
<vn-submit
|
|
|
|
label="Save"
|
|
|
|
ng-click="$ctrl.submit()">
|
|
|
|
</vn-submit>
|
2019-10-28 16:31:33 +00:00
|
|
|
</div>
|
2020-05-06 12:38:09 +00:00
|
|
|
</form>
|
|
|
|
</slot-after>
|
|
|
|
</vn-descriptor-content>
|
|
|
|
</default>
|