Commit 0dd35557 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

erp5_budget: Fix an unused variable warning.

This also fixups b9b14bc7 for the case
where the consumption range is different from consumed budget or engaged
budget (for exemple when we have only engaged movements on a given node).
parent ece3e198
......@@ -134,7 +134,7 @@ class NodeBudgetVariation(BudgetVariation):
consumption_dict = budget_line.getConsumedBudgetDict()
else:
consumption_dict = budget_line.getEngagedBudgetDict()
for consumed_budget_key in budget_line.getConsumedBudgetDict().keys():
for consumed_budget_key in consumption_dict.keys():
for item in consumed_budget_key:
if item.startswith(prefix):
used_node_item_set.add(item)
......
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