Commit 93f2d91a authored by John Red Medrano's avatar John Red Medrano

fixing on completed action at form

parent 023e6f2f
......@@ -651,7 +651,7 @@ def cr_routing_actions(approver_instance, current_user):
the_last_vendor = check_vendor_level(
'last', level, form_code)
if (current_user == the_last_vendor.user.code and
if (the_last_vendor and current_user == the_last_vendor.user.code and
level == the_last_vendor.level):
update_form_header_status(form_code, 'Approved')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment