This commit is contained in:
2025-04-03 13:26:27 +00:00
parent 05a2edc70c
commit 3e8b5c2869
13 changed files with 704 additions and 131 deletions

View File

@ -9,7 +9,7 @@ import {
PDFString,
} from 'pdf-lib';
import { FacturXEncoder } from './formats/facturx.encoder.js';
import { XInvoiceEncoder } from './formats/xinvoice.encoder.js';
import { XInvoiceEncoder } from './formats/xrechnung.encoder.js';
import { DecoderFactory } from './formats/decoder.factory.js';
import { BaseDecoder } from './formats/base.decoder.js';
import { ValidatorFactory } from './formats/validator.factory.js';
@ -450,18 +450,10 @@ export class XInvoice implements plugins.tsclass.business.ILetter {
filename = 'factur-x.xml';
description = 'Factur-X XML Invoice';
break;
case 'zugferd':
filename = 'zugferd.xml';
description = 'ZUGFeRD XML Invoice';
break;
case 'xrechnung':
filename = 'xrechnung.xml';
description = 'XRechnung XML Invoice';
break;
case 'ubl':
filename = 'ubl.xml';
description = 'UBL XML Invoice';
break;
}
// Make sure filename is lowercase (as required by documentation)