From f22294107a0b9fb50e6f97d1fb7ffc40dfd8658e Mon Sep 17 00:00:00 2001 From: Anderson Rosa Date: Fri, 16 Aug 2024 19:42:06 -0300 Subject: [PATCH] Fix nrProcRRA - XML do evento S1207 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ao não informar o valor nrProcRRA, deve-se remover esse atributo do XML para que seja possível recepcionar o evento na base do e-social. Ao informar o atributo nulo, o e-social retornar a mensagem "Undefined property: stdClass::$nrprocrra" --- src/Factories/Traits/TraitS1207.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Factories/Traits/TraitS1207.php b/src/Factories/Traits/TraitS1207.php index 82335023..2ba55531 100644 --- a/src/Factories/Traits/TraitS1207.php +++ b/src/Factories/Traits/TraitS1207.php @@ -309,8 +309,8 @@ protected function toNodeS110() $this->dom->addChild( $rra, "nrProcRRA", - $irra->nrprocrra, - true + $irra->nrprocrra ?? null, + false ); $this->dom->addChild( $rra,