c52 parser method

This commit is contained in:
Luc De Meyer 2019-12-18 21:23:15 +01:00
parent 0c93ecbcd0
commit e7cbaeac4f

View File

@ -128,6 +128,9 @@ class EbicsFile(models.Model):
'camt.xxx.cfonb120.stm': 'camt.xxx.cfonb120.stm':
{'process': self._process_cfonb120, {'process': self._process_cfonb120,
'unlink': self._unlink_cfonb120}, 'unlink': self._unlink_cfonb120},
'camt.052.001.02.stm':
{'process': self._process_camt052,
'unlink': self._unlink_camt052},
'camt.053.001.02.stm': 'camt.053.001.02.stm':
{'process': self._process_camt053, {'process': self._process_camt053,
'unlink': self._unlink_camt053}, 'unlink': self._unlink_camt053},
@ -205,6 +208,20 @@ class EbicsFile(models.Model):
""" """
pass pass
@staticmethod
def _process_camt052(self):
import_module = 'account_bank_statement_import_camt_oca'
self._check_import_module(import_module)
return self._process_camt053(self)
@staticmethod
def _unlink_camt052(self):
"""
Placeholder for camt052 specific actions before removing the
EBICS data file and its related bank statements.
"""
pass
@staticmethod @staticmethod
def _process_camt053(self): def _process_camt053(self):
import_module = 'account_bank_statement_import_camt%' import_module = 'account_bank_statement_import_camt%'