Skip to content

Commit

Permalink
Ajuste na contagem de tag CredPresumido
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoroyosilva authored Mar 8, 2024
1 parent e83fe7a commit b121f82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Make.php
Original file line number Diff line number Diff line change
Expand Up @@ -7859,7 +7859,7 @@ protected function buildDet()
}
}
//insere credito presumido
$it = [];
$it = 0;
foreach ($this->aProdCreditoPresumido as $cp) {
$scp = (object) $cp;
$prod = $this->aProd[$scp->item];
Expand All @@ -7872,8 +7872,8 @@ protected function buildDet()
} else {
$node = $prod->getElementsByTagName("CFOP")->item(0);
}
$it[$scp->item]++;
if ($it[$scp->item] > 4) {
$it++;
if ($it > 4) {

Check warning on line 7876 in src/Make.php

View check run for this annotation

Codecov / codecov/patch

src/Make.php#L7875-L7876

Added lines #L7875 - L7876 were not covered by tests
$this->errors[] = "Item {$scp->item} não pode ter mais de 4 registros de Credito Presumido";
continue;
}
Expand Down

0 comments on commit b121f82

Please sign in to comment.