JC: added @erb_code and if loop in views.
JC: reflecting on model. added customer_id to new view. Added customer autocomplete path to the lib and pointing out.