Skip to content

Commit

Permalink
Merge pull request #270 from mateusperego/master
Browse files Browse the repository at this point in the history
Ajuste tag infdoc e tagrodoos possible
  • Loading branch information
cleitonperin committed Dec 31, 2019
2 parents 93b2f70 + 073789d commit c8b929a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Make.php
Expand Up @@ -621,7 +621,9 @@ public function monta()
foreach ($this->infOutros as $infOutros) {
$this->dom->appChild($this->infDoc, $infOutros, 'Falta tag "infOutros"');
}
$this->dom->appChild($this->infCTeNorm, $this->infDoc, 'Falta tag "infCTeNorm"');
if (!empty($this->infDoc)) {
$this->dom->appChild($this->infCTeNorm, $this->infDoc, 'Falta tag "infCTeNorm"');
}
if ($this->idDocAntEle != [] || $this->idDocAntPap != []) { //Caso tenha CT-es Anteriores viculados
$this->dom->appChild($this->infCTeNorm, $this->docAnt, 'Falta tag "docAnt"');
foreach ($this->emiDocAnt as $indice => $emiDocAnt) {
Expand Down Expand Up @@ -4495,13 +4497,8 @@ public function tagrodoOS($std)
{

$possible = [
'vPrest',
'vAFRMM',
'xNavio',
'nViag',
'direc',
'irin',
'tpNav'
'TAF',
'NroRegEstadual'
];

$std = $this->equilizeParameters($std, $possible);
Expand All @@ -4518,7 +4515,7 @@ public function tagrodoOS($std)
$this->dom->addChild(
$this->rodo,
'NroRegEstadual',
$std->nroRegEstadual,
$std->NroRegEstadual,
false,
$identificador . 'Número do Registro Estadual'
);
Expand Down

0 comments on commit c8b929a

Please sign in to comment.