Skip to content

Commit

Permalink
Merge pull request #352 from PivaTafarel/evento_s1298_layout_1.0
Browse files Browse the repository at this point in the history
Incluir builder evento S-1298 layout S.1.0.0
  • Loading branch information
robmachado committed Dec 8, 2021
2 parents b13f97f + 696b6d2 commit 9230b6b
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion src/Factories/Traits/TraitS1298.php
Expand Up @@ -54,6 +54,49 @@ protected function toNode250()
*/
protected function toNodeS100()
{
throw new \Exception("TODO !!");
$ideEmpregador = $this->node->getElementsByTagName('ideEmpregador')->item(0);
//o idEvento pode variar de evento para evento
//então cada factory individualmente terá de construir o seu
$ideEvento = $this->dom->createElement("ideEvento");
$this->dom->addChild(
$ideEvento,
"indApuracao",
$this->std->indapuracao,
true
);
$this->dom->addChild(
$ideEvento,
"perApur",
$this->std->perapur,
true
);
$this->dom->addChild(
$ideEvento,
"indGuia",
$this->std->indguia,
true
);
$this->dom->addChild(
$ideEvento,
"tpAmb",
$this->tpAmb,
true
);
$this->dom->addChild(
$ideEvento,
"procEmi",
$this->procEmi,
true
);
$this->dom->addChild(
$ideEvento,
"verProc",
$this->verProc,
true
);
$this->node->insertBefore($ideEvento, $ideEmpregador);
$this->eSocial->appendChild($this->node);
//$this->xml = $this->dom->saveXML($this->eSocial);
$this->sign();
}
}

0 comments on commit 9230b6b

Please sign in to comment.