add loading and change css file
This commit is contained in:
@@ -21,6 +21,7 @@ function member_card(cardNo) {
|
||||
var g_membership_type = '';
|
||||
var sale_id = 0 ;
|
||||
if(cardNo != 0){
|
||||
$("#oqs_loading_wrapper").show();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/foodcourt/"+sale_id+"/get_customer" ,
|
||||
@@ -108,6 +109,7 @@ function request_bill(membership_id,customer_id,customer_name){
|
||||
}
|
||||
}
|
||||
function update_sale(membership_id, customer_id, customer_name, sale_id) {
|
||||
$("#oqs_loading_wrapper").css("display", "none");
|
||||
var customer="";
|
||||
var cashier_type = 'food_court';
|
||||
if(customer_name != ""){
|
||||
@@ -116,7 +118,7 @@ function update_sale(membership_id, customer_id, customer_name, sale_id) {
|
||||
|
||||
swal({
|
||||
title: "Confirmation !",
|
||||
text: 'Are You Sure to assign this customer' + customer + '!',
|
||||
text: 'Are you sure to assign this customer' + customer + '!',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: "green",
|
||||
confirmButtonText: "Yes!",
|
||||
@@ -136,8 +138,7 @@ function update_sale(membership_id, customer_id, customer_name, sale_id) {
|
||||
$("#membership_id").html(membership_id);
|
||||
window.location.href = '/foodcourt/sale/'+sale_id+'/'+cashier_type+'/payment/';
|
||||
}else{
|
||||
swal("Alert!", "Record not found!", "error");
|
||||
location.reload();
|
||||
window.location.href = '/foodcourt/sale/'+sale_id+'/'+cashier_type+'/payment/';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user