Skip to content

fix: match buyer company by tax ID instead of name#37

Merged
pritambiswal merged 1 commit intoprilk-consulting:developfrom
maasanto:fix-buyer-tax-id-matching
Feb 13, 2026
Merged

fix: match buyer company by tax ID instead of name#37
pritambiswal merged 1 commit intoprilk-consulting:developfrom
maasanto:fix-buyer-tax-id-matching

Conversation

@maasanto
Copy link

@maasanto maasanto commented Feb 12, 2026

parse_peppol_buyer matched the company by name only. This fails when the supplier's invoice contains a typo or formatting difference in the company name (e.g. "Dunder Miflin" instead of "Dunder Mifflins").

Now matches by PartyTaxScheme/CompanyID (tax ID) first, falling back to name matching. This is consistent with how parse_peppol_seller already works for suppliers.

Setup

For this to work, the Company must have its tax_id field set.

@maasanto maasanto marked this pull request as ready for review February 13, 2026 08:47
@pritambiswal pritambiswal merged commit 2838814 into prilk-consulting:develop Feb 13, 2026
4 checks passed
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.

2 participants