Commit 506a1e47 authored by Jérome Perrin's avatar Jérome Perrin Committed by Cédric Le Ninivin

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 190d5092
...@@ -134,7 +134,7 @@ class NodeBudgetVariation(BudgetVariation): ...@@ -134,7 +134,7 @@ class NodeBudgetVariation(BudgetVariation):
consumption_dict = budget_line.getConsumedBudgetDict() consumption_dict = budget_line.getConsumedBudgetDict()
else: else:
consumption_dict = budget_line.getEngagedBudgetDict() 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: for item in consumed_budget_key:
if item.startswith(prefix): if item.startswith(prefix):
used_node_item_set.add(item) 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