This commit is contained in:
2025-05-28 08:40:26 +00:00
parent e4c762658d
commit 32f8bc192a
24 changed files with 3350 additions and 5416 deletions

View File

@ -11,9 +11,10 @@ export class ZUGFeRDV1Decoder extends CIIBaseDecoder {
/**
* Constructor
* @param xml XML string to decode
* @param skipValidation Whether to skip EN16931 validation
*/
constructor(xml: string) {
super(xml);
constructor(xml: string, skipValidation: boolean = false) {
super(xml, skipValidation);
// Override namespaces for ZUGFeRD v1
this.namespaces = {
rsm: ZUGFERD_V1_NAMESPACES.RSM,