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

use total_price instead of quantity


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5614 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8372ee18
...@@ -66,7 +66,8 @@ ...@@ -66,7 +66,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>kwd = {}\n <value> <string>kw.update(selection.getParams())\n
kwd = {}\n
if kw.has_key(\'hide_grouping\'):\n if kw.has_key(\'hide_grouping\'):\n
kwd[\'hide_grouping\'] = kw[\'hide_grouping\']\n kwd[\'hide_grouping\'] = kw[\'hide_grouping\']\n
\n \n
...@@ -99,7 +100,7 @@ if kw.get(\'omit_output\') :\n ...@@ -99,7 +100,7 @@ if kw.get(\'omit_output\') :\n
kwd[\'stat\'] = 1\n kwd[\'stat\'] = 1\n
result = context.Entity_zGetAccountingTransactionList(**kwd)\n result = context.Entity_zGetAccountingTransactionList(**kwd)\n
row = result[0]\n row = result[0]\n
return float(\'%.02f\' % row.quantity or 0)\n return float(\'%.02f\' % row.total_price or 0)\n
# vim: syntax=python\n # vim: syntax=python\n
</string> </value> </string> </value>
</item> </item>
...@@ -117,11 +118,11 @@ return float(\'%.02f\' % row.quantity or 0)\n ...@@ -117,11 +118,11 @@ return float(\'%.02f\' % row.quantity or 0)\n
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/erp5_accounting/Entity_statSourceBalance</string> </value> <value> <string>Script (Python):/erp5/portal_skins/erp5_accounting/Entity_statSourceBalance</string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>**kw</string> </value> <value> <string>selection, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -141,15 +142,16 @@ return float(\'%.02f\' % row.quantity or 0)\n ...@@ -141,15 +142,16 @@ return float(\'%.02f\' % row.quantity or 0)\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>selection</string>
<string>kw</string> <string>kw</string>
<string>kwd</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>kwd</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>_write_</string> <string>_write_</string>
<string>context</string> <string>context</string>
......
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