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
bb9f625e
Commit
bb9f625e
authored
Nov 25, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
01917a57
081c7140
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3634 additions
and
6 deletions
+3634
-6
app/applicationlayer/cms/utils_cr.py
app/applicationlayer/cms/utils_cr.py
+0
-3
app/applicationlayer/management/batchupload/views.py
app/applicationlayer/management/batchupload/views.py
+4
-2
app/entities/models.py
app/entities/models.py
+0
-1
requirements/RMSv2 copy.postman_collection.json
requirements/RMSv2 copy.postman_collection.json
+3630
-0
No files found.
app/applicationlayer/cms/utils_cr.py
View file @
bb9f625e
...
...
@@ -695,9 +695,6 @@ def cancelled_user_trigger(form_code):
# NOTIF MSG FOR NEXT APPROVER
msg
=
CANCEL_MESSAGE
.
split
(
';'
)[
0
]
# if n_approver.delegation.name.lower() == 'vendor/implementor':
# msg = VENDOR_ACKNOWLEDGE_MESSAGE.split(';')[0]
# next approver details --------------------------------------------------
receiver_instance
=
get_account_details
(
n_approver
.
user
.
code
)
receiver_name
=
receiver_instance
.
values_list
(
'name'
,
flat
=
True
)[
0
]
...
...
app/applicationlayer/management/batchupload/views.py
View file @
bb9f625e
...
...
@@ -198,7 +198,7 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
)
return
Response
(
{
"message"
:
message
},
status
=
status
.
HTTP_
400_BAD_REQUEST
status
=
status
.
HTTP_
200_OK
)
@
transaction
.
atomic
...
...
@@ -256,13 +256,15 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
raise
ParseError
(
department_error
)
# user type authorization and user type per user
else
:
user_department
=
Department
.
objects
.
get
(
name__icontains
=
keys
[
'department'
]
)
default_app
=
Application
.
objects
.
filter
(
excel_code
=
keys
[
'
d
efault_app'
]
excel_code
=
keys
[
'
D
efault_app'
]
)
.
first
()
dept_code
=
Department
.
objects
.
get
(
...
...
app/entities/models.py
View file @
bb9f625e
...
...
@@ -130,7 +130,6 @@ class Company(AuditClass):
def
save
(
self
,
*
args
,
**
kwargs
):
super
(
Company
,
self
)
.
save
(
*
args
,
**
kwargs
)
if
self
.
code
==
'com'
:
print
(
self
.
code
)
code
=
enums
.
GenerateCode
.
APP
.
value
code
=
number_generator
(
enums
.
GenerateCode
.
COMPANY
.
value
,
self
.
id
)
Company
.
objects
.
filter
(
id
=
self
.
id
)
.
update
(
code
=
code
)
...
...
requirements/RMSv2 copy.postman_collection.json
0 → 100644
View file @
bb9f625e
This diff is collapsed.
Click to expand it.
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