Skip to content

Commit

Permalink
[UPD] ISSUE nfephp-org#953 - Array Totais
Browse files Browse the repository at this point in the history
  • Loading branch information
robmachado committed Mar 11, 2017
1 parent 9d9a8b6 commit 54d314e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions libs/NFe/MakeNFe.php
Original file line number Diff line number Diff line change
Expand Up @@ -4096,11 +4096,11 @@ private function zTagdet()
//insere medicamentos
if (!empty($this->aMed)) {
foreach ($this->aMed as $nItem => $child) {
foreach($child as $grandChild){
$prod = $this->aProd[$nItem];
$this->dom->appChild($prod, $grandChild, "Inclusão do node medicamento");
$this->aProd[$nItem] = $prod;
}
foreach($child as $grandChild){
$prod = $this->aProd[$nItem];
$this->dom->appChild($prod, $grandChild, "Inclusão do node medicamento");
$this->aProd[$nItem] = $prod;
}
}
}
//insere armas
Expand Down Expand Up @@ -4171,11 +4171,9 @@ private function zTagtotal()
$this->total = $this->dom->createElement("total");
}
//ajuste de digitos dos campos totalizados
if ($this->aTotICMSUFDest['vICMSUFDest'] != '') {
$this->aTotICMSUFDest['vICMSUFDest'] = number_format($this->aTotICMSUFDest['vICMSUFDest'], 2, '.', '');
$this->aTotICMSUFDest['vICMSUFRemet'] = number_format($this->aTotICMSUFDest['vICMSUFRemet'], 2, '.', '');
$this->aTotICMSUFDest['vFCPUFDest'] = number_format($this->aTotICMSUFDest['vFCPUFDest'], 2, '.', '');
}
$this->aTotICMSUFDest['vICMSUFDest'] = number_format($this->aTotICMSUFDest['vICMSUFDest'], 2, '.', '');
$this->aTotICMSUFDest['vICMSUFRemet'] = number_format($this->aTotICMSUFDest['vICMSUFRemet'], 2, '.', '');
$this->aTotICMSUFDest['vFCPUFDest'] = number_format($this->aTotICMSUFDest['vFCPUFDest'], 2, '.', '');
}

/**
Expand Down

0 comments on commit 54d314e

Please sign in to comment.