Skip to content

Commit

Permalink
Merge 6e7ba66 into bc29357
Browse files Browse the repository at this point in the history
  • Loading branch information
atillaSilva committed Dec 13, 2017
2 parents bc29357 + 6e7ba66 commit ebb9574
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sped/efd/icms_ipi/blocos.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ class Bloco0(Bloco):
registro_abertura = Registro0001
registro_fechamento = Registro0990

@property
def fechamento(self):
registro = self.__class__.registro_fechamento()
# Define a quantidade de registros
registro[2] = len(self._registros) + 3
return registro


class BlocoC(Bloco):
"""
Expand Down Expand Up @@ -91,3 +98,11 @@ class Bloco9(Bloco):
"""
registro_abertura = Registro9001
registro_fechamento = Registro9990

@property
def fechamento(self):
registro = self.__class__.registro_fechamento()
# Define a quantidade de registros
registro[2] = len(self._registros) + 3
return registro

1 change: 1 addition & 0 deletions sped/efd/icms_ipi/registros.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class Registro0200(Registro):
Campo(10, 'COD_GEN'),
Campo(11, 'COD_LST'),
Campo(12, 'ALIQ_ICMS'),
Campo(13, 'CEST'),
]


Expand Down

0 comments on commit ebb9574

Please sign in to comment.