@@ 61-67 (lines=7) @@ | ||
58 | return false; |
|
59 | } |
|
60 | // |
|
61 | if (isset($this->dtes[$this->config['DTE_max'][$this->tipo]-1])) { |
|
62 | \sasco\LibreDTE\Log::write( |
|
63 | \sasco\LibreDTE\Estado::ENVIODTE_DTE_MAX, |
|
64 | \sasco\LibreDTE\Estado::get(\sasco\LibreDTE\Estado::ENVIODTE_DTE_MAX, $this->config['DTE_max'][$this->tipo]) |
|
65 | ); |
|
66 | return false; |
|
67 | } |
|
68 | $this->dtes[] = $DTE; |
|
69 | return true; |
|
70 | } |
|
@@ 90-96 (lines=7) @@ | ||
87 | } |
|
88 | // si se agregaron demasiados DTE error |
|
89 | $SubTotDTE = $this->getSubTotDTE(); |
|
90 | if (isset($SubTotDTE[$this->config['SubTotDTE_max'][$this->tipo]])) { |
|
91 | \sasco\LibreDTE\Log::write( |
|
92 | \sasco\LibreDTE\Estado::ENVIODTE_TIPO_DTE_MAX, |
|
93 | \sasco\LibreDTE\Estado::get(\sasco\LibreDTE\Estado::ENVIODTE_TIPO_DTE_MAX, $this->config['SubTotDTE_max'][$this->tipo]) |
|
94 | ); |
|
95 | return false; |
|
96 | } |
|
97 | // generar caratula |
|
98 | $this->caratula = array_merge([ |
|
99 | '@attributes' => [ |