Commit ac4908e2 authored by Łukasz Nowak's avatar Łukasz Nowak

- use new API to updateAggregatedAmountList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26693 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16166dca
...@@ -54,25 +54,15 @@ ...@@ -54,25 +54,15 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>delivery = context\n <value> <string>delivery = context\n
\n
# XXX begin\n
portal_type_movement_list_mapping = {\n
\'Purchase Invoice Transaction\' : \'Invoice Line\',\n
\'Purchase Order\' : \'Purchase Order Line\',\n
\'Sale Invoice Transaction\' : \'Invoice Line\',\n
\'Sale Order\' : \'Sale Order Line\',\n
}\n
destination_portal_type = portal_type_movement_list_mapping[\n
delivery.getPortalType()]\n
trade_condition_portal_type_list = (\'Sale Trade Condition\',\n trade_condition_portal_type_list = (\'Sale Trade Condition\',\n
\'Purchase Trade Condition\')\n \'Purchase Trade Condition\')\n
# XXX end\n
\n \n
trade_condition = delivery.getSpecialiseValue(portal_type=\n trade_condition = delivery.getSpecialiseValue(portal_type=\n
trade_condition_portal_type_list )\n trade_condition_portal_type_list)\n
\n \n
if trade_condition is not None:\n if trade_condition is not None:\n
trade_condition.updateAggregatedAmountList(delivery,destination_portal_type)\n return trade_condition.updateAggregatedAmountList(delivery)\n
return []\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -113,11 +103,8 @@ if trade_condition is not None:\n ...@@ -113,11 +103,8 @@ if trade_condition is not None:\n
<string>kwargs</string> <string>kwargs</string>
<string>context</string> <string>context</string>
<string>delivery</string> <string>delivery</string>
<string>portal_type_movement_list_mapping</string>
<string>_getitem_</string>
<string>_getattr_</string>
<string>destination_portal_type</string>
<string>trade_condition_portal_type_list</string> <string>trade_condition_portal_type_list</string>
<string>_getattr_</string>
<string>trade_condition</string> <string>trade_condition</string>
<string>None</string> <string>None</string>
</tuple> </tuple>
......
160 161
\ 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