update waste and spoilage

This commit is contained in:
Aung Myo
2018-03-30 14:20:47 +06:30
parent 15f0abac21
commit 5588f40753
16 changed files with 380 additions and 39 deletions

View File

@@ -0,0 +1,19 @@
class Reports::WasteAndSpoilageController < BaseReportController
authorize_resource :class => false
def index
from, to = get_date_range_from_params
@sale_type = params[:sale_type]
@sale_data = Sale.get_wastes_and_spoilages(from,to,@sale_type)
@from = from
@to = to
# get printer info
@print_settings = PrintSetting.get_precision_delimiter()
respond_to do |format|
format.html
format.xls
end
end
end