update request bill msg box error

This commit is contained in:
Aung Myo
2018-04-10 17:29:02 +06:30
parent 0e39e4577f
commit 0e5269c66f
5 changed files with 26 additions and 15 deletions

View File

@@ -974,7 +974,7 @@ console.log(d_option)
dataType: "json",
success:function(result){
if (result.status) {
console.log(result)
if (result.data == null){
swal({
title: "Please Open Shift !",
@@ -984,11 +984,13 @@ console.log(d_option)
confirmButtonText: "Ok",
closeOnConfirm: false
}, function () {
window.location.href = '/origami/quick_service/pending_order/' + $('#sale_id').text();
window.location.href = '/origami/quick_service/pending_order/' + $('#sale_id').text();
});
}else if(result.data == 'OK'){
window.location.href = '/origami/quick_service/pending_order/' + $('#sale_id').text();
}else{
window.location.href = "/origami/sale/"+result.data["sale_id"]+"/"+type+"/payment"
window.location.href = "/origami/sale/"+result.data["sale_id"]+"/"+type+"/payment"
}
}
}