ubl-invoice
ubl-invoice copied to clipboard
Missing class PaymentMandate and missing field PaymentMandate in class PaymentMeans
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.
@brtdv can you check the PR please ?
Hi @UbiManu, apologies for the delay, i've merged your fix! 🙏