Skip to content

Commit

Permalink
Update GerarNfseNotaCarioca.php
Browse files Browse the repository at this point in the history
Inclusão da tag RpsSubstituido para operação e envio cobrir substituição
  • Loading branch information
fgracalepsus authored Oct 7, 2020
1 parent 79c4975 commit a51721e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NotaCarioca/Operations/GerarNfseNotaCarioca.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function getSchemaStructure(): array
'OptanteSimplesNacional',
'IncentivadorCultural',
'Status',
'RpsSubstituido?' => ['Numero', 'Serie', 'Tipo'],
'Servico' => [
'Valores' => [
'ValorServicos',
Expand Down Expand Up @@ -108,6 +109,7 @@ public function getEnvelopeXml(): string
'OptanteSimplesNacional' => $this->rps['OptanteSimplesNacional'],
'IncentivadorCultural' => $this->rps['IncentivadorCultural'],
'Status' => $this->rps['Status'],
'RpsSubstituido' => isset($this->rps['RpsSubstituido']) ? $this->rps['RpsSubstituido'] : null,
// @TODO Set parameters one by one to remove the need to worry about order
// Order Matters (Servico must be before Prestador)
'Servico' => [
Expand Down

0 comments on commit a51721e

Please sign in to comment.