ReceiptList Report Rough

This commit is contained in:
Cherry
2017-06-12 18:26:00 +06:30
parent ca2dc181d6
commit a247c142b8
10 changed files with 572 additions and 11 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