[IMP] account_statement_base_import : add the posibility to set the starting and ending balance

This commit is contained in:
Sebastien Beau
2013-12-04 14:30:34 +01:00
parent e33044d520
commit 3c3b653950
2 changed files with 25 additions and 4 deletions

View File

@@ -49,6 +49,8 @@ class BankStatementImportParser(object):
self.result_row_list = None
# The file buffer on which to work on
self.filebuffer = None
self.balance_start = None
self.balance_end = None
@classmethod
def parser_for(cls, parser_name):
@@ -150,6 +152,22 @@ class BankStatementImportParser(object):
self._post(*args, **kwargs)
return self.result_row_list
def get_start_balance(self, *args, **kwargs):
"""
This is called by the importation method to set the balance start
amount in the bank statement.
return: float of the balance start (self.balance_start)
"""
return self.balance_start
def get_end_balance(self, *args, **kwargs):
"""
This is called by the importation method to set the balance end
amount in the bank statement.
return: float of the balance end (self.balance_end)
"""
return self.balance_end
def itersubclasses(cls, _seen=None):
"""