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 type { ExportFormat } from '../../interfaces/common.js';
// Import specific encoders
// import { XRechnungEncoder } from '../ubl/xrechnung/xrechnung.encoder.js';
import { XRechnungEncoder } from '../ubl/xrechnung/xrechnung.encoder.js';
import { FacturXEncoder } from '../cii/facturx/facturx.encoder.js';
// import { ZUGFeRDEncoder } from '../cii/zugferd/zugferd.encoder.js';
@ -25,8 +25,7 @@ export class EncoderFactory {
case InvoiceFormat.XRECHNUNG:
case 'xrechnung':
// return new XRechnungEncoder();
throw new Error('XRechnung encoder not yet implemented');
return new XRechnungEncoder();
case InvoiceFormat.CII:
// For now, use Factur-X encoder for generic CII