From 8a5ed6782a76efeeac89fa38a6579cca88c747a4 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 15 Nov 2021 08:32:16 +0100 Subject: [PATCH] feat(ticket): change default ticketUpdateOption for salesAssistant --- modules/ticket/front/basic-data/step-two/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ticket/front/basic-data/step-two/index.js b/modules/ticket/front/basic-data/step-two/index.js index ebb93bb3d..bb6e6958f 100644 --- a/modules/ticket/front/basic-data/step-two/index.js +++ b/modules/ticket/front/basic-data/step-two/index.js @@ -24,6 +24,8 @@ class Controller extends Component { loadDefaultTicketAction() { let filter = {where: {code: 'changePrice'}}; + if (this.aclService.hasAny(['salesAssistant'])) + filter = {where: {code: 'turnInMana'}}; this.$http.get(`TicketUpdateActions`, {filter}).then(response => { return this.ticket.option = response.data[0].id;