change dashboard query and report

This commit is contained in:
phyusin
2018-05-18 18:01:44 +06:30
parent f5604d8c9c
commit e1bb01c029
6 changed files with 98 additions and 92 deletions

View File

@@ -53,7 +53,7 @@ class OrderReservation < ApplicationRecord
order_reservation = OrderReservation.new
order_reservation.order_reservation_type = order_reserve[:order_type]
order_reservation.customer_id = order_reserve[:cus_info]
order_reservation.requested_time = Time.parse(order_reserve[:requested_time]).utc
order_reservation.requested_time = Time.zone.parse(order_reserve[:requested_time]).utc
order_reservation.callback_url = order_reserve[:callback_url]
order_reservation.transaction_ref = order_reserve[:reference]
if order_reserve[:order_info]