Commit 1f20f1d0 authored by Jérome Perrin's avatar Jérome Perrin

Initial balance was not calculated correctly when from_date == period_start_date

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17345 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d143117
......@@ -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>
......@@ -137,7 +134,8 @@ if from_date or node_account_type in (\'expense\', \'income\'):\n
from_date = period_start_date\n
\n
# Get previous debit and credit\n
if from_date == period_start_date:\n
if from_date == period_start_date and \\\n
node_account_type in (\'expense\', \'income\'):\n
previous_total_debit = previous_total_credit = 0\n
else:\n
getInventoryAssetPrice = portal.portal_simulation.getInventoryAssetPrice\n
......
468
\ No newline at end of file
469
\ 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