diff --git a/CHANGELOG.md b/CHANGELOG.md index 864239c..f603aed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [0.15.0] + +### Changed + +- Bug fixed in `VCFParser` to parse all transaction blocks present in a VCF feed data. + ## [0.14.0] ### Changed diff --git a/card_data_parsers/parsers/vcf_parser.py b/card_data_parsers/parsers/vcf_parser.py index fde96a7..b45788d 100644 --- a/card_data_parsers/parsers/vcf_parser.py +++ b/card_data_parsers/parsers/vcf_parser.py @@ -214,27 +214,22 @@ def __extract_transactions_from_block_after_index(start_index, lines, account_nu car_rental_transactions_block_start = index + 1 if line[0].strip() == '9' and (line[4].strip() == '02' or line[4].strip() == '2') and car_rental_transactions_block_end == -1: car_rental_transactions_block_end = index - 1 - end_index = index if line[0].strip() == '8' and (line[4].strip() == '09' or line[4].strip() == '9') and lodging_transactions_block_start == -1: lodging_transactions_block_start = index + 1 if line[0].strip() == '9' and (line[4].strip() == '09' or line[4].strip() == '9') and lodging_transactions_block_end == -1: lodging_transactions_block_end = index - 1 - end_index = index if line[0].strip() == '8' and line[4].strip() == '14' and airline_booking_transactions_block_start == -1: airline_booking_transactions_block_start = index + 1 if line[0].strip() == '9' and line[4].strip() == '14' and airline_booking_transactions_block_end == -1: airline_booking_transactions_block_end = index - 1 - end_index = index if line[0].strip() == '8' and line[4].strip() == '17' and fleet_service_transactions_block_start == -1: fleet_service_transactions_block_start = index + 1 if line[0].strip() == '9' and line[4].strip() == '17' and fleet_service_transactions_block_end == -1: fleet_service_transactions_block_end = index - 1 - end_index = index if line[0].strip() == '8' and line[4].strip() == '18' and fleet_product_transactions_block_start == -1: fleet_product_transactions_block_start = index + 1 if line[0].strip() == '9' and line[4].strip() == '18' and fleet_product_transactions_block_end == -1: fleet_product_transactions_block_end = index - 1 - end_index = index card_transactions = lines[card_transactions_block_start: card_transactions_block_end + 1] car_rental_transactions = lines[car_rental_transactions_block_start: diff --git a/setup.py b/setup.py index 283ad10..8c66fc4 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='card_data_parsers', - version='0.14.0', + version='0.15.0', author='Siva Narayanan', author_email='siva@fyle.in', url='https://www.fylehq.com',