Skip to content

Commit

Permalink
XmlConverterCiiToUbl -> Fix document type 916
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Nov 8, 2024
1 parent 93efe40 commit a7161b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/XmlConverterCiiToUbl.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ function ($additionalReferencedDocumentNode) {
function () use ($additionalReferencedDocumentNode) {
$this->destination->startElement('cac:AdditionalDocumentReference');
$this->destination->element('cbc:ID', $this->source->queryValue('./ram:IssuerAssignedID', $additionalReferencedDocumentNode));
$this->destination->element('cbc:DocumentTypeCode', $this->source->queryValue('./ram:TypeCode', $additionalReferencedDocumentNode));
if ($this->source->queryValue('./ram:TypeCode', $additionalReferencedDocumentNode) === "50" || $this->source->queryValue('./ram:TypeCode', $additionalReferencedDocumentNode) === "130") {
$this->destination->element('cbc:DocumentTypeCode', $this->source->queryValue('./ram:TypeCode', $additionalReferencedDocumentNode));
}
$this->destination->element('cbc:DocumentDescription', $this->source->queryValue('./ram:Name', $additionalReferencedDocumentNode));
$this->source->whenExists(
'./ram:AttachmentBinaryObject',
Expand Down

0 comments on commit a7161b9

Please sign in to comment.