Commit ff887bc0 authored by Titouan Soulard's avatar Titouan Soulard

erp5_trade: FIXUP script?

parent 31000be6
......@@ -79,7 +79,8 @@ for movement_generator in movement_generator_list:
report_element = reduce(lambda t, x: t.setdefault(x, {}), key, report_dict)
report_element["quantity"] = movement_generator.getInventory()
report_element["price"] = movement_generator.getTotalPrice()
# XXX: is that expected? We have two diverging dictionaries: one with total prices and the other with unit prices.
report_element["price"] = movement_generator.getPrice()
# Normal case: iterate over report dictionary and compare with inventory
# When full inventory, take into account all objects in inventory and compare with report
......
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