Guest User

Untitled

a guest
Feb 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. foreach ($xml->xpath('//cfdi:Comprobante//cfdi:Impuestos//cfdi:Traslados//cfdi:Traslado') as $nodo){
  2. $var = $nodo['importe'];
  3. $vari = $nodo['impuesto'];
  4.  
  5. if($aux != $vari && ($aux != 'IEPS')){
  6. if($vari != 'ISR'){
  7. $arr_d[]=$var;
  8. $arr_c[]=$vari;
  9. }
  10. } $aux=$vari;
  11.  
  12. }
Add Comment
Please, Sign In to add comment