This commit is contained in:
Myat Zin Wai Maw
2019-11-19 10:28:40 +06:30
parent 5dc93ef2f8
commit 8b2da5e3da
3 changed files with 70 additions and 70 deletions

View File

@@ -126,7 +126,7 @@ class Origami::HomeController < BaseOrigamiController
lookup_edit_order = Lookup.collection_of('edit_order')
if !lookup_edit_order.empty?
lookup_edit_order.each do |edit_order|
if edit_order[0].downcase == "editorderorigami"
if edit_order[0].downcase == "editorderorigami"
if edit_order[1] == '0' && (current_login_employee.role == 'cashier' || current_login_employee.role == 'waiter')
@edit_order_origami = false
end
@@ -139,14 +139,14 @@ class Origami::HomeController < BaseOrigamiController
lookup_changable_tax = Lookup.collection_of('changable_tax')
if !lookup_changable_tax.empty?
lookup_changable_tax.each do |changable_tax|
if changable_tax[0].downcase == "change"
if changable_tax[1] == '0'
if changable_tax[0].downcase == "change"
if changable_tax[1] == '0'
@changable_tax = false
end
end
end
end
end
def check_emp_access_code