[Erp5-report] r31394 kazuhiko - /erp5/trunk/products/ERP5/Document/QuantitySplitSolver.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Dec 18 15:38:54 CET 2009
Author: kazuhiko
Date: Fri Dec 18 15:38:45 2009
New Revision: 31394
URL: http://svn.erp5.org?rev=31394&view=rev
Log:
modify start_date or stop_date only if provided.
Modified:
erp5/trunk/products/ERP5/Document/QuantitySplitSolver.py
Modified: erp5/trunk/products/ERP5/Document/QuantitySplitSolver.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/QuantitySplitSolver.py?rev=31394&r1=31393&r2=31394&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/QuantitySplitSolver.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/QuantitySplitSolver.py [utf8] Fri Dec 18 15:38:45 2009
@@ -79,5 +79,9 @@
batch_mode=True) # Copy at same level
new_movement._setDelivery(None)
new_movement._setQuantity(split_quantity)
- new_movement._setStartDate(configuration_dict['start_date'])
- new_movement._setStopDate(configuration_dict['stop_date'])
+ start_date = configuration_dict.get('start_date', None)
+ if start_date is not None:
+ new_movement._setStartDate(start_date)
+ stop_date = configuration_dict.get('stop_date', None)
+ if stop_date is not None:
+ new_movement._setStopDate(stop_date)
More information about the Erp5-report
mailing list