Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
cooperatic-foodcoops
third-party
Commits
7dd04f64
Commit
7dd04f64
authored
Jun 21, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove temp file code
parent
93ac4b05
Pipeline
#2257
passed with stage
in 1 minute 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
views.py
reception/views.py
+1
-4
No files found.
reception/views.py
View file @
7dd04f64
...
@@ -261,9 +261,7 @@ def save_error_report(request):
...
@@ -261,9 +261,7 @@ def save_error_report(request):
try
:
try
:
for
i
,
order
in
enumerate
(
data
[
'orders'
])
:
for
i
,
order
in
enumerate
(
data
[
'orders'
])
:
# list of temp files: 1 report per order & group
# 1 report per order & 1 for the group
data
[
'orders'
][
i
][
'temp_file_name'
]
=
"temp/"
+
order
[
'name'
]
+
"_rapport-reception_temp.xlsx"
group_ids
.
append
(
order
[
'id'
])
group_ids
.
append
(
order
[
'id'
])
orders_name_elts
.
append
(
order
[
'name'
])
orders_name_elts
.
append
(
order
[
'name'
])
...
@@ -287,7 +285,6 @@ def save_error_report(request):
...
@@ -287,7 +285,6 @@ def save_error_report(request):
'date_order'
:
data
[
'orders'
][
0
][
'date_order'
],
'date_order'
:
data
[
'orders'
][
0
][
'date_order'
],
'amount_total'
:
data
[
'group_amount_total'
],
'amount_total'
:
data
[
'group_amount_total'
],
'updated_products'
:
data
[
'updated_products'
],
'updated_products'
:
data
[
'updated_products'
],
'temp_file_name'
:
temp_group_file_name
,
'group_ids'
:
group_ids
'group_ids'
:
group_ids
}
}
...
...
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