Skip to content

Commit

Permalink
Merge pull request #458 from robmachado/master
Browse files Browse the repository at this point in the history
ajuste S-1200
  • Loading branch information
robmachado authored Sep 26, 2022
2 parents 9ab8e91 + 2b0993f commit 514dff0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/Fake/v_S_01_00_00/Fake_s1200_EvtRemun.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
$std->dmdev[0]->ideadc[0]->ideperiodo[0]->ideestablot[0]->remunperant[0]->itensremun[0]->fatorrubr = 2.99; //Opcional
$std->dmdev[0]->ideadc[0]->ideperiodo[0]->ideestablot[0]->remunperant[0]->itensremun[0]->vrunit = 123.02; //Obrigatório
$std->dmdev[0]->ideadc[0]->ideperiodo[0]->ideestablot[0]->remunperant[0]->itensremun[0]->vrrubr = 169.99; //Obrigatório
$std->dmdev[0]->ideadc[0]->ideperiodo[0]->ideestablot[0]->remunperant[0]->itensremun[0]->indapurir = 0; //Opcional

//Grupo referente ao detalhamento do grau de exposição do trabalhador aos agentes nocivos que ensejam a cobrança
//da contribuição adicional para financiamento dos benefícios de aposentadoria especial.
Expand Down
6 changes: 6 additions & 0 deletions jsonSchemes/v_S_01_00_00/evtRemun.schema
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@
"vrrubr": {
"required": false,
"type": ["number","null"]
},
"indapurir": {
"required": false,
"type": ["integer","null"],
"minumum": 0,
"maximum": 3
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/Factories/Traits/TraitS1200.php
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,12 @@ protected function toNodeS100()
$irem->vrrubr,
true
);
$this->dom->addChild(
$itensRemun,
"indApurIR",
isset($irem->indapurir) ? $irem->indapurir : null,
false
);
$remunPerAnt->appendChild($itensRemun);
}
if (!empty($rpr->infoagnocivo)) {
Expand Down

0 comments on commit 514dff0

Please sign in to comment.