Commit 46450ae5 authored by Jérome Perrin's avatar Jérome Perrin

When calculating the remaining price, only consider payable / receivable

accounts that are used on this invoice (ie. if another account is used in a
related tansaction, ignore this amount).



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13604 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 76b60c57
......@@ -168,6 +168,7 @@ for related_transaction in context.getCausalityRelatedValueList(\n
\n
if node_value is not None and \\\n
node_value.getAccountTypeId() in (\'payable\', \'receivable\'):\n
if node_value in accounts_in_context:\n
key = (node_value.getRelativeUrl(), mirror_section)\n
total_payable_price_per_node_section[key] =\\\n
total_payable_price_per_node_section.get(key, 0) + amount\n
......
224
\ No newline at end of file
225
\ 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