update sale item for sub qty and person

This commit is contained in:
Aung Myo
2017-12-15 16:26:35 +06:30
parent 60a58bc948
commit 0c83a3a8ce
2 changed files with 10 additions and 4 deletions

View File

@@ -659,7 +659,7 @@ def self.get_item_query()
# "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.item_instance_code IS NOT NULL")
query = query.group("i.product_name").order("mi.account_id asc","mi.menu_category_id asc")
query = query.group("i.product_name").order("mi.account_id desc")
end
def self.get_other_charges()