re-fixed in production
This commit is contained in:
@@ -493,7 +493,7 @@ def self.get_by_range_by_saleitems(from,to,status,report_type)
|
||||
JOIN employees ea ON ea.id = sales.cashier_id")
|
||||
|
||||
|
||||
query = query.where("receipt_date between ? and ? and sale_status=?",from,to,status)
|
||||
query = query.where("(receipt_date between ? and ? and sale_status=?) AND i.unit_price <> 0",from,to,status)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user