Skip to content

Commit

Permalink
Merge pull request nfephp-org#687 from robmachado/master
Browse files Browse the repository at this point in the history
[UPD] Make::class Correção de BUG, tagPISST estava adicionando improp…
  • Loading branch information
robmachado authored Jun 30, 2019
2 parents 97dea06 + be2ff53 commit cad5b77
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions src/Make.php
Original file line number Diff line number Diff line change
Expand Up @@ -5070,34 +5070,37 @@ public function tagPISST(stdClass $std)
];
$std = $this->equilizeParameters($std, $possible);
$pisst = $this->dom->createElement('PISST');
$this->dom->addChild(
$pisst,
'vBC',
$this->conditionalNumberFormatting($std->vBC),
true,
"[item $std->item] Valor da Base de Cálculo do PIS"
);
$this->dom->addChild(
$pisst,
'pPIS',
$this->conditionalNumberFormatting($std->pPIS, 4),
true,
"[item $std->item] Alíquota do PIS (em percentual)"
);
$this->dom->addChild(
$pisst,
'qBCProd',
$std->qBCProd,
true,
"[item $std->item] Quantidade Vendida"
);
$this->dom->addChild(
$pisst,
'vAliqProd',
$std->vAliqProd,
true,
"[item $std->item] Alíquota do PIS (em reais)"
);
if (!isset($std->qBCProd)) {
$this->dom->addChild(
$pisst,
'vBC',
$this->conditionalNumberFormatting($std->vBC),
true,
"[item $std->item] Valor da Base de Cálculo do PIS"
);
$this->dom->addChild(
$pisst,
'pPIS',
$this->conditionalNumberFormatting($std->pPIS, 4),
true,
"[item $std->item] Alíquota do PIS (em percentual)"
);
} else {
$this->dom->addChild(
$pisst,
'qBCProd',
$std->qBCProd,
true,
"[item $std->item] Quantidade Vendida"
);
$this->dom->addChild(
$pisst,
'vAliqProd',
$std->vAliqProd,
true,
"[item $std->item] Alíquota do PIS (em reais)"
);
}
$this->dom->addChild(
$pisst,
'vPIS',
Expand Down

0 comments on commit cad5b77

Please sign in to comment.