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

Set values for final_balance_if_debit and final_balance_if_credit for stat.

Rewrite using getInventoryList only, because when no movements were made on a (node, mirror_section) and there was an initial balance, this initial balance was not shown

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14191 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1d24f3a1
...@@ -75,13 +75,17 @@ initial_debit_balance = request[\'TrialBalance.total_initial_debit_balance\']\n ...@@ -75,13 +75,17 @@ initial_debit_balance = request[\'TrialBalance.total_initial_debit_balance\']\n
initial_credit_balance = request[\'TrialBalance.total_initial_credit_balance\']\n initial_credit_balance = request[\'TrialBalance.total_initial_credit_balance\']\n
debit = request[\'TrialBalance.debit\']\n debit = request[\'TrialBalance.debit\']\n
credit = request[\'TrialBalance.credit\']\n credit = request[\'TrialBalance.credit\']\n
final_balance_if_debit = request[\'TrialBalance.final_balance_if_debit\']\n
final_balance_if_credit = request[\'TrialBalance.final_balance_if_credit\']\n
\n \n
return [ Object( initial_debit_balance=initial_debit_balance,\n return [ Object( initial_debit_balance=initial_debit_balance,\n
initial_credit_balance=initial_credit_balance,\n initial_credit_balance=initial_credit_balance,\n
debit=debit,\n debit=debit,\n
credit=credit,\n credit=credit,\n
final_debit_balance=initial_debit_balance + debit,\n final_debit_balance=initial_debit_balance + debit,\n
final_credit_balance=initial_credit_balance + credit ) ]\n final_credit_balance=initial_credit_balance + credit,\n
final_balance_if_debit=final_balance_if_debit,\n
final_balance_if_credit=final_balance_if_credit ) ]\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -141,6 +145,8 @@ return [ Object( initial_debit_balance=initial_debit_balance,\n ...@@ -141,6 +145,8 @@ return [ Object( initial_debit_balance=initial_debit_balance,\n
<string>initial_credit_balance</string> <string>initial_credit_balance</string>
<string>debit</string> <string>debit</string>
<string>credit</string> <string>credit</string>
<string>final_balance_if_debit</string>
<string>final_balance_if_credit</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
275 277
\ 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