update add oredr

This commit is contained in:
Aung Myo
2018-02-28 10:14:18 +06:30
parent ce8581f892
commit 0acd533bfe
12 changed files with 743 additions and 590 deletions

View File

@@ -52,7 +52,7 @@ class MenuCategory < ApplicationRecord
if from > to
h = to_t.hour
if h < 12 # before noon
if h = 0
if h == 0
to = 24
to = to * 3600 + to_t.min* 60 + to_t.sec
end