Commit 9038e653 authored by Jérome Perrin's avatar Jérome Perrin

Define debit_price directly on the brain for the summary line.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13327 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0a49a181
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return max(-(brain.total_price or 0), 0)\n
<value> <string>return getattr(brain, \'credit_price\', max(-(brain.total_price or 0), 0))\n
</string> </value>
</item>
<item>
......@@ -120,6 +120,7 @@
<string>brain</string>
<string>selection</string>
<string>kwd</string>
<string>getattr</string>
<string>max</string>
<string>_getattr_</string>
</tuple>
......
......@@ -68,7 +68,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return max(brain.total_price, 0)\n
<value> <string>return getattr(brain, \'debit_price\', max(brain.total_price, 0))\n
</string> </value>
</item>
<item>
......@@ -120,6 +120,7 @@
<string>brain</string>
<string>selection</string>
<string>kwd</string>
<string>getattr</string>
<string>max</string>
<string>_getattr_</string>
</tuple>
......
......@@ -133,8 +133,8 @@ if from_date:\n
uid=\'new_000\',\n
date=from_date,\n
simulation_state_title="",\n
Movement_getCreditPrice=previous_total_credit,\n
Movement_getDebitPrice=previous_total_debit,\n
credit_price=previous_total_credit,\n
debit_price=previous_total_debit,\n
total_price=net_balance,\n
running_total_price=net_balance,\n
is_previous_balance=True,\n
......
210
\ No newline at end of file
211
\ 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