Cleaned dynamic_clients.js.erb code. Fixed alarms report bug. Added factory product lot validation to order model. Cleaned permission code. Fixed ticket search bug