Commit 532e9a72 authored by Jérome Perrin's avatar Jérome Perrin

if account_id is passed explitly, don't check the account's account_type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17187 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77001a5d
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -150,8 +147,9 @@ for is_source, line in getIsSourceMovementItemList(context):\n ...@@ -150,8 +147,9 @@ for is_source, line in getIsSourceMovementItemList(context):\n
if at_date is None and line.getGroupingReference():\n if at_date is None and line.getGroupingReference():\n
continue\n continue\n
\n \n
if node_value is not None and \\\n if node_value is not None and (\n
node_value.getAccountTypeId() in (\'payable\', \'receivable\'):\n node_value.getAccountTypeId() in (\'payable\', \'receivable\')\n
or (account_id is not None and node_value.getId() in account_id)):\n
if account_id is not None and node_value.getId() not in account_id:\n if account_id is not None and node_value.getId() not in account_id:\n
continue\n continue\n
key = (node_value.getRelativeUrl(), mirror_section)\n key = (node_value.getRelativeUrl(), mirror_section)\n
...@@ -318,6 +316,7 @@ else:\n ...@@ -318,6 +316,7 @@ else:\n
<string>date</string> <string>date</string>
<string>total_amount</string> <string>total_amount</string>
<string>node</string> <string>node</string>
<string>_inplacevar_</string>
<string>sum</string> <string>sum</string>
</tuple> </tuple>
</value> </value>
......
445 446
\ 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