fix sale item report and bill print

This commit is contained in:
Yan
2017-11-06 12:33:41 +06:30
parent d4e73a18d1
commit 6a8bf490d8
2 changed files with 3 additions and 3 deletions

View File

@@ -614,8 +614,8 @@ def self.get_item_query()
" JOIN shift_sales sh ON sh.`id` = sales.shift_sale_id" +
" JOIN menu_categories mc ON mc.id = mi.menu_category_id ")
# "JOIN employee_accesses ea ON ea.`employee_id` = sales.cashier_id ")
query = query.joins(" JOIN accounts acc ON acc.id = mi.account_id")
query = query.where("i.unit_price > 0")
query = query.group('i.product_code ').order("mi.account_id, mi.menu_category_id")
end