Commit 3c8dbde5 authored by Jérome Perrin's avatar Jérome Perrin

available budget must use engaged budget, not consumed budget


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4cd9723
......@@ -121,7 +121,7 @@ class BudgetCell(Predicate, MetaNode):
"""
Return available budget.
"""
return self.getCurrentBalance() - self.getConsumedBudget()
return self.getCurrentBalance() - self.getEngagedBudget()
security.declareProtected(Permissions.AccessContentsInformation, 'getEngagedBudget')
def getEngagedBudget(self, src__=0):
......
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