Commit 270257ac authored by Gladys Forte's avatar Gladys Forte

action fix

parent 9116f47a
......@@ -724,6 +724,13 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
is_action=True
)
# update current approver details
models.ChangeRequestFormApprovers.objects.filter(
Q(form_code=form_code) & Q(level=int(level))
).update(
is_action=False
)
the_next_vendor = models.ChangeRequestFormApprovers.objects.filter(
form_code=form_code, level=int(next_level),
delegation='Vendor/Implementor'
......@@ -816,6 +823,13 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
is_action=True
)
# update current approver details
models.ChangeRequestFormApprovers.objects.filter(
Q(form_code=form_code) & Q(level=int(level))
).update(
is_action=False
)
elif action.lower() == 'acknowledged':
# EMAIL CODE FOR REQUESTOR
......
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