Commit 190afb20 authored by Jérome Perrin's avatar Jérome Perrin

treat divergence on price as line level divergence. This is dirty (and...

treat divergence on price as line level divergence. This is dirty (and incorrect because it can be a cell), but this will allow to solve price divergence with "legacy" simulation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37004 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 802528df
...@@ -62,7 +62,8 @@ portal_object = context.getPortalObject()\n ...@@ -62,7 +62,8 @@ portal_object = context.getPortalObject()\n
l = []\n l = []\n
\n \n
for divergence in divergence_list:\n for divergence in divergence_list:\n
if divergence.getCollectOrderGroup() != \'line\':\n # XXX price is not built by builder, so collect order group is never set for price level divergence\n
if divergence.getCollectOrderGroup() != \'line\' and divergence.getProperty(\'tested_property\') != \'price\':\n
continue\n continue\n
decision_value = divergence.getProperty(\'decision_value\')\n decision_value = divergence.getProperty(\'decision_value\')\n
decision_title = divergence.getProperty(\'decision_title\', decision_value)\n decision_title = divergence.getProperty(\'decision_title\', decision_value)\n
......
801 802
\ 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