fix: refs #244936 sale redirect catalog to lilium
gitea/salix/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Robert Ferrús 2024-12-02 11:52:05 +01:00
parent a17e434df1
commit 30da83a88c
1 changed files with 2 additions and 3 deletions

View File

@ -387,9 +387,8 @@ class Controller extends Section {
}
newOrderFromTicket() {
this.$http.post(`Orders/newFromTicket`, {ticketFk: this.ticket.id}).then(res => {
const path = this.$state.href('order.card.catalog', {id: res.data});
window.open(path, '_blank');
this.$http.post(`Orders/newFromTicket`, {ticketFk: this.ticket.id}).then(async res => {
window.location.href = await this.vnApp.getUrl(`order/${res.data}/catalog`);
this.vnApp.showSuccess(this.$t('Order created'));
});