UBL21: INVOICE Info : add vatex

This commit is contained in:
sparkyx 2025-12-17 11:24:52 +01:00
parent c12dbb001b
commit 163400769c
2 changed files with 8 additions and 4 deletions

View file

@ -205,10 +205,13 @@ class XMLCreditNote_Reader extends XML_Reader
$row ['name'] =$xml->xpath("//cac:CreditNoteLine/cac:Item/cbc:Name")[$e]."";
else
$row['name']="";
/**
* @TODODNY
* Implémenter les allowances
*/
if ( isset ($xml->xpath("//cbc:TaxExemptionReasonCode")[$e]))
{
$row['vatex']=$xml->xpath("//cbc:TaxExemptionReasonCode")[$e];
}else {
$row['vatex']="";
}
$result[] = $row;
}
return $result;