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

@ -267,7 +267,7 @@ export class EInvoice implements TInvoice {
}
// Get appropriate decoder
const decoder = DecoderFactory.createDecoder(xmlString);
const decoder = DecoderFactory.createDecoder(xmlString, !this.options.validateOnLoad);
const invoice = await decoder.decode();
// Map the decoded invoice to our properties
@ -528,6 +528,14 @@ export class EInvoice implements TInvoice {
return this.detectedFormat;
}
/**
* Gets the original XML string
* @returns The XML string
*/
public getXml(): string {
return this.xmlString;
}
/**
* Calculates the total net amount
*/