[Erp5-report] r17391 - /erp5/trunk/products/ERP5/Document/InvoicingRule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Nov 5 17:32:04 CET 2007


Author: romain
Date: Mon Nov  5 17:32:04 2007
New Revision: 17391

URL: http://svn.erp5.org?rev=17391&view=rev
Log:
Remove arbitrary hardcoded property names.

Modified:
    erp5/trunk/products/ERP5/Document/InvoicingRule.py

Modified: erp5/trunk/products/ERP5/Document/InvoicingRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/InvoicingRule.py?rev=17391&r1=17390&r2=17391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/InvoicingRule.py (original)
+++ erp5/trunk/products/ERP5/Document/InvoicingRule.py Mon Nov  5 17:32:04 2007
@@ -152,11 +152,6 @@
           applied_rule._delObject(movement_id)
       
         for movement, prop_dict in modify_dict.items():
-          #XXX ignore start_date and stop_date if the difference is smaller than a
-          # rule defined value
-          for prop in ('start_date', 'stop_date'):
-           if prop in prop_dict.keys():
-              prop_dict.pop(prop)
           applied_rule[movement].edit(**prop_dict)
 
         for movement_dict in add_list:




More information about the Erp5-report mailing list