diff --git a/account_banking/banking_import_transaction.py b/account_banking/banking_import_transaction.py index 61d739c91..a5f194575 100644 --- a/account_banking/banking_import_transaction.py +++ b/account_banking/banking_import_transaction.py @@ -77,7 +77,7 @@ class banking_import_transaction(osv.osv): ('type', '=', 'in_invoice'), ('partner_id', '=', account_info.bank_partner_id.id), ('company_id', '=', account_info.company_id.id), - ('date_invoice', '=', trans.effective_date), + ('date_invoice', '=', trans.execution_date), ('reference', '=', reference), ('amount_total', '=', amount), ] @@ -104,7 +104,7 @@ class banking_import_transaction(osv.osv): period_id = period_id, journal_id = account_info.invoice_journal_id.id, account_id = account_info.bank_partner_id.property_account_payable.id, - date_invoice = trans.effective_date, + date_invoice = trans.execution_date, reference_type = 'none', reference = reference, name = trans.reference or trans.message, @@ -1218,7 +1218,7 @@ class banking_import_transaction(osv.osv): # Link accounting period period_id = get_period( self.pool, cr, uid, - str2date(transaction.effective_date,'%Y-%m-%d'), company, + str2date(transaction.execution_date, '%Y-%m-%d'), company, results['log']) if not period_id: results['trans_skipped_cnt'] += 1 @@ -1391,7 +1391,7 @@ class banking_import_transaction(osv.osv): if not transaction.statement_line_id: values.update(dict( name = '%s.%s' % (transaction.statement, transaction.transaction), - date = transaction.effective_date, + date = transaction.execution_date, amount = transaction.transferred_amount, statement_id = transaction.statement_id.id, note = transaction.message, @@ -1590,8 +1590,8 @@ class banking_import_transaction(osv.osv): 'reference': fields.char('reference', size=1024), 'local_account': fields.char('local_account', size=24), 'local_currency': fields.char('local_currency', size=16), - 'execution_date': fields.date('execution_date'), - 'effective_date': fields.date('effective_date'), + 'execution_date': fields.date('Posted date'), + 'effective_date': fields.date('Value date'), 'remote_account': fields.char('remote_account', size=24), 'remote_currency': fields.char('remote_currency', size=16), 'exchange_rate': fields.float('exchange_rate'), diff --git a/account_banking/parsers/models.py b/account_banking/parsers/models.py index 960bed9b8..6d69d0509 100644 --- a/account_banking/parsers/models.py +++ b/account_banking/parsers/models.py @@ -86,10 +86,10 @@ class mem_bank_transaction(object): # The currency the bank used to process the transferred amount 'execution_date', - # The requested execution date of the action - order date if you like + # The posted date of the action 'effective_date', - # The real execution date of the action + # The value date of the action 'remote_account', # The account of the other party diff --git a/account_banking_nl_abnamro/abnamro.py b/account_banking_nl_abnamro/abnamro.py index b7f27357e..0644172f5 100644 --- a/account_banking_nl_abnamro/abnamro.py +++ b/account_banking_nl_abnamro/abnamro.py @@ -68,7 +68,7 @@ class transaction_message(object): self.execution_date = str2date(self.date, '%Y%m%d') self.effective_date = str2date(self.date, '%Y%m%d') # Set statement_id based on week number - self.statement_id = self.effective_date.strftime('%Yw%W') + self.statement_id = self.execution_date.strftime('%Yw%W') self.id = str(subno).zfill(4) class transaction(models.mem_bank_transaction): @@ -368,7 +368,7 @@ each file covers a period of two weeks. msg = transaction_message(line, subno) if not statement_id: statement_id = self.get_unique_statement_id( - cr, msg.effective_date.strftime('%Yw%W')) + cr, msg.execution_date.strftime('%Yw%W')) msg.statement_id = statement_id if stmnt: stmnt.import_transaction(msg) diff --git a/account_banking_nl_ing/ing.py b/account_banking_nl_ing/ing.py index 1b159f9aa..16be1512c 100644 --- a/account_banking_nl_ing/ing.py +++ b/account_banking_nl_ing/ing.py @@ -224,7 +224,7 @@ Statements. msg = transaction_message(line, subno) if not statement_id: statement_id = self.get_unique_statement_id( - cr, msg.effective_date.strftime('%Yw%W')) + cr, msg.execution_date.strftime('%Yw%W')) msg.statement_id = statement_id if stmnt: stmnt.import_transaction(msg) diff --git a/account_banking_nl_triodos/triodos.py b/account_banking_nl_triodos/triodos.py index d60c1f9cc..5e12d3f48 100644 --- a/account_banking_nl_triodos/triodos.py +++ b/account_banking_nl_triodos/triodos.py @@ -212,7 +212,7 @@ Statements. msg = transaction_message(line, subno) if not statement_id: statement_id = self.get_unique_statement_id( - cr, msg.effective_date.strftime('%Yw%W')) + cr, msg.execution_date.strftime('%Yw%W')) msg.statement_id = statement_id if stmnt: stmnt.import_transaction(msg)