update access code for void foc and edit
This commit is contained in:
@@ -73,7 +73,7 @@ class Origami::VoidController < BaseOrigamiController
|
||||
|
||||
# FOr Sale Audit
|
||||
action_by = current_user.name
|
||||
if access_code != "null"
|
||||
if access_code != "null" && current_user.role == "cashier"
|
||||
action_by = Employee.find_by_emp_id(access_code).name
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user