From c01bbdedcfd9e368b21f453b3d4c6d68476f1e69 Mon Sep 17 00:00:00 2001 From: Sandeep Somasekharan Date: Tue, 26 Dec 2023 16:16:26 +0530 Subject: [PATCH] update redemption transaction match rules --- casparser/process/cas_detailed.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/casparser/process/cas_detailed.py b/casparser/process/cas_detailed.py index a9256c5..8a6132f 100644 --- a/casparser/process/cas_detailed.py +++ b/casparser/process/cas_detailed.py @@ -98,7 +98,9 @@ def get_transaction_type( else: txn_type = TransactionType.PURCHASE elif units < 0: - if re.search("reversal|rejection|dishonoured|mismatch", description, re.I): + if re.search( + "reversal|rejection|dishonoured|mismatch|insufficient\s+balance", description, re.I + ): txn_type = TransactionType.REVERSAL elif "switch" in description: if "merger" in description: