- <% @menu.each do |menu| %>
-
- <% end %>
+ <% @menu.each do |menu| %>
+
+ <% end %>
+ -
+ Products
+
diff --git a/app/views/origami/addorders/get_all_product.json.jbuilder b/app/views/origami/addorders/get_all_product.json.jbuilder
new file mode 100644
index 00000000..01921c59
--- /dev/null
+++ b/app/views/origami/addorders/get_all_product.json.jbuilder
@@ -0,0 +1,4 @@
+
+json.array! @product, :id, :item_code, :name, :alt_name,:image_path,
+ :description,:information,:taxable,:unit_price, :created_at,
+ :updated_at, :created_by
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index 3c24f5bd..7ee7da3e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -181,6 +181,7 @@ scope "(:locale)", locale: /en|mm/ do
get '/:addorders/:id' => "addorders#detail"
post '/:addorders/create' => "addorders#create", :defaults => { :format => 'json' }
get '/addorders/get_menu_category/:id' => "addorders#get_menu_category",:as => "get_menu_category", :defaults => { :format => 'json' }
+ get '/addorders/products/list' => "addorders#get_all_product",:as => "get_all_product", :defaults => { :format => 'json' }
resources :commissions
resources :commissioners