[Erp5-report] r19797 - /erp5/trunk/products/ERP5/Document/BalanceTransaction.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 11 15:57:54 CET 2008
Author: jerome
Date: Tue Mar 11 15:57:53 2008
New Revision: 19797
URL: http://svn.erp5.org?rev=19797&view=rev
Log:
prevent errors when section is not defined
Modified:
erp5/trunk/products/ERP5/Document/BalanceTransaction.py
Modified: erp5/trunk/products/ERP5/Document/BalanceTransaction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BalanceTransaction.py?rev=19797&r1=19796&r2=19797&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BalanceTransaction.py (original)
+++ erp5/trunk/products/ERP5/Document/BalanceTransaction.py Tue Mar 11 15:57:53 2008
@@ -150,7 +150,9 @@
getInventoryList = self.getPortalObject()\
.portal_simulation.getInventoryList
section_uid = self.getDestinationSectionUid()
- precision = self.getDestinationSectionValue()\
+ precision = 2
+ if section_uid is not None:
+ precision = self.getDestinationSectionValue()\
.getPriceCurrencyValue().getQuantityPrecision()
default_inventory_params = dict(
to_date=self.getStartDate().earliestTime(),
More information about the Erp5-report
mailing list