File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1292,7 +1292,7 @@ protected function addTagEmit()
12921292 */
12931293 protected function addTagDest ()
12941294 {
1295- if (is_null ( $ this -> enderDest ) && is_null ($ this ->dest )) {
1295+ if (empty ($ this ->dest )) {
12961296 return ;
12971297 }
12981298 if (empty ($ this ->infNFe )) {
@@ -1301,7 +1301,7 @@ protected function addTagDest()
13011301 }
13021302 //verifica se o endereço do destinatário já existe na tag dest
13031303 $ enddest = $ this ->dest ->getElementsByTagName ('enderDest ' )->item (0 ) ?? null ;
1304- if (is_null ($ enddest ) && is_null ($ this ->enderDest )) {
1304+ if (is_null ($ enddest ) && ! is_null ($ this ->enderDest )) {
13051305 $ node = $ this ->dest ->getElementsByTagName ("indIEDest " )->item (0 );
13061306 if (!isset ($ node )) {
13071307 $ node = $ this ->dest ->getElementsByTagName ("IE " )->item (0 );
You can’t perform that action at this time.
0 commit comments