phoucking fix

This commit is contained in:
Dev Team
2025-06-19 19:17:14 +06:30
parent e3b51e6137
commit ae7f23b3f0

View File

@@ -68,15 +68,22 @@ function member_card(cardNo) {
if (booking_id.length > 0) { if (booking_id.length > 0) {
params.booking_id = booking_id; params.booking_id = booking_id;
} }
// alert('ajax', ajax_url);
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: ajax_url, url: ajax_url,
data: params, data: params,
dataType: "json", dataType: "json",
success:function(result) { success:function(result) {
// alert(">>>>>>>>>>> result");
if (result.sale_id) { if (result.sale_id) {
// alert(">>>>>>>>>>> modify order after api");
sale_id = result.sale_id; sale_id = result.sale_id;
window.location.href = '/foodcourt/sale/'+sale_id+'/food_court/payment/'; window.location.href = '/foodcourt/sale/'+sale_id+'/food_court/payment/';
}else {
request_bill(g_membership_id, g_customer_id, g_customer_name);
} }
} }
}); });