sale query checked

This commit is contained in:
phyusin
2018-07-17 10:29:49 +06:30
parent d78bb58450
commit 7ef9825168

View File

@@ -1242,7 +1242,7 @@ def self.get_payment_method_by_shift(shift_sale_range,shift,from,to,payment_type
shift_ids = shift_sale_range.map(&:id).join(",")
sub_query += " AND sales.shift_sale_id in (#{shift_ids})"
else
sub_query += " AND sales.receipt_date between #{from} and #{to}"
sub_query += " AND sales.receipt_date between '#{from}' and '#{to}'"
end
sub_query1 = "CASE WHEN (SELECT SUM(sale_payments.payment_amount)