24 lines
789 B
HTML
24 lines
789 B
HTML
|
<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"
|
||
|
ng-click="$ctrl.updateDiscount()">
|
||
|
</vn-button>
|
||
|
</div>
|
||
|
</div>
|