From b557e17558433c7e0e8a8b6dfac152067300e201 Mon Sep 17 00:00:00 2001 From: phyusin Date: Wed, 26 Dec 2018 10:37:17 +0630 Subject: [PATCH] menu item checked --- app/assets/javascripts/addorder.js | 7 +-- app/models/sale.rb | 10 ++-- .../api/restaurant/menu/_menu.json.jbuilder | 4 +- .../origami/dashboard/_menu.json.jbuilder | 53 ++++++++++--------- .../20170403161857_create_sale_items.rb | 2 + 5 files changed, 39 insertions(+), 37 deletions(-) diff --git a/app/assets/javascripts/addorder.js b/app/assets/javascripts/addorder.js index 1c6acf1b..cdb36ac6 100755 --- a/app/assets/javascripts/addorder.js +++ b/app/assets/javascripts/addorder.js @@ -207,8 +207,6 @@ $(function() { for(var v in result) { if (value[i]["id"] == result[v]["id"]) { - - console.log("ssssssss") row = '
' +"
false do |t| t.string :sale_item_id, :limit => 16, :primary_key => true#custom primary key - to ensure consistence for cloud syncing t.string :sale_id, foreign_key: true, :limit => 16, :index => true + t.string :menu_category_code, :null => false, :limit => 100 + t.string :menu_category_name, :limit => 100, :index => true t.string :product_code, :null => false t.string :item_instance_code t.string :product_name, :null => false