[Erp5-report] r11502 - /erp5/trunk/products/ERP5/PropertySheet/PaySheet.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 27 17:39:20 CET 2006
Author: kevin
Date: Mon Nov 27 17:39:17 2006
New Revision: 11502
URL: http://svn.erp5.org?rev=11502&view=rev
Log:
Remove advantage (now supported by the business template as a generic Pay Sheet Transaction Line and Payroll Service).
Change work_duration type to float.
Update code layout.
Modified:
erp5/trunk/products/ERP5/PropertySheet/PaySheet.py
Modified: erp5/trunk/products/ERP5/PropertySheet/PaySheet.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/PaySheet.py?rev=11502&r1=11501&r2=11502&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/PaySheet.py (original)
+++ erp5/trunk/products/ERP5/PropertySheet/PaySheet.py Mon Nov 27 17:39:17 2006
@@ -1,7 +1,8 @@
##############################################################################
#
-# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
-# Jean-Paul Smets-Solanes <jp at nexedi.com>
+# Copyright (c) 2002-2006 Nexedi SARL and Contributors. All Rights Reserved.
+# Jean-Paul Smets-Solanes <jp at nexedi.com>
+# Kevin Deldycke <kevin_AT_nexedi_DOT_com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
@@ -27,24 +28,23 @@
##############################################################################
class PaySheet:
- """
- Properties for PaySheet Transaction objects
- """
+ """
+ Properties for PaySheet Transaction objects
+ """
- _properties = (
- { 'id' : 'gross_salary', #XXX data duplication
- 'description' : '',
- 'type' : 'float',
- 'mode' : 'w' },
- { 'id' : 'work_duration',
- 'description' : 'Duration of work.',
- 'type' : 'date',
- 'mode' : 'w' },
- { 'id' : 'advantage', #XXX data duplication
- 'description' : '',
- 'type' : 'float',
- 'mode' : 'w' },
- )
+ _properties = (
+ { 'id' : 'gross_salary' #XXX data duplication
+ , 'description' : ''
+ , 'type' : 'float'
+ , 'mode' : 'w'
+ },
+ { 'id' : 'work_duration'
+ , 'description' : 'Duration of work, per month, in hours' #XXX too specific, should be more generic
+ , 'type' : 'float'
+ , 'mode' : 'w'
+ },
+ )
- _categories = ( 'source', 'destination',
- 'source_section', 'destination_section')
+ _categories = ( 'source', 'destination'
+ , 'source_section', 'destination_section'
+ )
More information about the Erp5-report
mailing list