Skip to content

Commit 3a921ca

Browse files
authored
Merge pull request #1 from AndreMarcos/master
[ADD] nfselib.barueri
2 parents 8f8cae1 + 6d423db commit 3a921ca

19 files changed

+9835
-5
lines changed

nfselib/barueri/ConsultarNFeRecebidaCompetencia.py

Lines changed: 1371 additions & 0 deletions
Large diffs are not rendered by default.

nfselib/barueri/ConsultarNFeRecebidaNumero.py

Lines changed: 1341 additions & 0 deletions
Large diffs are not rendered by default.

nfselib/barueri/ConsultarNFeRecebidaPeriodo.py

Lines changed: 1391 additions & 0 deletions
Large diffs are not rendered by default.

nfselib/barueri/NFeLoteBaixarArquivo.py

Lines changed: 1348 additions & 0 deletions
Large diffs are not rendered by default.

nfselib/barueri/NFeLoteEnviarArquivo.py

Lines changed: 1415 additions & 0 deletions
Large diffs are not rendered by default.

nfselib/barueri/NFeLoteListarArquivo.py

Lines changed: 1396 additions & 0 deletions
Large diffs are not rendered by default.

nfselib/barueri/NFeLoteStatusArquivo.py

Lines changed: 1347 additions & 0 deletions
Large diffs are not rendered by default.

nfselib/barueri/exportador.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# TODO: Enviar classes para erpbrasil.base
21

32

43
class CampoPosicional:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
GenerateDSNamespaceDefs = {
2+
"ConsultaNFeRecebidaCompetencia": 'xmlns="http://www.barueri.sp.gov.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NS="http://www.barueri.sp.gov.br/nfe"',
3+
"ConsultaNFeRecebidaNumero": 'xmlns="http://www.barueri.sp.gov.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NS="http://www.barueri.sp.gov.br/nfe"',
4+
"ConsultaNFeRecebidaPeriodo": 'xmlns="http://www.barueri.sp.gov.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NS="http://www.barueri.sp.gov.br/nfe"',
5+
"NFeLoteBaixarArquivo": 'xmlns="http://www.barueri.sp.gov.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NS="http://www.barueri.sp.gov.br/nfe"',
6+
"NFeLoteListarArquivos": 'xmlns="http://www.barueri.sp.gov.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NS="http://www.barueri.sp.gov.br/nfe"',
7+
"NFeLoteStatusArquivo": 'xmlns="http://www.barueri.sp.gov.br/nf" xmlns:p1=""',
8+
"NFeLoteEnviarArquivo" : 'xmlns="http://www.barueri.sp.gov.br/nfe"'
9+
}
10+
11+
GenerateDSNamespaceTypePrefixes = {
12+
"InscricaoMunicipal": 'tipos',
13+
"CPFCNPJContrib": 'tipos',
14+
"NomeArquivoRPS": 'tipos',
15+
"ArquivoRPSBase64": 'tipos',
16+
"ApenasValidaArq": 'tipos',
17+
"cabecalho": 'ns2'
18+
}

nfselib/barueri/rps.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class RPS(Arquivo):
1010
class RegistroTipo1(Registro):
1111
campos = [
1212
CampoPosicional("TipoRegistro", "1", True, "NUM", 1, 1, 1),
13-
CampoPosicional("InscricaoContribuinte", None, True, "NUM", 14, 2, 15),
14-
CampoPosicional("VersaoLayout", "PMB002", True, "NUM", 5, 16, 20),
15-
CampoPosicional("IdentificacaoRemessaContribuinte", None, True, "NUM", 12, 21, 32),
16-
CampoPosicional("CaracterFimLinha", "\r\n", True, "ALFA", 2, 33, 34),
13+
CampoPosicional("InscricaoContribuinte", None, True, "ALFA", 7, 2, 8),
14+
CampoPosicional("VersaoLayout", "PMB002", True, "NUM", 6, 9, 14),
15+
CampoPosicional("IdentificacaoRemessaContribuinte", None, True, "NUM", 11, 15, 25),
16+
CampoPosicional("CaracterFimLinha", "\r\n", True, "ALFA", 1, 26, 26),
1717
]
1818

1919

0 commit comments

Comments
 (0)