You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting from UBL to CII, I noticed that the XML element <cac:AdditionalItemProperty> is not read. The following script is affected: src/XmlConverterUblToCii.php
If I add following at line 272 from the script src/XmlConverterUblToCii.php, then it works as expected:
$this->source->queryAll('./cac:Item/cac:AdditionalItemProperty', $invoiceLineNode)->forEach(
function ($invoiceLineAdditionalItemPropertyNode) {
$this->destination->element('ram:Description', $this->source->queryValue('./cbc:Name', $invoiceLineAdditionalItemPropertyNode));
$this->destination->element('ram:Value', $this->source->queryValue('./cbc:Value', $invoiceLineAdditionalItemPropertyNode));
},
function () {
// Do nothing here
},
function () {
// Do nothing here
},
function () {
$this->destination->startElement('ram:ApplicableProductCharacteristic');
},
function () {
$this->destination->endElement();
}
);
Many, many thanks for your very detailed request. If you like, you are welcome to send me a PullRequest. If this is not possible for you, then I will have to find the time to do so when the opportunity arises.
Thanks for the useful tool. It saves me work. ;-)
Describe the feature
When converting from UBL to CII, I noticed that the XML element
<cac:AdditionalItemProperty>
is not read. The following script is affected: src/XmlConverterUblToCii.phpThe counterpart contains the reconversion:
zugferdublbridge/src/XmlConverterCiiToUbl.php
Line 1559 in accf3c8
It would be nice if this could be expanded at this point.
Expected behavior
From UBL:
To CII:
Sample Code
If I add following at line 272 from the script src/XmlConverterUblToCii.php, then it works as expected:
zugferdublbridge/src/XmlConverterUblToCii.php
Line 272 in accf3c8
The text was updated successfully, but these errors were encountered: