changed config

This commit is contained in:
2026-03-12 12:16:19 +05:30
parent 6ed5057057
commit fca43e8b81
5 changed files with 12 additions and 25 deletions

View File

@@ -62,23 +62,13 @@ class NEFTDataMapper:
@staticmethod
def process_status(status: str) -> str:
"""
Normalize status field.
- If contains 'processed' (case-insensitive) -> 'Processed'
- If equals 'PROS' (common NEFT code) -> 'Processed'
- If equals 'WAIT' -> 'Waiting'
- Else return original status (trimmed)
"""
try:
if not status:
return ''
s = status.strip()
sl = s.lower()
if 'processed' in sl or s.upper() == 'PROS':
return 'PROCESSED'
if s.upper() == 'WAIT':
return 'Waiting'
s = status.strip()
if s == 'PROS':
return 'PROCESSED'
return s
except Exception as e:
logger.error(f"Error processing status: {e}")