Rename balance to flow.
This commit is contained in:
parent
545de91d46
commit
911a5925b7
@ -67,8 +67,11 @@ class Account(db.Model):
|
|||||||
).one()
|
).one()
|
||||||
|
|
||||||
def balance(self, begin, end):
|
def balance(self, begin, end):
|
||||||
"""Return the balance for a specific time period."""
|
"""Return the flow for a specific time period."""
|
||||||
# TODO Alexis Lahouze 2017-05-04 Rename to "flow" or "cash flow"
|
return self.flow(begin, end)
|
||||||
|
|
||||||
|
def flow(self, begin, end):
|
||||||
|
"""Return the flow for a specific time period."""
|
||||||
query = db.session.query(
|
query = db.session.query(
|
||||||
db.func.sum(
|
db.func.sum(
|
||||||
db.case(
|
db.case(
|
||||||
|
Loading…
Reference in New Issue
Block a user