Commit dae8e421 authored by Jérome Perrin's avatar Jérome Perrin

propagate parameters to getCurrentBalance, this is usefull for at_date or to_date


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c03b2f4
...@@ -94,11 +94,11 @@ class BudgetCell(Predicate, MetaNode): ...@@ -94,11 +94,11 @@ class BudgetCell(Predicate, MetaNode):
return self.portal_simulation.getCurrentInventory(**kw) return self.portal_simulation.getCurrentInventory(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentBalance') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentBalance')
def getCurrentBalance(self): def getCurrentBalance(self, **kw):
""" """
Returns current balance Returns current balance
""" """
return self.getQuantity(0.0) + self.getCurrentInventory() return self.getQuantity(0.0) + self.getCurrentInventory(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getConsumedBudget') security.declareProtected(Permissions.AccessContentsInformation, 'getConsumedBudget')
def getConsumedBudget(self, src__=0): def getConsumedBudget(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