update table box

This commit is contained in:
Aung Myo
2018-02-06 09:52:27 +06:30
parent 76a094972e
commit 85020d91bf
15 changed files with 173 additions and 79 deletions

View File

@@ -258,6 +258,7 @@
</div>
</div>
<script type="text/javascript">
var cashier_type = "<%= @cashier_type %>";
$(function() {
/*$('.datepicker').datepicker({
setDate: '12-12-1999',
@@ -435,11 +436,16 @@
{
var id = $("#table_id").val();
var type = $("#type").val();
if (type=="Table") {
window.location.href = '/origami/table/'+id
if (cashier_type == "quick_service") {
window.location.href = '/origami/table/'+id
window.location.href = '/origami/sale/'+sale_id+'/'+cashier_type+'/payment/';
}else{
window.location.href = '/origami/room/'+id
}
if (type=="Table") {
window.location.href = '/origami/table/'+id
}else{
window.location.href = '/origami/room/'+id
}
}
}else{
swal("Alert!", "Record not found!", "error");
location.reload();