Commit 110f3209 authored by Gladys Forte's avatar Gladys Forte

bug fix 2

parent de3c0121
......@@ -664,6 +664,17 @@ def cr_routing_actions(approver_instance, current_user, move_to_level):
requestor_notification_msg, action,
remarks, level
)
# reset selected vendor details
models.ChangeRequestFormApprovers.objects.filter(
Q(form_code=form_code) &
Q(level=int(move_to_level))
).update(
is_action=True,
action=None,
action_date=None,
date_sent=datetime.now()
)
models.ChangeRequestFormApprovers.objects.filter(
Q(form_code=form_code) & Q(level__gt=int(move_to_level))
......
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