update product in product rb

This commit is contained in:
Aung Myo
2017-10-11 10:15:10 +06:30
parent 50756656a7
commit 60b5a17388

View File

@@ -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