This commit is contained in:
Myat Zin Wai Maw
2019-08-30 14:03:48 +06:30
parent 67793b282e
commit f0be0d19a1
7 changed files with 52 additions and 47 deletions

View File

@@ -64,7 +64,7 @@ class Reports::SaleitemController < BaseReportController
def show
from, to, report_type = get_date_range_from_params
@sale_data = Sale.get_by_shift_sale_by_item(from,to,Sale::SALE_STATUS_COMPLETED)
sale_data = @sale_data
date_arr = Array.new
@sale_data.each do |sale|
local_opening_date = sale.opening_date.nil? ? '-' : sale.opening_date.utc.getlocal.strftime("%e %b %I:%M%p")