feat: account code extraction with zero-padding

This commit is contained in:
Oliver Hofmann
2026-06-02 21:00:21 +02:00
parent 54ee01c475
commit e938e90284
2 changed files with 33 additions and 0 deletions
+10
View File
@@ -14,5 +14,15 @@ def parse_options(options_str):
return options
def get_account_code(options):
km = options.get('KmManagment', 'Default')
if km == 'Default' or not km.startswith('MG'):
return None
code = km[2:]
if not code.isdigit():
return None
return code.zfill(8)
if __name__ == '__main__':
pass