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