Skip to content

Commit

Permalink
[UPD]Retornando os dados restantes do resultado do WS consNFeDest
Browse files Browse the repository at this point in the history
Adicionando os dados(IE e vNF) que não eram retornados para o array recebido via
parâmetro.
  • Loading branch information
DennyLoko committed Jun 30, 2014
1 parent 428b88e commit 1fb8a53
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions libs/ToolsNFePHP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2346,6 +2346,12 @@ public function getListNFe($ambNac = true, $indNFe = '0', $indEmi = '0', $ultNSU
$tpNF = $resNFe->getElementsByTagName('tpNF')->item(0)->nodeValue;
$cSitNFe = $resNFe->getElementsByTagName('cSitNFe')->item(0)->nodeValue;
$cSitConf = $resNFe->getElementsByTagName('cSitConf')->item(0)->nodeValue;
$vNF = $resNFe->getElementsByTagName('vNF')->item(0)->nodeValue;
$IE = null;
if ($resNFe->getElementsByTagName('IE') !== null) {
$IE = $resNFe->getElementsByTagName('IE')->item(0)->nodeValue;
}

$aNFe[] = array(
'chNFe'=>$chNFe,
'NSU'=>$nsu,
Expand All @@ -2355,7 +2361,9 @@ public function getListNFe($ambNac = true, $indNFe = '0', $indEmi = '0', $ultNSU
'dhRecbto'=>$dhRecbto,
'tpNF'=>$tpNF,
'cSitNFe'=>$cSitNFe,
'cSitconf'=>$cSitConf
'cSitconf'=>$cSitConf,
'vNF'=>$vNF,
'IE'=>$IE
);
}//fim resNFe
if (isset($resCanc)) {
Expand All @@ -2369,6 +2377,11 @@ public function getListNFe($ambNac = true, $indNFe = '0', $indEmi = '0', $ultNSU
$tpNF = $resCanc->getElementsByTagName('tpNF')->item(0)->nodeValue;
$cSitNFe = $resCanc->getElementsByTagName('cSitNFe')->item(0)->nodeValue;
$cSitConf = $resCanc->getElementsByTagName('cSitConf')->item(0)->nodeValue;
$vNF = $resCanc->getElementsByTagName('vNF')->item(0)->nodeValue;
$IE = null;
if ($resCanc->getElementsByTagName('IE') !== null) {
$IE = $resCanc->getElementsByTagName('IE')->item(0)->nodeValue;
}
$aCanc[] = array(
'chNFe'=>$chNFe,
'NSU'=>$nsu,
Expand All @@ -2378,7 +2391,9 @@ public function getListNFe($ambNac = true, $indNFe = '0', $indEmi = '0', $ultNSU
'dhRecbto'=>$dhRecbto,
'tpNF'=>$tpNF,
'cSitNFe'=>$cSitNFe,
'cSitconf'=>$cSitConf
'cSitconf'=>$cSitConf,
'vNF'=>$vNF,
'IE'=>$IE
);
}//fim resCanc
if (isset($resCCe)) {
Expand Down

0 comments on commit 1fb8a53

Please sign in to comment.