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

# Conflicts:
#	app/models/order_item.rb
This commit is contained in:
Min Zeya Phyo
2017-06-04 16:37:13 +06:30
33 changed files with 365 additions and 108 deletions

View File

@@ -41,6 +41,7 @@ class OrderItem < ApplicationRecord
order_details = OrderItem.select("order_items.item_name,order_items.qty,order_items.price,(order_items.qty*order_items.price) as total_price")
.joins("left join orders on orders.id = order_items.order_id")
.where("order_items.order_id=?",order_id)
end
private