re-fixed in production

This commit is contained in:
Yan
2017-07-07 20:51:24 +06:30
parent 09e202bb70
commit 2226d59140
2 changed files with 3 additions and 3 deletions

View File

@@ -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)