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

Debit & Credit was reverse


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5846 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cef93695
...@@ -70,15 +70,15 @@ ...@@ -70,15 +70,15 @@
params = selection.getParams()\n params = selection.getParams()\n
else:\n else:\n
params = {}\n params = {}\n
kw = {} \n kw = {}\n
kw[\'section_category\'] = params.get(\'section_category\')\n kw[\'section_category\'] = params.get(\'section_category\')\n
kw[\'stat\'] = 1\n kw[\'stat\'] = 1\n
kw[\'omit_output\'] = 1\n kw[\'omit_input\'] = 1\n
kw[\'transaction\'] = context.getUid()\n kw[\'transaction\'] = context.getUid()\n
\n \n
result = context.AccountingTransactionModule_zGetAccountingTransactionList(selection=selection, **kw)\n result = context.AccountingTransactionModule_zGetAccountingTransactionList(selection=selection, selection_params=kw, **kw)\n
row = result[0]\n row = result[0]\n
return float(\'%.02f\' % (row.total_price or 0.0))\n return float(\'%.02f\' % (row.total_price and - row.total_price or 0.0))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -70,15 +70,15 @@ ...@@ -70,15 +70,15 @@
params = selection.getParams()\n params = selection.getParams()\n
else:\n else:\n
params = {}\n params = {}\n
kw = {}\n kw = {} \n
kw[\'section_category\'] = params.get(\'section_category\')\n kw[\'section_category\'] = params.get(\'section_category\')\n
kw[\'stat\'] = 1\n kw[\'stat\'] = 1\n
kw[\'omit_input\'] = 1\n kw[\'omit_output\'] = 1\n
kw[\'transaction\'] = context.getUid()\n kw[\'transaction\'] = context.getUid()\n
\n \n
result = context.AccountingTransactionModule_zGetAccountingTransactionList(selection=selection, selection_params=kw, **kw)\n result = context.AccountingTransactionModule_zGetAccountingTransactionList(selection=selection, **kw)\n
row = result[0]\n row = result[0]\n
return float(\'%.02f\' % (row.total_price and - row.total_price or 0.0))\n return float(\'%.02f\' % (row.total_price or 0.0))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
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