Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into adminbsb_ui_changes

This commit is contained in:
phyusin
2018-05-23 17:00:34 +06:30
3 changed files with 3 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ class Origami::ProductCommissionsController < BaseOrigamiController
# @commission = Commission.where('product_code = ? AND is_active = ?', @menu_item.item_code, true).take
Commission.all.each do |com|
if com.product_code.include? @menu_item.item_code && com.active == true
if com.product_code.include? @menu_item.item_code && com.is_active == true
@commission = Commission.find(com.id)
break
end