3033-price_and_discount_ticket_sale_popover #707

Merged
joan merged 2 commits from 3033-price_and_discount_ticket_sale_popover into dev 2021-08-03 09:56:11 +00:00
2 changed files with 9 additions and 1 deletions

View File

@ -47,7 +47,13 @@ class Controller extends Section {
getMana() {
this.$http.get(`Tickets/${this.$params.id}/getSalesPersonMana`)
.then(res => this.edit.mana = res.data);
.then(res => {
this.edit.mana = res.data;
this.$.$applyAsync(() => {
this.$.editDiscount.relocate();
this.$.editPricePopover.relocate();
});
});
}
/**

View File

@ -42,6 +42,8 @@ describe('Ticket', () => {
$scope.sms = {open: () => {}};
$scope.ticket = ticket;
$scope.model = crudModel;
$scope.editDiscount = {relocate: () => {}};
$scope.editPricePopover = {relocate: () => {}};
$httpBackend = _$httpBackend_;
Object.defineProperties($state.params, {
id: {