From e5fd954160d380f988c71212e5a8c26ac431cffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vyo=20Henrique?= Date: Tue, 19 Dec 2023 17:33:51 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Corre=C3=A7=C3=A3o=20campo=20produto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quando se tem vários itens, normalmente acima de 20, os itens estão sobrescrevendo os campos de totais. --- pytrustnfe/nfe/danfce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytrustnfe/nfe/danfce.py b/pytrustnfe/nfe/danfce.py index fabab918..469dadac 100644 --- a/pytrustnfe/nfe/danfce.py +++ b/pytrustnfe/nfe/danfce.py @@ -221,7 +221,7 @@ def _draw_product_table(self, rows, colWidths, rowHeights): ) w, h = table.wrapOn(self.canvas, 200, 450) - table.drawOn(self.canvas, 0, self.current_height - (h * 1.2)) + table.drawOn(self.canvas, 0, self.current_height - h) self.current_height -= h * 1.1 def totais(self, oXML=None): From 04a1ebc1f7763f873fd2941e3643e076eea1566d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vyo=20Henrique?= Date: Mon, 26 Aug 2024 13:33:35 -0300 Subject: [PATCH 2/2] Update danfe.py Adicionando o CRT 4 --- pytrustnfe/nfe/danfe.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytrustnfe/nfe/danfe.py b/pytrustnfe/nfe/danfe.py index 93b89ba8..864fe54f 100644 --- a/pytrustnfe/nfe/danfe.py +++ b/pytrustnfe/nfe/danfe.py @@ -104,6 +104,7 @@ def tagtext(oNode=None, cTag=None): "1": "Simples Nacional", "2": "Simples Nacional, excesso sublimite de receita bruta", "3": "Regime Normal", + "4": "Simples Nacional – Microempreendedor Individual – MEI", }