Processing incoming peppol invoice: Could not find a unit with UNECE code "EA"

Hi there,

today I upgraded to 7.8, installed and activated the edocument_peppol_peppyrus module, added the relevant identifiers to my company, and the peppyrus API key to the configuration.

I had one incoming invoice in peppyrus (from Proximus), which was downloaded to tryton.

But then when I try to process it, I receive the following error message:

Could not find a unit with UNECE code “EA”.

And indeed, in the xml file, I have these:

    <cbc:InvoicedQuantity unitCode="EA">1.00</cbc:InvoicedQuantity>

I searched a bit, and EA is a valid unit code in the UNECE code list.

Am I missing some configuration step ?

Thanks

The codes come from this listing: Peppol BIS Billing 3.0 - May 2025 Release | Rules
Tryton does not have all the unit so you must create the missing unit when you receive an invoice which contains a missing code.

I have also found that some suppliers are using the code EA (aka each) and not C62 (aka unit). So you have to create a duplicate of the “unit” unit of measure with the code EA.

thanks, that worked, but now I have another error:

Could not find tax for:
<cac:ClassifiedTaxCategory xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2">
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>21.00</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:ClassifiedTaxCategory>

If needed I’m willing to document all these configuration steps so that other people can just follow a guide and be configured correctly for most cases. Or maybe integrate them in a specific peppol module, but I’m not sure that that kind of data needs to be in the code. (but account and taxes templates are already in the code, so maybe those can be too)

This would require Add UNECE code to Belgian taxes (!2872) · Merge requests · Tryton / Tryton · GitLab
or update the taxes to have the proper codes.

1 Like

great, thanks, with that I know what I have to override while waiting for it to land.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.