Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
c4cc53ff
Commit
c4cc53ff
authored
Nov 27, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revised fix
parent
fb025d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
50 deletions
+2
-50
app/businesslayer/changerequest/change_request.py
app/businesslayer/changerequest/change_request.py
+2
-50
No files found.
app/businesslayer/changerequest/change_request.py
View file @
c4cc53ff
...
...
@@ -595,16 +595,6 @@ def cr_routing_actions(approver_instance, current_user):
if
prev_vendor
.
count
()
>
0
:
# EMAIL CODE FOR REQUESTOR
# requestor_notification_msg = REQUESTOR_REJECT_MESSAGE.split(';')[0]
# SEND EMAIL AND NOTIF TO REQUESTOR
# send_mail_requestor(
# current_user, form_code, delegation,
# requestor_notification_msg, action,
# remarks, level
# )
notification_msg
=
REVISED_MESSAGE
.
split
(
';'
)[
0
]
send_mail_vendor
(
...
...
@@ -627,7 +617,7 @@ def cr_routing_actions(approver_instance, current_user):
level
=
last_action_vendor
.
level
models
.
ChangeRequestFormApprovers
.
objects
.
filter
(
Q
(
form_code
=
form_code
)
&
Q
(
level__gt
=
int
(
level
))
Q
(
form_code
=
form_code
)
&
Q
(
level__gt
e
=
int
(
level
))
)
.
update
(
is_action
=
False
,
action
=
None
,
...
...
@@ -636,46 +626,8 @@ def cr_routing_actions(approver_instance, current_user):
date_sent
=
None
)
# else:
# update_form_header_status(form_code, 'Rejected')
# # EMAIL CODE FOR REQUESTOR
# requestor_notification_msg = REQUESTOR_REJECT_MESSAGE.split(';')[0]
# # SEND EMAIL AND NOTIF TO REQUESTOR
# send_mail_requestor(
# current_user, form_code, delegation,
# requestor_notification_msg, action,
# remarks, level
# )
elif
approver_instance
[
'action'
]
.
lower
()
==
'rejected'
:
# send email to vendor
# if delegation.lower() == 'requestor':
# notification_msg = VENDOR_REJECT_MESSAGE.split(';')[0]
# # send reject email to vendor
# send_mail_vendor(
# current_user, form_code, delegation,
# notification_msg, action,
# remarks, level
# )
# prev_level = int(level) - 1
# # reset last vendor details
# models.ChangeRequestFormApprovers.objects.filter(
# Q(form_code=form_code) &
# Q(level=int(prev_level))
# ).update(
# is_action=True,
# action='Acknowledged',
# action_date=datetime.now(),
# date_sent=datetime.now()
# )
# else:
update_form_header_status
(
form_code
,
'Rejected'
)
# EMAIL CODE FOR REQUESTOR
...
...
@@ -769,7 +721,7 @@ def cr_routing_actions(approver_instance, current_user):
reset_autoemail_tables
(
form_code
)
return
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment