From a9e5f4e0c7c5ce64957fb40c3596edbbb4e81fdf Mon Sep 17 00:00:00 2001 From: roberto Date: Thu, 12 Sep 2024 14:35:39 -0300 Subject: [PATCH] ajustes phpcbf --- src/Make.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Make.php b/src/Make.php index b3b41d05..8895d13c 100755 --- a/src/Make.php +++ b/src/Make.php @@ -1857,17 +1857,17 @@ public function tagprod(stdClass $std): DOMElement $this->errors[] = "cEANTrib {$ceantrib} " . $e->getMessage(); } } - + $CRT = null; if (!empty($this->emit->getElementsByTagName("CRT")->item(0))) { $CRT = (int) $this->emit->getElementsByTagName("CRT")->item(0)->nodeValue; } - + $idDest = null; if (!empty($this->ide->getElementsByTagName("idDest")->item(0))) { $idDest = (int) $this->ide->getElementsByTagName("idDest")->item(0)->nodeValue; } - + $allowEmptyNcm = $CRT == 4 && $idDest == 1; if ($allowEmptyNcm && empty($std->NCM)) { @@ -4783,7 +4783,7 @@ public function tagICMSSN(stdClass $std): DOMElement if (!empty($this->emit->getElementsByTagName("CRT")->item(0))) { $CRT = (int) $this->emit->getElementsByTagName("CRT")->item(0)->nodeValue; } - + $allowEmptyOrig = $CRT == 4 && in_array($std->CSOSN, [ '102', '103', '300', '400', '900', ]);