2018-06-28 13:21:04 +00:00
|
|
|
<vn-horizontal pad-medium class="header">
|
|
|
|
<h5>MANÁ: {{$ctrl.mana | currency:' €':0}}</h5>
|
|
|
|
</vn-horizontal>
|
|
|
|
<div pad-medium>
|
|
|
|
<vn-textfield
|
|
|
|
label="Discount"
|
|
|
|
model="$ctrl.newDiscount"
|
|
|
|
type="number"
|
|
|
|
on-change="$ctrl.updateDiscount()">
|
|
|
|
<t-right-icons>
|
|
|
|
<span class="filter">%</span>
|
|
|
|
</t-right-icons>
|
|
|
|
</vn-textfield>
|
|
|
|
<div class="simulator">
|
|
|
|
<p class="simulatorTitle" translate>New price</p>
|
|
|
|
<p>{{($ctrl.edit[0].quantity * $ctrl.edit[0].price)
|
|
|
|
- (($ctrl.newDiscount * ($ctrl.edit[0].quantity * $ctrl.edit[0].price))/100)
|
|
|
|
| currency:' €':2}}</p>
|
|
|
|
<vn-button
|
|
|
|
label="Save"
|
2018-07-04 12:42:02 +00:00
|
|
|
ng-click="$ctrl.hide()">
|
2018-06-28 13:21:04 +00:00
|
|
|
</vn-button>
|
|
|
|
</div>
|
|
|
|
</div>
|