From 60b5a173882b08b005625bc205aa7e001ad56bff Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Wed, 11 Oct 2017 10:15:10 +0630 Subject: [PATCH] update product in product rb --- app/models/product.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/product.rb b/app/models/product.rb index 3c18f958..3c915a38 100644 --- a/app/models/product.rb +++ b/app/models/product.rb @@ -8,7 +8,7 @@ class Product < ApplicationRecord menu_item_hash = Hash.new mt_instance = Product.find_by_item_code(item_code) if (!mt_instance.nil?) - menu_item_hash[:type] = 'SetMenuItem' + menu_item_hash[:type] = 'Product' menu_item_hash[:account_id] = 1 menu_item_hash[:item_code] = mt_instance.item_code menu_item_hash[:item_instance_code] = mt_instance.item_code