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

Project transaction tab:

- don't filter by node category, show all categories and let the user select with domain tree
- use omit_asset_increase / omit_asset_decrease as we show asset prices

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37348 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8014e67a
......@@ -56,10 +56,6 @@
<value> <string>"""Returns Accounting Transactions related to the project.\n
"""\n
kw[\'project_uid\'] = context.getUid()\n
kw[\'node_category_strict_membership\'] = [\'account_type/expense\',\n
\'account_type/income\',\n
\'account_type/asset/receivable\',\n
\'account_type/liability/payable\']\n
return context.Node_getAccountingTransactionList(**kw)\n
</string> </value>
</item>
......
......@@ -55,11 +55,7 @@
<key> <string>_body</string> </key>
<value> <string>"""Total balance of all accounting transactions related to the project.\n
"""\n
kw[\'project_uid\'] = context.getUid()\n
kw[\'node_category_strict_membership\'] = [\'account_type/expense\',\n
\'account_type/income\',\n
\'account_type/asset/receivable\',\n
\'account_type/liability/payable\']\n
kw[\'project_uid\'] = context.getUid() \n
return context.Node_statAccountingBalance(**kw)\n
</string> </value>
</item>
......
......@@ -56,11 +56,7 @@
<value> <string>"""Total credit of all accounting transactions related to the project.\n
"""\n
kw[\'project_uid\'] = context.getUid()\n
kw[\'omit_input\'] = 1\n
kw[\'node_category_strict_membership\'] = [\'account_type/expense\',\n
\'account_type/income\',\n
\'account_type/asset/receivable\',\n
\'account_type/liability/payable\']\n
kw[\'omit_asset_increase\'] = 1\n
# here, or 0 is to prevent displaying "- 0"\n
return - context.Node_statAccountingBalance(**kw) or 0\n
</string> </value>
......
......@@ -56,11 +56,7 @@
<value> <string>"""Total debit of all accounting transactions related to the project.\n
"""\n
kw[\'project_uid\'] = context.getUid()\n
kw[\'omit_output\'] = 1\n
kw[\'node_category_strict_membership\'] = [\'account_type/expense\',\n
\'account_type/income\',\n
\'account_type/asset/receivable\',\n
\'account_type/liability/payable\']\n
kw[\'omit_asset_decrease\'] = 1\n
return context.Node_statAccountingBalance(**kw)\n
</string> </value>
</item>
......
766
\ No newline at end of file
767
\ 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