fix(compliance): improve compliance

This commit is contained in:
2025-05-27 12:23:50 +00:00
parent 206bef0619
commit be123e41c9
22 changed files with 725 additions and 793 deletions

View File

@ -141,6 +141,7 @@ export class XRechnungDecoder extends UBLBaseDecoder {
}
// Extract business references
const buyerReference = this.getText('//cbc:BuyerReference', this.doc);
const orderReference = this.getText('//cac:OrderReference/cbc:ID', this.doc);
const contractReference = this.getText('//cac:ContractDocumentReference/cbc:ID', this.doc);
const projectReference = this.getText('//cac:ProjectReference/cbc:ID', this.doc);
@ -207,6 +208,7 @@ export class XRechnungDecoder extends UBLBaseDecoder {
version: '1.0.0',
extensions: {
businessReferences: {
buyerReference,
orderReference,
contractReference,
projectReference