Skip to content

Commit

Permalink
Fix AccountingCustomerParty ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Jul 17, 2024
1 parent cfe2d0d commit 0185ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XmlConverterUblToCii.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ function ($invoiceAccountingSupplierPartyTaxSchemeNode) {
$docRootElement,
function ($invoiceAccountingCustomerPartyNode) {
$this->destination->startElement('ram:BuyerTradeParty');
$this->destination->element('ram:ID', $this->source->queryValue('./cbc:ID[not(@schemeID)]', $invoiceAccountingCustomerPartyNode));
$this->destination->element('ram:ID', $this->source->queryValue('./cac:PartyIdentification/cbc:ID[not(@schemeID)]', $invoiceAccountingCustomerPartyNode));
$this->source->queryAll('./cac:PartyIdentification/cbc:ID[@schemeID != \'\' and @schemeID != \'SEPA\']', $invoiceAccountingCustomerPartyNode)->forEach(
function ($invoiceAccountingCustomerPartyIdNode) {
$this->destination->elementWithAttribute('ram:GlobalID', $invoiceAccountingCustomerPartyIdNode->nodeValue, 'schemeID', $invoiceAccountingCustomerPartyIdNode->getAttribute('schemeID'));
Expand Down

0 comments on commit 0185ebe

Please sign in to comment.