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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
ed970cf9
Commit
ed970cf9
authored
13 years ago
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
when no price returned, line must not be created, fix the test
parent
deae8c98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
product/ERP5/tests/testPayroll.py
product/ERP5/tests/testPayroll.py
+3
-7
No files found.
product/ERP5/tests/testPayroll.py
View file @
ed970cf9
...
...
@@ -640,7 +640,7 @@ class TestPayrollMixin(TestTradeModelLineMixin, ERP5ReportTestCase):
paysheet_line_list
=
paysheet
.
contentValues
(
portal_type
=
'Pay Sheet Line'
)
self
.
assertEqual
(
len
(
paysheet_line_list
),
0
)
self
.
assertEqual
(
len
(
paysheet
.
getMovementList
(
portal_type
=
\
'Pay Sheet Cell'
)),
0
)
#
2
because labour line contain no movement
'Pay Sheet Cell'
)),
0
)
#
0
because labour line contain no movement
def
stepCheckPaysheetLineAreCreatedUsingBonus
(
self
,
sequence
=
None
,
**
kw
):
paysheet
=
sequence
.
get
(
'paysheet'
)
...
...
@@ -2206,8 +2206,7 @@ class TestPayroll(TestPayrollMixin):
def
test_modelLineWithNonePrice
(
self
):
'''
test the creation of lines when the price is not set, but only the
quantity. This means that no ratio is applied on this line.
Test that no line is created when quantity is set but not price
'''
sequence_list
=
SequenceList
()
sequence_string
=
"""
...
...
@@ -2226,10 +2225,7 @@ class TestPayroll(TestPayrollMixin):
CheckUpdateAggregatedAmountListReturn
PaysheetApplyTransformation
Tic
CheckPaysheetLineAreCreated
CheckPaysheetLineAmountsWithQuantityOnly
CheckUpdateAggregatedAmountListReturnNothing
CheckPaysheetLineAmountsWithQuantityOnly
CheckThereIsOnlyOnePaysheetLine
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
...
...
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