salix/modules/ticket/front/sale/editDiscount.html

21 lines
692 B
HTML
Raw Normal View History

<vn-horizontal pad-medium class="header">
<h5>MANÁ: {{$ctrl.mana | currency: 'EUR':0}}</h5>
</vn-horizontal>
<div pad-medium>
<vn-textfield
2019-02-26 16:32:32 +00:00
vn-focus
label="Discount"
model="$ctrl.newDiscount"
2018-07-13 13:21:37 +00:00
type="text"
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: 'EUR':2}}</p>
</div>
</div>