Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
40fae545
Commit
40fae545
authored
Jun 01, 2016
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OrderModule_processOrderStat: Drop whitespaces at end of line.
parent
bfa45fbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/OrderModule_processOrderStat.py
...m/portal_skins/erp5_trade/OrderModule_processOrderStat.py
+4
-4
No files found.
bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/OrderModule_processOrderStat.py
View file @
40fae545
...
...
@@ -17,13 +17,13 @@ doc_line_dict = {}
for
line
in
line_list
:
doc_lines
=
doc_line_dict
.
setdefault
(
line
.
explanation_uid
,
[])
doc_lines
.
append
(
line
)
for
result
in
document_list
:
try
:
line_list
=
doc_line_dict
[
result
[
'uid'
]]
except
KeyError
:
line_list
=
[]
period
=
result
[
'start_date'
]
if
period
is
not
None
:
period
=
period
.
strftime
(
date_format
)
...
...
@@ -47,11 +47,11 @@ for result in document_list:
line_dict
=
product_dict
[
client_title
]
else
:
line_dict
=
product_dict
if
report_group_by
!=
"client"
:
# client_title -> product_title -> period -> amount/quantity...
# or product_title -> period -> amount/quantity...
for
line
in
line_list
:
for
line
in
line_list
:
# FIXME: if two resources have the same title, do we want to group ?
product_title
=
line
.
resource_title
if
not
line_dict
.
has_key
(
product_title
):
...
...
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