Commit c08f5508 authored by Fabien Morin's avatar Fabien Morin

Now start_date and stop_date can be used on all paysheet since they are copied...

Now start_date and stop_date can be used on all paysheet since they are copied on movement : the builder will be able to put the movement in the corresponding paysheet


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27543 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2570c716
......@@ -395,7 +395,9 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
specialise_value=sequence.get('model'),
source_section_value=sequence.get('employee'),
destination_section_value=sequence.get('employer'),
resource_value=sequence.get('price_currency'))
resource_value=sequence.get('price_currency'),
start_date=DateTime(),
stop_date=DateTime()+1)
sequence.edit(paysheet = paysheet)
def createPaysheetLine(self, document, **kw):
......@@ -1102,8 +1104,6 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
def stepCheckPaysheetConsistency(self, sequence=None, **kw):
paysheet = sequence.get('paysheet')
paysheet.edit(start_date=DateTime(),
stop_date=DateTime()+1)
self.assertEquals([], paysheet.checkConsistency())
def stepCheckModelConsistency(self, sequence=None, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment