update search data in transaction

This commit is contained in:
Aung Myo
2017-11-24 13:09:22 +06:30
parent b8df371a93
commit 479a6b5a61
3 changed files with 8 additions and 2 deletions

View File

@@ -668,11 +668,12 @@ $(function() {
e.preventDefault();
$("#oqs_loading_wrapper").show();
var table_id = $('#table_id').text();
var customer_id = $('#customer_id').text();
var booking_id = $('#booking_id').text();
if (!booking_id.length > 0) {
var params = {'order_source': "cashier", 'order_type': "dine_in",
'customer_id': "", 'guest_info': "",'booking_id':booking_id,
'customer_id': customer_id, 'guest_info': "",'booking_id':booking_id,
'table_id': table_id,
'order_items': order_items };
}
@@ -682,7 +683,7 @@ $(function() {
var ajax_url = '../addorders/create';
var params = {'order_source': "cashier", 'order_type': "dine_in",
'customer_id': "", 'guest_info': "",
'customer_id': customer_id, 'guest_info': "",
'table_id': table_id,
'order_items': order_items };
$.ajax({