Commit 7fc71cc2 authored by Jérome Perrin's avatar Jérome Perrin

Create TempBase instead of TempAccountingTransaction, they have too many side effects.

( actually edit(total_price=0) doesnot set the total_price=0 attribute )



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14104 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 01115a28
......@@ -142,11 +142,10 @@ if from_date or node_account_type in (\'expense\', \'income\'):\n
\n
# Show the previous balance if not empty\n
if previous_total_credit != 0 or previous_total_debit != 0:\n
from Products.ERP5Type.Document import newTempAccountingTransaction\n
from Products.ERP5Type.Document import newTempBase\n
\n
net_balance = previous_total_debit - previous_total_credit\n
previous_balance = newTempAccountingTransaction(\n
portal, \'_temp_accounting_transaction\')\n
previous_balance = newTempBase(portal, \'_temp_accounting_transaction\')\n
previous_balance.edit(\n
uid=\'new_000\',\n
date=from_date,\n
......@@ -269,7 +268,7 @@ return portal.portal_simulation.getMovementHistoryList(\n
<string>_apply_</string>
<string>True</string>
<string>Products.ERP5Type.Document</string>
<string>newTempAccountingTransaction</string>
<string>newTempBase</string>
<string>previous_balance</string>
</tuple>
</value>
......
250
\ No newline at end of file
251
\ 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