Skip to content

Commit

Permalink
Merge pull request #172 from gabrielcarvalhohardness/master
Browse files Browse the repository at this point in the history
Ajustes no evento R-1070
  • Loading branch information
robmachado authored Apr 23, 2024
2 parents 87a021d + ff95e18 commit 33a66ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Factories/EvtTabProcesso.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function toNode()
$this->dom->addChild(
$ideProcesso,
"fimValid",
null,
!empty($this->std->fimvalid) ? $this->std->fimvalid : null,
false
);
$this->dom->addChild(
Expand All @@ -110,9 +110,6 @@ protected function toNode()
);
} elseif ($this->std->modo == 'ALT') {
//alteracao
if (empty($this->std->fimvalid)) {
throw new \Exception("Numa alteração é obrigatório informar o FIM da VALIDADE do evento anterior.");
}
$node = $this->dom->createElement("alteracao");
$this->dom->addChild(
$ideProcesso,
Expand Down

0 comments on commit 33a66ec

Please sign in to comment.