Commit fef3290d authored by Fabien Morin's avatar Fabien Morin

Set variation_category_list on payroll_service.

Change create_paysheet_line property name to create_line.
Remove all CheckSourceSectionOnMovements, and check it in a special test, this avoid to have to broke all tests when this don't works


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27366 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ade1981b
...@@ -118,6 +118,8 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin): ...@@ -118,6 +118,8 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
product_line='state_insurance', quantity_unit='time/month', product_line='state_insurance', quantity_unit='time/month',
variation_base_category_list=['tax_category', 'salary_range'], variation_base_category_list=['tax_category', 'salary_range'],
use='payroll/tax') use='payroll/tax')
node.setVariationCategoryList(['tax_category/employee_share',
'tax_category/employer_share'])
sequence.edit(urssaf_payroll_service = node) sequence.edit(urssaf_payroll_service = node)
def stepCreateLabourPayrollService(self, sequence=None, **kw): def stepCreateLabourPayrollService(self, sequence=None, **kw):
...@@ -131,6 +133,8 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin): ...@@ -131,6 +133,8 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
node.edit(title='Oldage Insurance', quantity_unit='time/month', node.edit(title='Oldage Insurance', quantity_unit='time/month',
variation_base_category_list=['tax_category', 'salary_range'], variation_base_category_list=['tax_category', 'salary_range'],
product_line='state_insurance', use='payroll/tax') product_line='state_insurance', use='payroll/tax')
node.setVariationCategoryList(['tax_category/employee_share',
'tax_category/employer_share'])
sequence.edit(oldage_insurance_payroll_service = node) sequence.edit(oldage_insurance_payroll_service = node)
def createModel(self): def createModel(self):
...@@ -490,7 +494,7 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin): ...@@ -490,7 +494,7 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
'tax_category/employer_share'], 'tax_category/employer_share'],
base_contribution_list=['base_amount/deductible_tax'], base_contribution_list=['base_amount/deductible_tax'],
base_application_list=['base_amount/base_salary'], base_application_list=['base_amount/base_salary'],
create_paysheet_line=False,) create_line=False,)
sequence.edit(intermediate_model_line = model_line) sequence.edit(intermediate_model_line = model_line)
def stepModelCreateAppliedOnTaxModelLine(self, sequence=None, **kw): def stepModelCreateAppliedOnTaxModelLine(self, sequence=None, **kw):
...@@ -771,7 +775,6 @@ class TestNewPayroll(TestNewPayrollMixin): ...@@ -771,7 +775,6 @@ class TestNewPayroll(TestNewPayrollMixin):
CheckUpdateAggregatedAmountListReturn CheckUpdateAggregatedAmountListReturn
PaysheetApplyTransformation PaysheetApplyTransformation
Tic Tic
CheckSourceSectionOnMovements
CheckPaysheetLineAreCreated CheckPaysheetLineAreCreated
CheckPaysheetLineAmounts CheckPaysheetLineAmounts
CheckUpdateAggregatedAmountListReturnNothing CheckUpdateAggregatedAmountListReturnNothing
...@@ -838,7 +841,6 @@ class TestNewPayroll(TestNewPayrollMixin): ...@@ -838,7 +841,6 @@ class TestNewPayroll(TestNewPayrollMixin):
CheckUpdateAggregatedAmountListReturn CheckUpdateAggregatedAmountListReturn
PaysheetApplyTransformation PaysheetApplyTransformation
Tic Tic
CheckSourceSectionOnMovements
CheckPaysheetLineAreCreated CheckPaysheetLineAreCreated
CheckPaysheetLineAmounts CheckPaysheetLineAmounts
CheckUpdateAggregatedAmountListReturnNothing CheckUpdateAggregatedAmountListReturnNothing
...@@ -846,7 +848,6 @@ class TestNewPayroll(TestNewPayrollMixin): ...@@ -846,7 +848,6 @@ class TestNewPayroll(TestNewPayrollMixin):
CheckUpdateAggregatedAmountListReturnNothing CheckUpdateAggregatedAmountListReturnNothing
PaysheetApplyTransformation PaysheetApplyTransformation
Tic Tic
CheckSourceSectionOnMovements
CheckPaysheetLineAreCreated CheckPaysheetLineAreCreated
CheckPaysheetLineNewAmountsAfterUpdate CheckPaysheetLineNewAmountsAfterUpdate
CheckUpdateAggregatedAmountListReturnNothing CheckUpdateAggregatedAmountListReturnNothing
...@@ -874,7 +875,19 @@ class TestNewPayroll(TestNewPayrollMixin): ...@@ -874,7 +875,19 @@ class TestNewPayroll(TestNewPayrollMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_sourceSectionIsSetOnMovements(self):
'''
check that after apply transformation, source section is set on movment
(using Business Process)
'''
sequence_list = SequenceList()
sequence_string = self.COMMON_BASIC_DOCUMENT_CREATION_SEQUENCE_STRING + """
PaysheetApplyTransformation
Tic
CheckSourceSectionOnMovements
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
import unittest import unittest
def test_suite(): def test_suite():
......
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