Skip to content

Commit

Permalink
Ajustes
Browse files Browse the repository at this point in the history
  • Loading branch information
whoisczar committed Jul 14, 2024
1 parent c9c1c1a commit d4fc8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function mostrarInformacao(id) {
if (icmsData.vICMS != null && icmsData.vBC != null) {
const vBC = parseFloat(icmsData.vBC.replace(',', '.')) || 0;
const vProd = parseFloat(produtos[i].vProd.replace(',', '.')) || 0;
const valorProduto = (vProd - vBC).toFixed(2).replace('.', ',');
const valorProduto = (vProd - vBC).toFixed(2).replace('.', ',');//Ajuste para calcular valor
auxiliarTable += `<tr><td>${i+1}</td><td>${produtos[i].xProd}</td><td>${icmsData.vBC}</td><td>${icmsData.pICMS}</td><td>${parseFloat(icmsData.vICMS).toFixed(2).replace('.', ',')}</td><td>R$ ${valorProduto}</td></tr>`;
hasData = true;
}
Expand Down

0 comments on commit d4fc8f1

Please sign in to comment.