[Erp5-report] r21264 - /erp5/trunk/products/ERP5/tests/testPayroll.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 2 14:50:53 CEST 2008


Author: jerome
Date: Mon Jun  2 14:50:52 2008
New Revision: 21264

URL: http://svn.erp5.org?rev=21264&view=rev
Log:
don't set base_amount in test_createEditablePaySheetLine, it's not required.
also explain why we need cell in the model line for editable model line to work

Modified:
    erp5/trunk/products/ERP5/tests/testPayroll.py

Modified: erp5/trunk/products/ERP5/tests/testPayroll.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPayroll.py?rev=21264&r1=21263&r2=21264&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPayroll.py (original)
+++ erp5/trunk/products/ERP5/tests/testPayroll.py Mon Jun  2 14:50:52 2008
@@ -1159,10 +1159,10 @@
           portal_type='Pay Sheet Model Line',
           resource_value=self.labour,
           variation_category_list=['tax_category/employee_share'],
-          base_amount_list=['base_salary'],
           editable=1)
-    # Note that for now it is required that the editable line contains at least
-    # one cell
+    # Note that it is required that the editable line contains at least one
+    # cell, to know which tax_category is used (employee share or employer
+    # share).
     line.updateCellRange(base_id='movement')
     cell = line.newCell('tax_category/employee_share',
                         portal_type='Pay Sheet Cell',




More information about the Erp5-report mailing list