daily & hourly report

This commit is contained in:
NyanLinHtut
2019-12-23 14:51:37 +06:30
parent 450c847da6
commit 358ff50934
7 changed files with 323 additions and 259 deletions

View File

@@ -33,8 +33,7 @@ class BaseReportController < ActionController::Base
if params[:from].present? && params[:to].present?
from = Time.parse(params[:from])
to = Time.parse(params[:to])
puts "from - to<<<<<<<<<<<<<<<<<<<<"
puts "#{from},#{to}"
else
case period.to_i
when PERIOD["today"]