Skip to content

Only only the first line from RemittanceInformation in get_transactions() is given. #6

@ulrichkamp61

Description

@ulrichkamp61

In the resulting transactions dict, which results from get_transactions(), the RemittanceInformation only gives the first line from the camt file. Sometimes - especially in international transcactions or in transactions from banks, which does not yet fully support camt.053 - more lines are given in the camt file. Often theses lines are needed to fully understand the transaction.

I added

"RemittanceInformationFull": (
	" ".join( rinfo.text.strip() for rinfo in tx_detail.findall(".//RmtInf//Ustrd", self.namespaces ) if rinfo.text )
	if tx_detail.findall(".//RmtInf//Ustrd", self.namespaces) is not None
	else None
),

to the function _extract_transaction_details(self, tx_detail) in camtparser.py to keep update stabilty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions