update
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user