diff --git a/modules/societegenerale/module.py b/modules/societegenerale/module.py index 81180730bd4f7b4e876252a70972e660588a46bc..2993d255e545f5892d65ff019d64677dd8e9057f 100644 --- a/modules/societegenerale/module.py +++ b/modules/societegenerale/module.py @@ -162,6 +162,14 @@ def execute_transfer(self, transfer, **params): def transfer_check_exec_date(self, old_exec_date, new_exec_date): return old_exec_date <= new_exec_date <= old_exec_date + timedelta(days=4) + def transfer_check_account_id(self, old_account_id, new_account_id): + if old_account_id != new_account_id: + # in this case, old_account_id is the "identifiantPrestation" + # which is like 'XXXXXXXXXXXXXXXX' + # we only need to check this part of the old_account_id + old_account_id = old_account_id[11:-5] + return old_account_id == new_account_id + def iter_resources(self, objs, split_path): if Account in objs: self._restrict_level(split_path)