Skip to content

Commit

Permalink
Fix Taxscheme FC/VAT
Browse files Browse the repository at this point in the history
  • Loading branch information
horstoeko committed Sep 17, 2024
1 parent e834cb4 commit 08bad8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/XmlConverterCiiToUbl.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ function ($sellerTradePartyTaxRegNode) {
$this->destination->startElement('cac:PartyTaxScheme');
$this->destination->element('cbc:CompanyID', $sellerTradePartyTaxRegNode->nodeValue);
$this->destination->startElement('cac:TaxScheme');
$this->destination->element('cbc:ID', 'FC');
$this->destination->element('cbc:ID', 'TAX');
$this->destination->endElement();
$this->destination->endElement();
}
Expand Down Expand Up @@ -638,7 +638,7 @@ function ($sellerTradePartyTaxRegNode) {
$this->destination->startElement('cac:PartyTaxScheme');
$this->destination->element('cbc:CompanyID', $sellerTradePartyTaxRegNode->nodeValue);
$this->destination->startElement('cac:TaxScheme');
$this->destination->element('cbc:ID', 'FC');
$this->destination->element('cbc:ID', 'TAX');
$this->destination->endElement();
$this->destination->endElement();
}
Expand Down Expand Up @@ -787,7 +787,7 @@ function ($sellerTradePartyTaxRegNode) {
$this->destination->startElement('cac:PartyTaxScheme');
$this->destination->element('cbc:CompanyID', $sellerTradePartyTaxRegNode->nodeValue);
$this->destination->startElement('cac:TaxScheme');
$this->destination->element('cbc:ID', 'FC');
$this->destination->element('cbc:ID', 'TAX');
$this->destination->endElement();
$this->destination->endElement();
}
Expand Down Expand Up @@ -930,7 +930,7 @@ function ($sellerTradePartyTaxRegNode) {
$this->destination->startElement('cac:PartyTaxScheme');
$this->destination->element('cbc:CompanyID', $sellerTradePartyTaxRegNode->nodeValue);
$this->destination->startElement('cac:TaxScheme');
$this->destination->element('cbc:ID', 'FC');
$this->destination->element('cbc:ID', 'TAX');
$this->destination->endElement();
$this->destination->endElement();
}
Expand Down
8 changes: 4 additions & 4 deletions src/XmlConverterUblToCii.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ function ($invoiceAccountingSupplierPartyTaxSchemeNode) {
}
);
$this->source->whenExists(
'./cac:PartyTaxScheme/cac:TaxScheme/cbc:ID[text() = \'FC\']',
'./cac:PartyTaxScheme/cac:TaxScheme/cbc:ID[text() = \'TAX\']',
$invoiceAccountingSupplierPartyNode,
function ($invoiceAccountingSupplierPartyTaxSchemeNode) {
$this->destination->startElement('ram:SpecifiedTaxRegistration');
Expand Down Expand Up @@ -586,7 +586,7 @@ function ($invoiceAccountingCustomerPartyTaxSchemeNode) {
}
);
$this->source->whenExists(
'./cac:PartyTaxScheme/cac:TaxScheme/cbc:ID[text() = \'FC\']',
'./cac:PartyTaxScheme/cac:TaxScheme/cbc:ID[text() = \'TAX\']',
$invoiceAccountingCustomerPartyNode,
function ($invoiceAccountingCustomerPartyTaxSchemeNode) {
$this->destination->startElement('ram:SpecifiedTaxRegistration');
Expand Down Expand Up @@ -643,7 +643,7 @@ function ($invoiceTaxRepresentativePartyTaxSchemeNode) {
}
);
$this->source->whenExists(
'./cac:PartyTaxScheme/cac:TaxScheme/cbc:ID[text() = \'FC\']',
'./cac:PartyTaxScheme/cac:TaxScheme/cbc:ID[text() = \'TAX\']',
$invoiceTaxRepresentativePartyNode,
function ($invoiceTaxRepresentativePartyTaxSchemeNode) {
$this->destination->startElement('ram:SpecifiedTaxRegistration');
Expand Down Expand Up @@ -906,7 +906,7 @@ function ($invoiceAccountingCustomerPartyTaxSchemeNode) {
}
);
$this->source->whenExists(
'./cac:PartyTaxScheme/cac:TaxScheme/cbc:ID[text() = \'FC\']',
'./cac:PartyTaxScheme/cac:TaxScheme/cbc:ID[text() = \'TAX\']',
$invoicePayeePartyNode,
function ($invoiceAccountingCustomerPartyTaxSchemeNode) {
$this->destination->startElement('ram:SpecifiedTaxRegistration');
Expand Down

0 comments on commit 08bad8a

Please sign in to comment.