ubl-invoice icon indicating copy to clipboard operation
ubl-invoice copied to clipboard

Missing class PaymentMandate and missing field PaymentMandate in class PaymentMeans

Open UbiManu opened this issue 2 months ago • 2 comments

Hi, I'm generating invoices with direct debits.

During validation, the validator tells me that the PaymentMandate field is mandatory when a direct debit is specified.

Attached is the error returned by the validator.

{
  "location": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]/*:PaymentMeans[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]",
  "test": "cac:PaymentMandate/cbc:ID",
  "text": "Mandate reference MUST be provided for direct debit."
}

Attached is the ink to the PaymentMandate reference and PaymentMeans references.

UbiManu avatar Oct 29 '25 08:10 UbiManu

@brtdv can you check the PR please ?

UbiManu avatar Nov 03 '25 09:11 UbiManu

Hi @UbiManu, apologies for the delay, i've merged your fix! 🙏

brtdv avatar Nov 04 '25 15:11 brtdv