lib/br_danfe/xprod.rb in br_danfe-0.0.5 vs lib/br_danfe/xprod.rb in br_danfe-0.0.6
- old
+ new
@@ -35,12 +35,12 @@
"\n" + I18n.t("danfe.det.prod.xProdFCI", nFCI: @det.css('prod/nFCI').text)
end
def st
"\n" + I18n.t("danfe.det.prod.xProdST",
- pMVAST: @det.css('ICMS/*/pMVAST').text,
- pICMSST: @det.css('ICMS/*/pICMSST').text,
- vBCST: @det.css('ICMS/*/vBCST').text,
- vICMSST: @det.css('ICMS/*/vICMSST').text)
+ pMVAST: Helper.numerify(@det.css('ICMS/*/pMVAST').text, 2),
+ pICMSST: Helper.numerify(@det.css('ICMS/*/pICMSST').text, 2),
+ vBCST: Helper.numerify(@det.css('ICMS/*/vBCST').text, 2),
+ vICMSST: Helper.numerify(@det.css('ICMS/*/vICMSST').text, 2))
end
end
end