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
ed970cf9
Commit
ed970cf9
authored
Nov 25, 2011
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
Show 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):
...
@@ -640,7 +640,7 @@ class TestPayrollMixin(TestTradeModelLineMixin, ERP5ReportTestCase):
paysheet_line_list
=
paysheet
.
contentValues
(
portal_type
=
'Pay Sheet Line'
)
paysheet_line_list
=
paysheet
.
contentValues
(
portal_type
=
'Pay Sheet Line'
)
self
.
assertEqual
(
len
(
paysheet_line_list
),
0
)
self
.
assertEqual
(
len
(
paysheet_line_list
),
0
)
self
.
assertEqual
(
len
(
paysheet
.
getMovementList
(
portal_type
=
\
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
):
def
stepCheckPaysheetLineAreCreatedUsingBonus
(
self
,
sequence
=
None
,
**
kw
):
paysheet
=
sequence
.
get
(
'paysheet'
)
paysheet
=
sequence
.
get
(
'paysheet'
)
...
@@ -2206,8 +2206,7 @@ class TestPayroll(TestPayrollMixin):
...
@@ -2206,8 +2206,7 @@ class TestPayroll(TestPayrollMixin):
def
test_modelLineWithNonePrice
(
self
):
def
test_modelLineWithNonePrice
(
self
):
'''
'''
test the creation of lines when the price is not set, but only the
Test that no line is created when quantity is set but not price
quantity. This means that no ratio is applied on this line.
'''
'''
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
sequence_string
=
"""
sequence_string
=
"""
...
@@ -2226,10 +2225,7 @@ class TestPayroll(TestPayrollMixin):
...
@@ -2226,10 +2225,7 @@ class TestPayroll(TestPayrollMixin):
CheckUpdateAggregatedAmountListReturn
CheckUpdateAggregatedAmountListReturn
PaysheetApplyTransformation
PaysheetApplyTransformation
Tic
Tic
CheckPaysheetLineAreCreated
CheckThereIsOnlyOnePaysheetLine
CheckPaysheetLineAmountsWithQuantityOnly
CheckUpdateAggregatedAmountListReturnNothing
CheckPaysheetLineAmountsWithQuantityOnly
"""
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
sequence_list
.
play
(
self
)
...
...
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