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

ignore related transaction in deleted or cancelled state for

AccountingTransaction_getCausalityGroupedAccountingTransactionList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13236 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a37d4265
......@@ -82,6 +82,7 @@ for accounting_transaction in [context] + context.getCausalityValueList(\n
accounting_transaction_set[accounting_transaction] = 1\n
for related_causality in accounting_transaction.getCausalityRelatedValueList(\n
portal_type=accounting_transaction_type_list):\n
if related_causality.getSimulationState() not in (\'cancelled\', \'deleted\'):\n
accounting_transaction_set[related_causality] = 1\n
\n
return accounting_transaction_set.keys()\n
......
88
\ No newline at end of file
89
\ 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