Skip to content

Commit

Permalink
Merge pull request #427 from CodeIgor/master
Browse files Browse the repository at this point in the history
Validação de Instituição de ensino - Estagiário
  • Loading branch information
robmachado authored Apr 20, 2022
2 parents 23cc099 + 0ec6e06 commit 38bbbc4
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 84 deletions.
86 changes: 44 additions & 42 deletions src/Factories/Traits/TraitS2300.php
Original file line number Diff line number Diff line change
Expand Up @@ -1602,48 +1602,50 @@ protected function toNodeS100()
!empty($ens->cnpjinstensino) ? $ens->cnpjinstensino : null,
false
);
$this->dom->addChild(
$instEnsino,
"nmRazao",
empty($ens->nmrazao) ? $ens->nmrazao : null,
false
);
$this->dom->addChild(
$instEnsino,
"dscLograd",
!empty($ens->dsclograd) ? $ens->dsclograd : null,
false
);
$this->dom->addChild(
$instEnsino,
"nrLograd",
!empty($ens->nrlograd) ? $ens->nrlograd : null,
false
);
$this->dom->addChild(
$instEnsino,
"bairro",
!empty($ens->bairro) ? $ens->bairro : null,
false
);
$this->dom->addChild(
$instEnsino,
"cep",
!empty($ens->cep) ? $ens->cep : null,
false
);
$this->dom->addChild(
$instEnsino,
"codMunic",
!empty($ens->codmunic) ? $ens->codmunic : null,
false
);
$this->dom->addChild(
$instEnsino,
"uf",
!empty($ens->uf) ? $ens->uf : null,
false
);
if(empty($ens->cnpjinstensino)){
$this->dom->addChild(
$instEnsino,
"nmRazao",
empty($ens->nmrazao) ? $ens->nmrazao : null,
false
);
$this->dom->addChild(
$instEnsino,
"dscLograd",
!empty($ens->dsclograd) ? $ens->dsclograd : null,
false
);
$this->dom->addChild(
$instEnsino,
"nrLograd",
!empty($ens->nrlograd) ? $ens->nrlograd : null,
false
);
$this->dom->addChild(
$instEnsino,
"bairro",
!empty($ens->bairro) ? $ens->bairro : null,
false
);
$this->dom->addChild(
$instEnsino,
"cep",
!empty($ens->cep) ? $ens->cep : null,
false
);
$this->dom->addChild(
$instEnsino,
"codMunic",
!empty($ens->codmunic) ? $ens->codmunic : null,
false
);
$this->dom->addChild(
$instEnsino,
"uf",
!empty($ens->uf) ? $ens->uf : null,
false
);
}
$infoEstagiario->appendChild($instEnsino);

if (!empty($est->cnpjagntinteg)) {
Expand Down
86 changes: 44 additions & 42 deletions src/Factories/Traits/TraitS2306.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,48 +511,50 @@ protected function toNodeS100()
!empty($ens->cnpjinstensino) ? $ens->cnpjinstensino : null,
false
);
$this->dom->addChild(
$instEnsino,
"nmRazao",
!empty($ens->nmrazao) ? $ens->nmrazao : null,
false
);
$this->dom->addChild(
$instEnsino,
"dscLograd",
!empty($ens->dsclograd) ? $ens->dsclograd : null,
false
);
$this->dom->addChild(
$instEnsino,
"nrLograd",
!empty($ens->nrlograd) ? $ens->nrlograd : null,
false
);
$this->dom->addChild(
$instEnsino,
"bairro",
!empty($ens->bairro) ? $ens->bairro : null,
false
);
$this->dom->addChild(
$instEnsino,
"cep",
!empty($ens->cep) ? $ens->cep : null,
false
);
$this->dom->addChild(
$instEnsino,
"codMunic",
!empty($ens->codmunic) ? $ens->codmunic : null,
false
);
$this->dom->addChild(
$instEnsino,
"uf",
!empty($ens->uf) ? $ens->uf : null,
false
);
if(empty($ens->cnpjinstensino)){
$this->dom->addChild(
$instEnsino,
"nmRazao",
!empty($ens->nmrazao) ? $ens->nmrazao : null,
false
);
$this->dom->addChild(
$instEnsino,
"dscLograd",
!empty($ens->dsclograd) ? $ens->dsclograd : null,
false
);
$this->dom->addChild(
$instEnsino,
"nrLograd",
!empty($ens->nrlograd) ? $ens->nrlograd : null,
false
);
$this->dom->addChild(
$instEnsino,
"bairro",
!empty($ens->bairro) ? $ens->bairro : null,
false
);
$this->dom->addChild(
$instEnsino,
"cep",
!empty($ens->cep) ? $ens->cep : null,
false
);
$this->dom->addChild(
$instEnsino,
"codMunic",
!empty($ens->codmunic) ? $ens->codmunic : null,
false
);
$this->dom->addChild(
$instEnsino,
"uf",
!empty($ens->uf) ? $ens->uf : null,
false
);
}
$infoEstagiario->appendChild($instEnsino);
if (!empty($estag->ageintegracao)) {
$ageIntegracao = $this->dom->createElement("ageIntegracao");
Expand Down

0 comments on commit 38bbbc4

Please sign in to comment.