Skip to content

Commit

Permalink
Merge pull request #1075 from robmachado/master
Browse files Browse the repository at this point in the history
ajustes phpcbf
  • Loading branch information
robmachado authored Sep 12, 2024
2 parents 18ab87b + a9e5f4e commit 1624494
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Make.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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',
]);
Expand Down

0 comments on commit 1624494

Please sign in to comment.