Skip to content

[Bug]: [DE] E-Document for Germany - XRechnung Export - Skip not supported document attachment (Mime Type) #29823

@pri-kise

Description

@pri-kise

Describe the issue

Currently all document attachments are added to the XRechnung xml although the mime type isn't supported according to https://docs.peppol.eu/poacc/billing/3.0/codelist/MimeCode/

Additionally the mime type is empty for the not mapped (not supported) document types.

Expected behavior

We should only export document attachments with a extension that maps to a mime type that is supported.

Steps to reproduce

Create a invoice with a not supported document type like word or txt

Additional context

See: https://docs.peppol.eu/poacc/billing/3.0/codelist/MimeCode/

I suggest to skip document attachments with not valid document type.

This issue is a follow-up to the issue #29788 where I added some tests for Document Attachment and Service

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaapprovedThe issue is approved

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions