Skip to content

Commit

Permalink
Merge pull request #3 from fgracalepsus/patch-1
Browse files Browse the repository at this point in the history
Add RpsSubstituido
  • Loading branch information
pedrocasado authored Jul 8, 2021
2 parents bfe62d1 + a51721e commit 2583d5c
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 2583d5c

Please sign in to comment.