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

It's important that Transfer_getPaymentTransactionList produces a stable

ordering


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13286 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b996b509
...@@ -76,12 +76,14 @@ def getNumordre(tr):\n ...@@ -76,12 +76,14 @@ def getNumordre(tr):\n
return numordre_cache[tr]\n return numordre_cache[tr]\n
except KeyError:\n except KeyError:\n
sort_key = (tr.getIntIndex(),\n sort_key = (tr.getIntIndex(),\n
tr.getSourceSectionTitle())\n tr.getDestinationSectionTitle(),\n
tr.getSourceReference() )\n
if not sort_key[0]:\n if not sort_key[0]:\n
causality = tr.getCausalityValue()\n causality = tr.getCausalityValue()\n
if causality is not None:\n if causality is not None:\n
sort_key = (causality.getIntIndex(),\n sort_key = (causality.getIntIndex(),\n
causality.getSourceSectionTitle())\n causality.getSourceSectionTitle(),\n
causality.getDestinationReference())\n
return numordre_cache.setdefault(tr, tr.getProperty(\'noordre\',\n return numordre_cache.setdefault(tr, tr.getProperty(\'noordre\',\n
sort_key))\n sort_key))\n
\n \n
......
86 87
\ 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