Commit 0a0e4568 authored by Fabien Morin's avatar Fabien Morin

update copyright, improve docstrings


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3f7516e5
############################################################################## ##############################################################################
# #
# Copyright (c) 2007 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2007-2009 Nexedi SA and Contributors. All Rights Reserved.
# Fabien Morin <fabien.morin@gmail.com> # Fabien Morin <fabien.morin@gmail.com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
# #
############################################################################## ##############################################################################
""" """
test cases related to french localisation (tranche A for example) test cases related to french localisation. Scripts inclued in
erp5_payroll_l10n_fr will be tested here.
""" """
from Products.ERP5Type.tests.Sequence import SequenceList from Products.ERP5Type.tests.Sequence import SequenceList
...@@ -70,6 +71,11 @@ class TestPayroll_l10n_fr(TestPayrollMixin): ...@@ -70,6 +71,11 @@ class TestPayroll_l10n_fr(TestPayrollMixin):
self.stepTic() self.stepTic()
# here, check how much is contributed to the slices # here, check how much is contributed to the slices
# the slices defined for this tax are :
# - 0 to 200
# - 200 to 400
# - 400 to 5000
# the salary is of 3000
self.assertEquals(400, # 200 from the 1st paysheet + 200 from the 2e self.assertEquals(400, # 200 from the 1st paysheet + 200 from the 2e
paysheet_list[1].PaySheetTransaction_getYearToDateSlice(\ paysheet_list[1].PaySheetTransaction_getYearToDateSlice(\
'salary_range/france/slice_0_to_200')) 'salary_range/france/slice_0_to_200'))
...@@ -81,9 +87,8 @@ class TestPayroll_l10n_fr(TestPayrollMixin): ...@@ -81,9 +87,8 @@ class TestPayroll_l10n_fr(TestPayrollMixin):
'salary_range/france/slice_400_to_5000')) 'salary_range/france/slice_400_to_5000'))
def test_01_getYearToDateSlice(self): def test_01_getYearToDateSlice(self):
''' '''Check that is possible to calculate the total amount spend on a slice
that slices works and we can caculate the total amount spend on a slice since the begining of the year.
''' '''
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = """ sequence_string = """
......
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