control to req bill and discount ui update

This commit is contained in:
Yan
2017-07-08 23:29:31 +06:30
parent 1666cb3d0c
commit c73cfa4c2d
6 changed files with 207 additions and 82 deletions

View File

@@ -457,8 +457,24 @@ $('#request_bills').click(function() {
url: ajax_url,
// data: 'order_id='+ order_id,
success:function(result){
location.reload();
if(!result.status){
$.confirm({
title: 'Infomation!',
content: result.error_message,
buttons: {
confirm: {
text: 'Ok',
btnClass: 'btn-green',
action: function(){
window.location.href = '/origami';
}
}
}
});
}
else {
location.reload();
}
}
});
});