From 96cef4197bfa1dfd2174919fb26b1cac42bd8eda Mon Sep 17 00:00:00 2001 From: Pyae Bhone Zaw Date: Mon, 30 Jun 2025 16:23:18 +0630 Subject: [PATCH] fix: back redirect in discount --- app/views/foodcourt/discounts/index.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/foodcourt/discounts/index.html.erb b/app/views/foodcourt/discounts/index.html.erb index 13ad2db5..44495898 100755 --- a/app/views/foodcourt/discounts/index.html.erb +++ b/app/views/foodcourt/discounts/index.html.erb @@ -283,7 +283,10 @@ var sale_id = $('#sale-id').text(); if (cashier_type=="quick_service" || cashier_type=="food_court") { window.location.href = '/foodcourt/sale/'+sale_id+'/'+cashier_type+'/payment/'; - }else{ + } else if (cashier_type == 'food_court_qr') { + window.location.href = '/foodcourt/'+sale_id+'/qrpay/precreate'; + } + else{ if (type=="Table") { window.location.href = '/foodcourt/table/'+id }else{