phoucking fix
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user