@@ 401-408 (lines=8) @@ | ||
398 | return false; |
|
399 | } |
|
400 | // verificar que existan datos para el timbre |
|
401 | if (!$this->xml->xpath('/DTE/'.$this->tipo_general.'/Encabezado/IdDoc/FchEmis')->item(0)) { |
|
402 | \sasco\LibreDTE\Log::write( |
|
403 | \sasco\LibreDTE\Estado::DTE_FALTA_FCHEMIS, |
|
404 | \sasco\LibreDTE\Estado::get(\sasco\LibreDTE\Estado::DTE_FALTA_FCHEMIS, $this->getID()) |
|
405 | ); |
|
406 | \sasco\LibreDTE\Log::write('Falta FchEmis del DTE '.$this->getID()); |
|
407 | return false; |
|
408 | } |
|
409 | if (!$this->xml->xpath('/DTE/'.$this->tipo_general.'/Encabezado/Totales/MntTotal')->item(0)) { |
|
410 | \sasco\LibreDTE\Log::write( |
|
411 | \sasco\LibreDTE\Estado::DTE_FALTA_MNTTOTAL, |
|
@@ 409-415 (lines=7) @@ | ||
406 | \sasco\LibreDTE\Log::write('Falta FchEmis del DTE '.$this->getID()); |
|
407 | return false; |
|
408 | } |
|
409 | if (!$this->xml->xpath('/DTE/'.$this->tipo_general.'/Encabezado/Totales/MntTotal')->item(0)) { |
|
410 | \sasco\LibreDTE\Log::write( |
|
411 | \sasco\LibreDTE\Estado::DTE_FALTA_MNTTOTAL, |
|
412 | \sasco\LibreDTE\Estado::get(\sasco\LibreDTE\Estado::DTE_FALTA_MNTTOTAL, $this->getID()) |
|
413 | ); |
|
414 | return false; |
|
415 | } |
|
416 | // timbrar |
|
417 | $RR = $this->xml->xpath('/DTE/'.$this->tipo_general.'/Encabezado/Receptor/RUTRecep')->item(0)->nodeValue; |
|
418 | $RSR_nodo = $this->xml->xpath('/DTE/'.$this->tipo_general.'/Encabezado/Receptor/RznSocRecep'); |