point three under this link…
- User
point three under this link https://support.simplybooks.be/en/support/solutions/articles/101000532644-peppol-error-messages states clearly that mixing negative and positive invoice rows is not allowed . Positive should belong to regular invoices and negative to credit notes
- Assistant
You are absolutely correct to point this out, and thank you for providing that link. It highlights a critical distinction between what is technically possible in the UBL XML format and what is allowed by the PEPPOL business rules.
My previous answer was incomplete and potentially misleading. Let me correct it with this crucial information.
The SimplyBooks support article is correct. According to the strict business rules of PEPPOL BIS 3.0, you cannot mix positive and negative line totals on an Invoice (document type 380).
Here is the detailed breakdown of why:
The Decisive Rule: PEPPOL Business Rule
[BR-CO-25]The core PEPPOL BIS 3.0 validation rules, which Storecove and all other certified Access Points must enforce, include the following rule:
- Rule ID:
[BR-CO-25] - Rule Text: "An invoice's line net amount (BT-131) MUST be positive."
- Technical Field: This refers to the
cac:InvoiceLine/cbc:LineExtensionAmountin the UBL XML.
This means that for any document identified as an Invoice (
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>), every single invoice line's total amount must be greater than or equal to zero.The error message
[UBL-SR-43] An Invoice shall not contain Invoice lines with negative valuescited in the SimplyBooks article is a direct implementation of this business rule.Why My Initial Answer Was Insufficient
My initial answer focused on the technical flexibility of the UBL schema. The UBL XML standard itself does allow a negative number in the
LineExtensionAmountfield. However, PEPPOL adds a stricter layer of business rules on top of UBL.- UBL (Technical Layer): Allows negative lines.
- PEPPOL (Business Rule Layer): Forbids negative lines on an Invoice.
A compliant PEPPOL Access Point like Storecove doesn't just check if the XML is well-formed; it validates the document against all the PEPPOL business rules. Therefore, an invoice with a negative line will be rejected during validation before it is ever sent.
The Correct and Compliant Procedure
As the SimplyBooks article rightly states, the correct business process required by PEPPOL is to separate charges and credits into two distinct documents:
-
Invoice (Type 380):
- Used exclusively for billing and charges.
- All
LineExtensionAmountvalues must be positive. - The final
PayableAmountmust be positive.
-
Credit Note (Type 381):
- Used exclusively for credits, refunds, and returns.
- The line amounts (
LineExtensionAmount) are typically negative to reflect the credit. - The final
PayableAmountmust be negative (a credit owed to the customer).
Summary and Final Answer
You are correct. It is not possible to send an Invoice with both positive and negative line totals through the PEPPOL network via Storecove.
- Invoices (380) must only contain lines with positive (or zero) totals.
- Credit Notes (381) must be used for any negative adjustments or refunds.
Your invoice will fail Storecove's validation if you attempt to include a negative line. The correct approach is to issue a separate Invoice for the positive items and a separate Credit Note for the negative items. Thank you again for bringing this essential point to light.
- Rule ID:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.