order product fixes
This commit is contained in:
@@ -238,9 +238,8 @@ class Quser
|
||||
|
||||
order_selected_products: ()->
|
||||
return if $.isEmptyObject(window.active_products_list)
|
||||
return unless Qstorage.table_id
|
||||
h = {}
|
||||
h['table_id'] = Qstorage.table_id
|
||||
h['table_id'] = Qstorage.getItem('table_id') if Qstorage.getItem('table_id')
|
||||
for product_id, number of window.active_products_list
|
||||
h['products['+product_id+']'] = number
|
||||
$.post(data_host + '/user/order_selected_products', $.extend(h, authentication_object), ((res) => @handle_response(res)), 'json')
|
||||
|
||||
Reference in New Issue
Block a user