def get_current_balance(account, d=None): # returns the balance in the specified account at the end of the specified day # (defaults to today if no date is specified) d = date_or_today(d) return get_balance_change(account, "0000-00-00", d) # Change since beginning of time
def __init__(self, name, date=None, from_date=None, fill_char=" ", column_width=9): self.name = name self.date = date_or_today(date) self.from_date = from_date or "0001-01-01" self.fill_char = fill_char self.column_width = column_width