{"action":"created","issue":{"url":"https://api.github.com/repos/nfephp-org/nfephp/issues/552","labels_url":"https://api.github.com/repos/nfephp-org/nfephp/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/nfephp-org/nfephp/issues/552/comments","events_url":"https://api.github.com/repos/nfephp-org/nfephp/issues/552/events","html_url":"https://github.com/nfephp-org/nfephp/issues/552","id":76553516,"number":552,"title":"Campos Q05 e Q07 no ConvertNFePHP - PISOutr e vPIS","user":{"login":"carlosmarian","id":409862,"avatar_url":"https://avatars.githubusercontent.com/u/409862?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosmarian","html_url":"https://github.com/carlosmarian","followers_url":"https://api.github.com/users/carlosmarian/followers","following_url":"https://api.github.com/users/carlosmarian/following{/other_user}","gists_url":"https://api.github.com/users/carlosmarian/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmarian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmarian/subscriptions","organizations_url":"https://api.github.com/users/carlosmarian/orgs","repos_url":"https://api.github.com/users/carlosmarian/repos","events_url":"https://api.github.com/users/carlosmarian/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmarian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T01:47:39Z","updated_at":"2015-05-15T01:52:11Z","closed_at":null,"body":"Olá,\r\n  Erro ao gerar a tag <PISOutr>, onde o vPIS esta preenchido no arquivo e não esta sendo gerado no XML.\r\n\r\n  Avaliando o fonte encontrei o trecho que acho que deve ser revisado.\r\n  Trecho que acredito estar errado:\r\n```php\r\n  case \"Q05\":\r\n      //Grupo de PIS Outras Operações 0 ou 1 [PIS]\r\n      //Q05|CST|vPIS|\r\n      $PISOutr = $dom->createElement(\"PISOutr\");\r\n      $CST = $dom->createElement(\"CST\", $dados[1]);\r\n      $PISOutr->appendChild($CST);\r\n      $vPIS = $dom->createElement(\"vPIS\", $dados[2]);\r\n      $PISOutr->appendChild($vPIS);\r\n      $PIS->appendChild($PISOutr);\r\n      break;\r\n  case \"Q07\":\r\n      //Valor da Base de Cálculo do PIS e Alíquota do PIS (em percentual) 0 pu 1 [PISOutr]\r\n      // todos esses campos sao obrigatorios\r\n      //Q07|vBC|pPIS|\r\n      $vBC = $dom->createElement(\"vBC\", $dados[1]);\r\n      $PISOutr->insertBefore($vBC, $vPIS);\r\n      $pPIS = $dom->createElement(\"pPIS\", $dados[2]);\r\n      $PISOutr->insertBefore($pPIS, $vPIS);\r\n      break;\r\n```\r\n     Acredito que o correto seria algo parecido com isso:\r\n ```php\r\ncase \"Q05\":\r\n\t//Grupo de PIS Outras Operações 0 ou 1 [PIS]\r\n\t//Q05|CST|\r\n\t$PISOutr = $dom->createElement(\"PISOutr\");\r\n\t$CST = $dom->createElement(\"CST\", $dados[1]);\r\n\t$PISOutr->appendChild($CST);\r\n\tbreak;\r\ncase \"Q07\":\r\n\t//Valor da Base de Cálculo do PIS e Alíquota do PIS (em percentual) 0 pu 1 [PISOutr]\r\n\t// todos esses campos sao obrigatorios\r\n\t//Q07|vBC|pPIS|vPIS|\r\n\t$vPIS = $dom->createElement(\"vPIS\", $dados[3]);\r\n\t$PISOutr->appendChild($vPIS);\r\n\t$PIS->appendChild($PISOutr);                    \t\r\n\t$vBC = $dom->createElement(\"vBC\", $dados[1]);\r\n\t$PISOutr->insertBefore($vBC, $vPIS);\r\n\t$pPIS = $dom->createElement(\"pPIS\", $dados[2]);\r\n\t$PISOutr->insertBefore($pPIS, $vPIS);\r\n\tbreak;\r\n ```\r\n  "},"comment":{"url":"https://api.github.com/repos/nfephp-org/nfephp/issues/comments/102218980","html_url":"https://github.com/nfephp-org/nfephp/issues/552#issuecomment-102218980","issue_url":"https://api.github.com/repos/nfephp-org/nfephp/issues/552","id":102218980,"user":{"login":"carlosmarian","id":409862,"avatar_url":"https://avatars.githubusercontent.com/u/409862?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosmarian","html_url":"https://github.com/carlosmarian","followers_url":"https://api.github.com/users/carlosmarian/followers","following_url":"https://api.github.com/users/carlosmarian/following{/other_user}","gists_url":"https://api.github.com/users/carlosmarian/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosmarian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosmarian/subscriptions","organizations_url":"https://api.github.com/users/carlosmarian/orgs","repos_url":"https://api.github.com/users/carlosmarian/repos","events_url":"https://api.github.com/users/carlosmarian/events{/privacy}","received_events_url":"https://api.github.com/users/carlosmarian/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T01:52:11Z","updated_at":"2015-05-15T01:52:11Z","body":"Manual:\r\nQ|\r\n[Seleção entre Q02 ou Q03 ou Q04 ou Q05]{\r\n  Q02|CST|vBC|pPIS|vPIS|\r\n  [ou]\r\n  Q03|CST|qBCProd|vAliqProd|vPIS|\r\n  [ou]\r\n  Q04|CST|\r\n  [ou]\r\n  Q05|CST|\r\n    [Seleção entre Q07 ou Q010]{\r\n    Q07|vBC|pPIS|vPIS|\r\n    [ou]\r\n    Q10|qBCProd|vAliqProd|\r\n }\r\n}"}}