Skip to content

Fix CAMT Counterparty parsing#571

Open
abid76 wants to merge 1 commit into
nemiah:masterfrom
abid76:feature/camt-parse-related-parties
Open

Fix CAMT Counterparty parsing#571
abid76 wants to merge 1 commit into
nemiah:masterfrom
abid76:feature/camt-parse-related-parties

Conversation

@abid76

@abid76 abid76 commented Jul 7, 2026

Copy link
Copy Markdown

When both, creditor and debitor, are given in XML, creditor is chosen as counterparty, regardless if it's an incoming or outgoing transaction. As a result, the wrong counterparty is stored in the name and bank_code field after CAMT parsing of Commerzbank incoming transactions.

Summary

  • Select the correct counterparty (name, IBAN, BIC) in CAMT parsing based on the credit/debit indicator: debtor for incoming (CRDT), creditor for outgoing (DBIT)
  • Add unit tests with real-world CAMT fixtures from Fyrst Bank and Commerzbank (camt.052.001.08)

Test plan

  • ./vendor/bin/phpunit Tests/Unit/CAMT/CAMTCounterpartyTest.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant