update sale item price 0
This commit is contained in:
@@ -665,7 +665,8 @@ def self.get_item_query()
|
|||||||
# "JOIN employee_accesses ea ON ea.`employee_id` = sales.cashier_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.joins(" JOIN accounts acc ON acc.id = mi.account_id")
|
||||||
# query = query.where("i.item_instance_code IS NOT NULL")
|
# query = query.where("i.item_instance_code IS NOT NULL")
|
||||||
query = query.group("acc.title,mi.account_id,i.product_name").order("acc.title desc, mi.account_id desc")
|
query = query.group("acc.title,mi.account_id,i.product_name")
|
||||||
|
.order("acc.title desc, mi.account_id desc, i.unit_price asc")
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.get_other_charges()
|
def self.get_other_charges()
|
||||||
|
|||||||
Reference in New Issue
Block a user