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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
4d841c53
Commit
4d841c53
authored
Sep 26, 2019
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! erp5_pdm: do not round calculated average unit_price in slice case.
parent
d222b4f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
product/ERP5/tests/testResource.py
product/ERP5/tests/testResource.py
+5
-5
No files found.
product/ERP5/tests/testResource.py
View file @
4d841c53
...
...
@@ -1221,11 +1221,11 @@ class TestResource(ERP5TypeTestCase):
)
for
case
in
[
{
'quantity'
:
9
,
'price'
:
10.
,
'total_price'
:
90.
},
{
'quantity'
:
11
,
'price'
:
9.90909
,
'total_price'
:
109.
},
{
'quantity'
:
15
,
'price'
:
9.66667
,
'total_price'
:
145.
},
{
'quantity'
:
19
,
'price'
:
9.52632
,
'total_price'
:
181.
},
{
'quantity'
:
25
,
'price'
:
9.2
,
'total_price'
:
230.
},
{
'quantity'
:
9
,
'price'
:
90.
/
9
,
'total_price'
:
90.
},
{
'quantity'
:
11
,
'price'
:
109.
/
11
,
'total_price'
:
109.
},
{
'quantity'
:
15
,
'price'
:
145.
/
15
,
'total_price'
:
145.
},
{
'quantity'
:
19
,
'price'
:
181.
/
19
,
'total_price'
:
181.
},
{
'quantity'
:
25
,
'price'
:
230.
/
25
,
'total_price'
:
230.
},
]:
_test
(
**
case
)
...
...
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