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
e300971b
Commit
e300971b
authored
Sep 23, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update submit
parent
1a40d0d8
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
52 deletions
+99
-52
app/applicationlayer/cms/form/views.py
app/applicationlayer/cms/form/views.py
+82
-52
app/applicationlayer/cms/utils_cr.py
app/applicationlayer/cms/utils_cr.py
+17
-0
No files found.
app/applicationlayer/cms/form/views.py
View file @
e300971b
This diff is collapsed.
Click to expand it.
app/applicationlayer/cms/utils_cr.py
View file @
e300971b
...
@@ -396,6 +396,23 @@ def cancel_overdue(request):
...
@@ -396,6 +396,23 @@ def cancel_overdue(request):
return
True
return
True
def
get_max_batchno
(
request
):
try
:
max_id
=
models
.
ChangeRequestHistory
.
objects
.
all
(
)
.
order_by
(
"-batch_no"
)[
0
]
if
max_id
:
max_batch
=
max_id
.
batch_no
.
split
(
"-"
)
max_batch
=
int
(
max_batch
[
2
]
.
lstrip
(
"0"
))
+
1
batchno
=
number_generator
(
"BATCH"
,
max_batch
)
else
:
batchno
=
number_generator
(
"BATCH"
,
1
)
except
:
batchno
=
number_generator
(
"BATCH"
,
1
)
return
batchno
def
crhistory_save
(
batch_no
,
main_action
,
def
crhistory_save
(
batch_no
,
main_action
,
action
,
entity
,
form_code
,
action
,
entity
,
form_code
,
fromValue
,
toValue
):
fromValue
,
toValue
):
...
...
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