Commit 64dc284e authored by Jérome Perrin's avatar Jérome Perrin

When creating balance transaction for openning next period, also take into...

When creating balance transaction for openning next period, also take into account precision when calculating existing accounts balances

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17316 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e053ef2
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -93,6 +90,7 @@ assert at_date\n
section = context.getParentValue()\n
section_uid = context.getParentUid()\n
section_currency = section.getPriceCurrency()\n
section_currency_precision = section.getPriceCurrencyValue().getQuantityPrecision()\n
\n
balance_transaction = portal.accounting_module.newContent(\n
activate_kw=dict(tag=activity_tag),\n
......@@ -128,6 +126,7 @@ getInventoryList = portal.portal_simulation.getInventoryList\n
\n
inventory_param_dict = dict(section_uid=section_uid,\n
simulation_state=(\'delivered\',),\n
precision=section_currency_precision,\n
portal_type=portal.getPortalAccountingMovementTypeList(),\n
at_date=at_date.latestTime(),)\n
\n
......@@ -330,6 +329,7 @@ context.activate(after_tag=activity_tag).getTitle()\n
<string>section</string>
<string>section_uid</string>
<string>section_currency</string>
<string>section_currency_precision</string>
<string>balance_transaction</string>
<string>group_by_node_node_category_list</string>
<string>group_by_mirror_section_node_category_list</string>
......@@ -348,6 +348,7 @@ context.activate(after_tag=activity_tag).getTitle()\n
<string>inventory</string>
<string>total_price</string>
<string>quantity</string>
<string>_inplacevar_</string>
<string>ValueError</string>
</tuple>
</value>
......
462
\ No newline at end of file
463
\ No newline at end of file
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