Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Ferrús c61105e356 Merge pull request 'refs #6222 fix(ticket): step-two' (!1948) from 6222-test-ticketStepTwo into test
gitea/salix/pipeline/head This commit looks good Details
Reviewed-on: #1948
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
2024-01-24 09:11:27 +00:00
Robert Ferrús 2ee48a53e2 refs #6222 fix(ticket): step-two
gitea/salix/pipeline/head This commit looks good Details
2024-01-24 09:59:27 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -585,5 +585,5 @@ END$$
DELIMITER ; DELIMITER ;
TRUNCATE TABLE `vn`.`ticketUpdateAction`; TRUNCATE TABLE `vn`.`ticketUpdateAction`;
INSERT INTO `vn`.`ticketUpdateAction` (id, description, code) VALUES(1, 'Cambiar los precios en el ticket', 'renewPrice'); INSERT INTO `vn`.`ticketUpdateAction` (id, description, code) VALUES(1, 'Cambiar los precios en el ticket', 'renewPrices');
INSERT INTO `vn`.`ticketUpdateAction` (id, description, code) VALUES(2, 'Convertir en maná', 'mana'); INSERT INTO `vn`.`ticketUpdateAction` (id, description, code) VALUES(2, 'Convertir en maná', 'mana');

View File

@ -25,7 +25,7 @@ class Controller extends Component {
loadDefaultTicketAction() { loadDefaultTicketAction() {
const isSalesAssistant = this.aclService.hasAny(['salesAssistant']); const isSalesAssistant = this.aclService.hasAny(['salesAssistant']);
this.ticket.option = isSalesAssistant ? 'mana' : 'buyerDiscount'; this.ticket.option = isSalesAssistant ? 'mana' : 'renewPrices';
} }
onStepChange() { onStepChange() {