3811-ticket.sale_updatePrice #1099
|
@ -264,6 +264,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<vn-horizontal >
|
||||||
|
<vn-button
|
||||||
|
label="Cancel"
|
||||||
|
ng-click="$ctrl.cancel()">
|
||||||
|
</vn-button>
|
||||||
|
<vn-button
|
||||||
|
label="Save"
|
||||||
|
ng-click="$ctrl.save()">
|
||||||
|
</vn-button>
|
||||||
|
</vn-horizontal>
|
||||||
</div>
|
</div>
|
||||||
</vn-popover>
|
</vn-popover>
|
||||||
|
|
||||||
|
@ -278,7 +288,7 @@
|
||||||
</vn-spinner>
|
</vn-spinner>
|
||||||
<div ng-if="$ctrl.edit.mana != null">
|
<div ng-if="$ctrl.edit.mana != null">
|
||||||
<section class="header vn-pa-md">
|
<section class="header vn-pa-md">
|
||||||
<h5>Mana: {{::$ctrl.edit.mana | currency: 'EUR':0}}</h5>
|
<h5>MANÁ: {{::$ctrl.edit.mana | currency: 'EUR': 0}}</h5>
|
||||||
</section>
|
</section>
|
||||||
<div class="vn-pa-md">
|
<div class="vn-pa-md">
|
||||||
<vn-input-number
|
<vn-input-number
|
||||||
|
@ -288,7 +298,7 @@
|
||||||
clear-disabled="true"
|
clear-disabled="true"
|
||||||
suffix="%">
|
suffix="%">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
<vn-vertical ng-if="$ctrl.currentWorkerMana != 0">
|
<vn-vertical ng-if="$ctrl.usesMana && $ctrl.currentWorkerMana != 0">
|
||||||
<vn-radio
|
<vn-radio
|
||||||
label="Promotion mana"
|
label="Promotion mana"
|
||||||
val="mana"
|
val="mana"
|
||||||
|
|
|
@ -75,6 +75,7 @@ class Controller extends Section {
|
||||||
this.$.editPricePopover.relocate();
|
this.$.editPricePopover.relocate();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
this.getUsesMana();
|
||||||
this.getCurrentWorkerMana();
|
this.getCurrentWorkerMana();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +86,13 @@ class Controller extends Section {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getUsesMana() {
|
||||||
|
this.$http.get(`Sales/usesMana`)
|
||||||
|
.then(res => {
|
||||||
|
this.useMana = res.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns checked instances
|
* Returns checked instances
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue