From: Thadeu Lima de Souza Cascardo Date: Sun, 23 Mar 2014 20:43:19 +0000 (-0300) Subject: Implementa Rendimentos Tributáveis Exclusivamente na Fonte X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Firpf-gui.git;a=commitdiff_plain;h=5a9c5955977300dbbf838d5734b15b490989d71e Implementa Rendimentos Tributáveis Exclusivamente na Fonte --- diff --git a/src/exclusivos.py b/src/exclusivos.py new file mode 100644 index 0000000..1db1f90 --- /dev/null +++ b/src/exclusivos.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# +# Copyright 2013 Thadeu Lima de Souza Cascardo +# +# 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 . +# -*- 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