fixed conflict

This commit is contained in:
Nweni
2017-06-12 18:52:12 +06:30
12 changed files with 593 additions and 22 deletions

View File

@@ -263,4 +263,8 @@ class Sale < ApplicationRecord
def generate_custom_id
self.sale_id = SeedGenerator.generate_id(self.class.name, "SAL")
end
def self.get_receipt_no_list(from,to)
sale = Sale.where("sale_status=? and receipt_date between ? and ?","completed",from,to)
end
end