feat(ticket): change default ticketUpdateOption for salesAssistant
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2021-11-15 08:32:16 +01:00
parent 02e651eac8
commit 8a5ed6782a
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class Controller extends Component {
loadDefaultTicketAction() { loadDefaultTicketAction() {
let filter = {where: {code: 'changePrice'}}; let filter = {where: {code: 'changePrice'}};
if (this.aclService.hasAny(['salesAssistant']))
filter = {where: {code: 'turnInMana'}};
this.$http.get(`TicketUpdateActions`, {filter}).then(response => { this.$http.get(`TicketUpdateActions`, {filter}).then(response => {
return this.ticket.option = response.data[0].id; return this.ticket.option = response.data[0].id;