UBL21: INVOICE Info : add vatex
This commit is contained in:
parent
c12dbb001b
commit
163400769c
2 changed files with 8 additions and 4 deletions
|
|
@ -561,6 +561,7 @@ abstract class XML_Reader
|
|||
{
|
||||
$pdf->write_cell(25, 4, $result[$i]['tax_percent'], align: 'R');
|
||||
$pdf->write_cell(5, 4, $result[$i]['tax_id']);
|
||||
$pdf->write_cell(25, 4, $result[$i]['vatex']);
|
||||
$pdf->write_cell(50, 4, nbm($result[$i]['taxable_amount']), align: 'R');
|
||||
$pdf->write_cell(50, 4, nbm($result[$i]['tax']), align: 'R');
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue