Skip to content

feat: add intra-community invoice support#30

Merged
pritambiswal merged 1 commit into
developfrom
feat/intra-community-invoice
Jan 26, 2026
Merged

feat: add intra-community invoice support#30
pritambiswal merged 1 commit into
developfrom
feat/intra-community-invoice

Conversation

@pritambiswal
Copy link
Copy Markdown
Contributor

Problem

PEPPOL invoices with Intra-Community supply (VAT category K) failed Schematron
validation due to missing Delivery element and VATEX exemption reason codes.

Changes

  • BR-IC-10: Add TaxExemptionReasonCode (VATEX-EU-IC) alongside existing
    TaxExemptionReason text for IC invoices
  • BR-IC-11: Add ActualDeliveryDate element using delivery_date or
    posting_date from invoice
  • BR-IC-12: Add DeliveryLocation/Address/Country with country code from
    shipping address or customer address
  • VATEX codes: Add VATEX_CODES and VATEX_REASON_TEXTS constants to
    __init__.py for E, AE, G, O, K categories
  • IC detection: Add _is_intra_community_invoice() to check if any item
    has VAT category K
  • Delivery element: Add _add_delivery() method that triggers for IC
    invoices or when shipping address is present

Documentation

A new "Intra-Community (IC) Invoices" section has been added to the README
documenting the setup and automatic handling of IC invoices.

@pritambiswal pritambiswal merged commit defc541 into develop Jan 26, 2026
4 checks passed
@pritambiswal pritambiswal deleted the feat/intra-community-invoice branch February 4, 2026 22:33
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