Commit 2b782e73 authored by Romain Courteaud's avatar Romain Courteaud

getAggregatedAmountList now expect a list as parameter

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@34801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35a8ba63
...@@ -84,7 +84,7 @@ for transformation_relative_url, variation_list_list in transformation_item_list ...@@ -84,7 +84,7 @@ for transformation_relative_url, variation_list_list in transformation_item_list
base_row = dict(uid=resource.getUid(), variation_text=movement.getVariationText())\n base_row = dict(uid=resource.getUid(), variation_text=movement.getVariationText())\n
\n \n
row_dict_list = []\n row_dict_list = []\n
for amount in transformation.getAggregatedAmountList(movement):\n for amount in transformation.getAggregatedAmountList([movement]):\n
transformed_resource_uid = amount.getResourceUid()\n transformed_resource_uid = amount.getResourceUid()\n
quantity = amount.getQuantity()\n quantity = amount.getQuantity()\n
if transformed_resource_uid is not None and quantity is not None:\n if transformed_resource_uid is not None and quantity is not None:\n
......
190 191
\ 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