update product for account id 3

This commit is contained in:
Aung Myo
2018-02-28 16:44:32 +06:30
parent 32340c52e6
commit d9afdc7df5

View File

@@ -9,7 +9,7 @@ class Product < ApplicationRecord
mt_instance = Product.find_by_item_code(item_code)
if (!mt_instance.nil?)
menu_item_hash[:type] = 'Product'
menu_item_hash[:account_id] = 1
menu_item_hash[:account_id] = 3
menu_item_hash[:item_code] = mt_instance.item_code
menu_item_hash[:item_instance_code] = mt_instance.item_code
menu_item_hash[:name] = mt_instance.name.to_s