update access code in spereat view

This commit is contained in:
Aung Myo
2018-05-04 18:10:00 +06:30
parent 0e7c0e7a3e
commit d0b14cf81b
5 changed files with 159 additions and 6 deletions

View File

@@ -1116,7 +1116,7 @@
if (result.status == true) {
createAccessCode(code);
if (type == "edit") {
var dining_id = "<%= @dining.id %>";
var dining_id = "<%= @dining.id rescue "" %> ";
var sale_id = "<%= @obj_sale.sale_id rescue "" %>";
window.location.href = '/origami/table/' + dining_id + "/sale/" + sale_id + "/"+cashier_type +"/edit";
}else if(type == "void"){