Commit bc28c439 authored by Jérome Perrin's avatar Jérome Perrin

prevent errors when section is not defined


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19797 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 196f74de
......@@ -150,7 +150,9 @@ class BalanceTransaction(AccountingTransaction, Inventory):
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(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment