From b3215890d090495ae0fe257068e09deb44d2c20d Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 17 Dec 2025 12:39:30 +0100 Subject: [PATCH] UBL21: add VATEX code --- include/XMLDocument/xmlinvoice_reader.class.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/XMLDocument/xmlinvoice_reader.class.php b/include/XMLDocument/xmlinvoice_reader.class.php index 0cd81cf29..eb94cdb4a 100644 --- a/include/XMLDocument/xmlinvoice_reader.class.php +++ b/include/XMLDocument/xmlinvoice_reader.class.php @@ -171,8 +171,13 @@ class XMLInvoice_Reader extends XML_Reader }else { $row ['name'] =""; } - - $result[] = $row; + if ( isset ($xml->xpath("//cbc:TaxExemptionReasonCode")[$e])) + { + $row['vatex']=$xml->xpath("//cbc:TaxExemptionReasonCode")[$e]; + }else { + $row['vatex']=""; + } + $result[] = $row; } return $result; }