This commit is contained in:
2025-04-03 16:41:10 +00:00
parent 21650f1181
commit a932d68f86
34 changed files with 1265 additions and 2987 deletions

View File

@ -3,7 +3,7 @@ import { InvoiceFormat } from '../../interfaces/common.js';
import { FormatDetector } from '../utils/format.detector.js';
// Import specific decoders
// import { XRechnungDecoder } from '../ubl/xrechnung/xrechnung.decoder.js';
import { XRechnungDecoder } from '../ubl/xrechnung/xrechnung.decoder.js';
import { FacturXDecoder } from '../cii/facturx/facturx.decoder.js';
// import { ZUGFeRDDecoder } from '../cii/zugferd/zugferd.decoder.js';
@ -21,12 +21,8 @@ export class DecoderFactory {
switch (format) {
case InvoiceFormat.UBL:
// return new UBLDecoder(xml);
throw new Error('UBL decoder not yet implemented');
case InvoiceFormat.XRECHNUNG:
// return new XRechnungDecoder(xml);
throw new Error('XRechnung decoder not yet implemented');
return new XRechnungDecoder(xml);
case InvoiceFormat.CII:
// For now, use Factur-X decoder for generic CII