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 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -137,7 +134,8 @@ if from_date or node_account_type in (\'expense\', \'income\'):\n ...@@ -137,7 +134,8 @@ if from_date or node_account_type in (\'expense\', \'income\'):\n
from_date = period_start_date\n from_date = period_start_date\n
\n \n
# Get previous debit and credit\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 previous_total_debit = previous_total_credit = 0\n
else:\n else:\n
getInventoryAssetPrice = portal.portal_simulation.getInventoryAssetPrice\n getInventoryAssetPrice = portal.portal_simulation.getInventoryAssetPrice\n
......
468 469
\ No newline at end of file \ 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