Implementa Rendimentos Tributáveis Exclusivamente na Fonte
authorThadeu Lima de Souza Cascardo <cascardo@cascardo.info>
Sun, 23 Mar 2014 20:43:19 +0000 (17:43 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@cascardo.info>
Sun, 23 Mar 2014 20:43:19 +0000 (17:43 -0300)
src/exclusivos.py [new file with mode: 0644]

diff --git a/src/exclusivos.py b/src/exclusivos.py
new file mode 100644 (file)
index 0000000..1db1f90
--- /dev/null
@@ -0,0 +1,32 @@
+# coding=utf-8
+#
+#   Copyright 2013 Thadeu Lima de Souza Cascardo <cascardo@cascardo.info>
+#
+#   This program is free software: you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation, either version 3 of the License, or
+#   (at your option) any later version.
+#
+#   This program is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#   GNU General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+# -*- mode: python; encoding: utf-8; -*-
+
+import xml.dom.minidom
+import quadros
+
+rendimentos = [
+    (u"Rendimentos Aplicações", "rendAplicacoesQuadroAuxiliar"),
+    (u"Outros", "outrosQuadroAuxiliar"),
+    (u"Rendimentos Dependentes", "outrosDependentesQuadroAuxiliar"),
+]
+
+class RendimentosExclusivos(quadros.Quadros):
+    def __init__(self, contribuinte):
+        quadros.Quadros.__init__(self, contribuinte.dados.getElementsByTagName("rendTributacaoExclusiva")[0], rendimentos)
+
+# vim:tabstop=4:expandtab:smartindent