Skip to content

Commit

Permalink
Merge pull request #27 from akretion/fix-formata-campos-icmstot
Browse files Browse the repository at this point in the history
Adiciona formatação nos campos do ICMSTot
  • Loading branch information
renatonlima authored Nov 13, 2023
2 parents 82f09f7 + 01ba5ce commit d0b1736
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.1.0
current_version = 1.1.1
commit = True
tag = True

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ Overview
:alt: Supported implementations
:target: https://pypi.org/project/erpbrasil.edoc.pdf

.. |commits-since| image:: https://img.shields.io/github/commits-since/erpbrasil/erpbrasil.edoc.pdf/v1.1.0.svg
.. |commits-since| image:: https://img.shields.io/github/commits-since/erpbrasil/erpbrasil.edoc.pdf/v1.1.1.svg
:alt: Commits since latest release
:target: https://github.com/erpbrasil/erpbrasil.edoc.pdf/compare/v1.1.0...master
:target: https://github.com/erpbrasil/erpbrasil.edoc.pdf/compare/v1.1.1...master



Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
year = '2020'
author = 'KMEE'
copyright = '{0}, {1}'.format(year, author)
version = release = '1.1.0'
version = release = '1.1.1'

pygments_style = 'trac'
templates_path = ['.']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read(*names, **kwargs):

setup(
name='erpbrasil.edoc.pdf',
version='1.1.0',
version='1.1.1',
license='MIT',
description='Impressão de documentos fiscais a partir do XML: NF-E, NFC-E, CT-E, MDF-E, GNRE e etc.',
long_description='%s\n%s' % (
Expand Down
2 changes: 1 addition & 1 deletion src/erpbrasil/edoc/pdf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.1.0'
__version__ = '1.1.1'

from lxml import etree
from lxml import objectify
Expand Down
18 changes: 16 additions & 2 deletions src/erpbrasil/edoc/pdf/danfe_formata.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,32 @@ def formata_cinco_casas(valor):
return formata_decimal(valor, 5)


# Formata campos do ICMSTot
formata_vBC = formata_duas_casas
formata_vICMS = formata_duas_casas
formata_vICMSDeson = formata_duas_casas
formata_vFCPUFDest = formata_duas_casas
formata_vICMSUFDest = formata_duas_casas
formata_vICMSUFRemet = formata_duas_casas
formata_vFCP = formata_duas_casas
formata_vBCST = formata_duas_casas
formata_vST = formata_duas_casas
formata_vTotTrib = formata_duas_casas
formata_vFCPST = formata_duas_casas
formata_vFCPSTRet = formata_duas_casas
formata_vProd = formata_duas_casas
formata_vFrete = formata_duas_casas
formata_vSeg = formata_duas_casas
formata_vDesc = formata_duas_casas
formata_vOutro = formata_duas_casas
formata_vII = formata_duas_casas
formata_vIPI = formata_duas_casas
formata_vIPIDevol = formata_duas_casas
formata_vPIS = formata_duas_casas
formata_vCOFINS = formata_duas_casas
formata_vOutro = formata_duas_casas
formata_vNF = formata_duas_casas
formata_vTotTrib = formata_duas_casas

# Formata outros campos do Det
formata_qCom = formata_tres_casas
formata_vUnCom = formata_cinco_casas
formata_vProd = formata_duas_casas
Expand Down

0 comments on commit d0b1736

Please sign in to comment.