7 changed files with 124 additions and 40 deletions
-
6pynfe/entidades/cliente.py
-
27pynfe/entidades/notafiscal.py
-
28pynfe/entidades/produto.py
-
26pynfe/entidades/transportadora.py
-
37pynfe/utils/flags.py
-
30tests/02-modelo-04-transportadora.txt
-
10tests/02-modelo-05-notafiscal.txt
@ -1,5 +1,29 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from base import Entidade |
|||
from pynfe.utils.flags import TIPOS_DOCUMENTO |
|||
|
|||
class Transportadora(Entidade): |
|||
pass |
|||
|
|||
# Dados da Transportadora |
|||
# - Nome/Razão Social (obrigatorio) |
|||
razao_social = str() |
|||
|
|||
# - Tipo de Documento (obrigatorio) - default CNPJ |
|||
tipo_documento = 'CNPJ' |
|||
|
|||
# - Numero do Documento (obrigatorio) |
|||
numero_documento = str() |
|||
|
|||
# - Inscricao Estadual |
|||
inscricao_estadual = str() |
|||
|
|||
# Endereco |
|||
# - Logradouro (obrigatorio) |
|||
endereco_logradouro = str() |
|||
|
|||
# - UF (obrigatorio) |
|||
endereco_uf = str() |
|||
|
|||
# - Municipio (obrigatorio) |
|||
endereco_municipio = str() |
|||
|
|||
@ -1,3 +1,34 @@ |
|||
__version__ = '0.1' |
|||
__author__ = 'Marinho Brandao' |
|||
__license__ = 'Lesser Gnu Public License' |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
TIPOS_DOCUMENTO = ( |
|||
'CNPJ', |
|||
'CPF', |
|||
) |
|||
|
|||
ICMS_TIPOS_TRIBUTACAO = ( |
|||
('00', 'ICMS 00 - Tributada integralmente'), |
|||
('10', 'ICMS 10 - Tributada com cobranca do ICMS por substituicao tributaria'), |
|||
('20', 'ICMS 20 - Com reducao da base de calculo'), |
|||
('30', 'ICMS 30 - Isenta ou nao tributada e com cobranca do ICMS por substituicao tributaria'), |
|||
('40', 'ICMS 40 - Isenta'), |
|||
('41', 'ICMS 41 - Nao tributada'), |
|||
('50', 'ICMS 50 - Suspensao'), |
|||
('51', 'ICMS 51 - Diferimento'), |
|||
('60', 'ICMS 60 - Cobrado anteriormente por substituicao tributaria'), |
|||
('70', 'ICMS 70 - Com reducao da base de calculo e cobranca do ICMS por substituicao tributaria'), |
|||
('90', 'ICMS 90 - Outras'), |
|||
) |
|||
|
|||
ICMS_ORIGENS = ( |
|||
'Nacional', |
|||
'Estrangeira - Importacao Direta', |
|||
'Estrangeira - Adquirida no Mercado Interno', |
|||
) |
|||
|
|||
ICMS_MODALIDADES = ( |
|||
'Margem Valor Agregado', |
|||
'Pauta (valor)', |
|||
'Preco Tabelado Max. (valor)', |
|||
'Valor da Operacao', |
|||
) |
|||
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue