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 @@ ...@@ -68,7 +68,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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> </string> </value>
</item> </item>
<item> <item>
...@@ -120,6 +120,7 @@ ...@@ -120,6 +120,7 @@
<string>brain</string> <string>brain</string>
<string>selection</string> <string>selection</string>
<string>kwd</string> <string>kwd</string>
<string>getattr</string>
<string>max</string> <string>max</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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> </string> </value>
</item> </item>
<item> <item>
...@@ -120,6 +120,7 @@ ...@@ -120,6 +120,7 @@
<string>brain</string> <string>brain</string>
<string>selection</string> <string>selection</string>
<string>kwd</string> <string>kwd</string>
<string>getattr</string>
<string>max</string> <string>max</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
......
...@@ -133,8 +133,8 @@ if from_date:\n ...@@ -133,8 +133,8 @@ if from_date:\n
uid=\'new_000\',\n uid=\'new_000\',\n
date=from_date,\n date=from_date,\n
simulation_state_title="",\n simulation_state_title="",\n
Movement_getCreditPrice=previous_total_credit,\n credit_price=previous_total_credit,\n
Movement_getDebitPrice=previous_total_debit,\n debit_price=previous_total_debit,\n
total_price=net_balance,\n total_price=net_balance,\n
running_total_price=net_balance,\n running_total_price=net_balance,\n
is_previous_balance=True,\n is_previous_balance=True,\n
......
210 211
\ 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