Skip to content

Commit de4f726

Browse files
authored
Merge pull request #1672 from joaovictorjs/Branch_25217
feat[nfe]: ajustar detalhes dos eventos da reforma tributária
2 parents e389c9c + 2b057a9 commit de4f726

29 files changed

Lines changed: 4397 additions & 1362 deletions

NFe.AppTeste/MainWindow.xaml

Lines changed: 1426 additions & 708 deletions
Large diffs are not rendered by default.

NFe.AppTeste/MainWindow.xaml.cs

Lines changed: 1122 additions & 541 deletions
Large diffs are not rendered by default.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-software@procergs.rs.gov.br (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Informações do Cancelamento de evento</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Informar “Cancelamento de Evento"</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:enumeration value="Cancelamento de Evento"/>
18+
</xs:restriction>
19+
</xs:simpleType>
20+
</xs:element>
21+
<xs:element name="cOrgaoAutor" type="TCodUfIBGE">
22+
<xs:annotation>
23+
<xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation>
24+
</xs:annotation>
25+
</xs:element>
26+
<xs:element name="verAplic" type="TVerAplic">
27+
<xs:annotation>
28+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
29+
</xs:annotation>
30+
</xs:element>
31+
<xs:element name="tpEventoAut">
32+
<xs:annotation>
33+
<xs:documentation>Código do evento autorizado a ser cancelado</xs:documentation>
34+
</xs:annotation>
35+
<xs:simpleType>
36+
<xs:restriction base="xs:string">
37+
<xs:enumeration value="112110"/>
38+
<xs:enumeration value="112120"/>
39+
<xs:enumeration value="112130"/>
40+
<xs:enumeration value="112140"/>
41+
<xs:enumeration value="112150"/>
42+
<xs:enumeration value="211110"/>
43+
<xs:enumeration value="211120"/>
44+
<xs:enumeration value="211124"/>
45+
<xs:enumeration value="211128"/>
46+
<xs:enumeration value="211130"/>
47+
<xs:enumeration value="211140"/>
48+
<xs:enumeration value="211150"/>
49+
<xs:enumeration value="212110"/>
50+
<xs:enumeration value="212120"/>
51+
<xs:enumeration value="412120"/>
52+
<xs:enumeration value="412130"/>
53+
</xs:restriction>
54+
</xs:simpleType>
55+
</xs:element>
56+
<xs:element name="nProtEvento" type="TProt">
57+
<xs:annotation>
58+
<xs:documentation>Informar o número do Protocolo de Autorização do Evento a ser cancelado</xs:documentation>
59+
</xs:annotation>
60+
</xs:element>
61+
</xs:sequence>
62+
<xs:attribute name="versao">
63+
<xs:annotation>
64+
<xs:documentation>Versão do leiaute do evento </xs:documentation>
65+
</xs:annotation>
66+
<xs:simpleType>
67+
<xs:restriction base="xs:string">
68+
<xs:whiteSpace value="preserve"/>
69+
<xs:enumeration value="1.00"/>
70+
</xs:restriction>
71+
</xs:simpleType>
72+
</xs:attribute>
73+
</xs:complexType>
74+
</xs:element>
75+
</xs:schema>
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-software@procergs.rs.gov.br (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Informações do Evento de Informação de efetivo pagamento integral para liberar crédito presumido do adquirente</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Descrição do Evento de Informação de efetivo pagamento integral para liberar crédito presumido do adquirente</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:enumeration value="Informação de efetivo pagamento integral para liberar crédito presumido do adquirente"/>
18+
</xs:restriction>
19+
</xs:simpleType>
20+
</xs:element>
21+
<xs:element name="cOrgaoAutor" type="TCodUfIBGE">
22+
<xs:annotation>
23+
<xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation>
24+
</xs:annotation>
25+
</xs:element>
26+
<xs:element name="tpAutor">
27+
<xs:annotation>
28+
<xs:documentation>Informar 1=Empresa emitente
29+
Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos;
30+
</xs:documentation>
31+
</xs:annotation>
32+
<xs:simpleType>
33+
<xs:restriction base="xs:string">
34+
<xs:enumeration value="1"/>
35+
</xs:restriction>
36+
</xs:simpleType>
37+
</xs:element>
38+
<xs:element name="verAplic" type="TVerAplic">
39+
<xs:annotation>
40+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
<xs:element name="indQuitacao">
44+
<xs:annotation>
45+
<xs:documentation>Indicador de efetiva quitação do pagamento integral referente a NFe referenciada.
46+
Valor deve ser igual a "1"
47+
</xs:documentation>
48+
</xs:annotation>
49+
<xs:simpleType>
50+
<xs:restriction base="xs:string">
51+
<xs:enumeration value="1"/>
52+
</xs:restriction>
53+
</xs:simpleType>
54+
</xs:element>
55+
</xs:sequence>
56+
<xs:attribute name="versao">
57+
<xs:annotation>
58+
<xs:documentation>Versão do leiaute do evento </xs:documentation>
59+
</xs:annotation>
60+
<xs:simpleType>
61+
<xs:restriction base="xs:string">
62+
<xs:whiteSpace value="preserve"/>
63+
<xs:enumeration value="1.00"/>
64+
</xs:restriction>
65+
</xs:simpleType>
66+
</xs:attribute>
67+
</xs:complexType>
68+
</xs:element>
69+
</xs:schema>
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-software@procergs.rs.gov.br (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Informações do Evento de Importação em ALC/ZFM não convertida em isenção</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Descrição do evento: "Importação em ALC/ZFM não convertida em isenção"</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:enumeration value="Importação em ALC/ZFM não convertida em isenção"/>
18+
</xs:restriction>
19+
</xs:simpleType>
20+
</xs:element>
21+
<xs:element name="cOrgaoAutor" type="TCodUfIBGE">
22+
<xs:annotation>
23+
<xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation>
24+
</xs:annotation>
25+
</xs:element>
26+
<xs:element name="tpAutor">
27+
<xs:annotation>
28+
<xs:documentation>Informar 1=Empresa emitente
29+
Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos;
30+
</xs:documentation>
31+
</xs:annotation>
32+
<xs:simpleType>
33+
<xs:restriction base="xs:string">
34+
<xs:enumeration value="1"/>
35+
</xs:restriction>
36+
</xs:simpleType>
37+
</xs:element>
38+
<xs:element name="verAplic" type="TVerAplic">
39+
<xs:annotation>
40+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
<xs:element name="gConsumo" maxOccurs="990">
44+
<xs:annotation>
45+
<xs:documentation>Informações de itens integrados ao ativo imobilizado</xs:documentation>
46+
</xs:annotation>
47+
<xs:complexType>
48+
<xs:sequence>
49+
<xs:element name="vIBS" type="TDec_1302">
50+
<xs:annotation>
51+
<xs:documentation>Valor do IBS correspondente à quantidade que não atendeu aos requisitos para a conversão em isenção</xs:documentation>
52+
</xs:annotation>
53+
</xs:element>
54+
<xs:element name="vCBS" type="TDec_1302">
55+
<xs:annotation>
56+
<xs:documentation>Valor do CBS correspondente à quantidade que não atendeu aos requisitos para a conversão em isenção</xs:documentation>
57+
</xs:annotation>
58+
</xs:element>
59+
<xs:element name="gControleEstoque">
60+
<xs:complexType>
61+
<xs:sequence>
62+
<xs:element name="qtde" type="TDec_1104">
63+
<xs:annotation>
64+
<xs:documentation>Informar a quantidade que não atendeu os requisitos para a conversão em isenção</xs:documentation>
65+
</xs:annotation>
66+
</xs:element>
67+
<xs:element name="unidade">
68+
<xs:annotation>
69+
<xs:documentation>Informar a unidade relativa ao campo gConsumo</xs:documentation>
70+
</xs:annotation>
71+
<xs:simpleType>
72+
<xs:restriction base="TString">
73+
<xs:maxLength value="6"/>
74+
<xs:minLength value="1"/>
75+
</xs:restriction>
76+
</xs:simpleType>
77+
</xs:element>
78+
</xs:sequence>
79+
</xs:complexType>
80+
</xs:element>
81+
</xs:sequence>
82+
<xs:attribute name="nItem" type="TnItem" use="required">
83+
<xs:annotation>
84+
<xs:documentation>Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação </xs:documentation>
85+
</xs:annotation>
86+
</xs:attribute>
87+
</xs:complexType>
88+
</xs:element>
89+
</xs:sequence>
90+
<xs:attribute name="versao">
91+
<xs:annotation>
92+
<xs:documentation>Versão do leiaute do evento </xs:documentation>
93+
</xs:annotation>
94+
<xs:simpleType>
95+
<xs:restriction base="xs:string">
96+
<xs:whiteSpace value="preserve"/>
97+
<xs:enumeration value="1.00"/>
98+
</xs:restriction>
99+
</xs:simpleType>
100+
</xs:attribute>
101+
</xs:complexType>
102+
<xs:unique name="pk_nItem">
103+
<xs:selector xpath="./*"/>
104+
<xs:field xpath="@nItem"/>
105+
</xs:unique>
106+
</xs:element>
107+
</xs:schema>
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-software@procergs.rs.gov.br (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Informações do Evento de Perecimento, perda, roubo ou furto durante o transporte contratado pelo fornecedor</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:annotation>
13+
<xs:documentation>Descrição do evento: "Perecimento, perda, roubo ou furto durante o transporte contratado pelo fornecedor""</xs:documentation>
14+
</xs:annotation>
15+
<xs:simpleType>
16+
<xs:restriction base="xs:string">
17+
<xs:enumeration value="Perecimento, perda, roubo ou furto durante o transporte contratado pelo fornecedor"/>
18+
</xs:restriction>
19+
</xs:simpleType>
20+
</xs:element>
21+
<xs:element name="cOrgaoAutor" type="TCodUfIBGE">
22+
<xs:annotation>
23+
<xs:documentation>Código do Órgão Autor do Evento. Informar o Código da UF para este Evento.</xs:documentation>
24+
</xs:annotation>
25+
</xs:element>
26+
<xs:element name="tpAutor">
27+
<xs:annotation>
28+
<xs:documentation>Informar 1=Empresa emitente
29+
Valores: 1=Empresa Emitente, 2=Empresa destinatária; 3=Empresa; 5=Fisco;6=RFB; 9=Outros Órgãos;
30+
</xs:documentation>
31+
</xs:annotation>
32+
<xs:simpleType>
33+
<xs:restriction base="xs:string">
34+
<xs:enumeration value="1"/>
35+
</xs:restriction>
36+
</xs:simpleType>
37+
</xs:element>
38+
<xs:element name="verAplic" type="TVerAplic">
39+
<xs:annotation>
40+
<xs:documentation>Versão do Aplicativo que recebeu o Evento</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
<xs:element name="gPerecimento" maxOccurs="990">
44+
<xs:annotation>
45+
<xs:documentation>Informações por item da Nota de Fornecimento</xs:documentation>
46+
</xs:annotation>
47+
<xs:complexType>
48+
<xs:sequence>
49+
<xs:element name="vIBS" type="TDec_1302">
50+
<xs:annotation>
51+
<xs:documentation>Valor do IBS na Nota de Fornecimento correspondente à quantidade que foi objeto de roubo, perda, furto ou perecimento.</xs:documentation>
52+
</xs:annotation>
53+
</xs:element>
54+
<xs:element name="vCBS" type="TDec_1302">
55+
<xs:annotation>
56+
<xs:documentation>Valor da CBS na Nota de Fornecimento correspondente à quantidade que foi objeto de roubo, perda, furto ou perecimento.</xs:documentation>
57+
</xs:annotation>
58+
</xs:element>
59+
<xs:element name="gControleEstoque">
60+
<xs:complexType>
61+
<xs:sequence>
62+
<xs:element name="qPerecimento" type="TDec_1104">
63+
<xs:annotation>
64+
<xs:documentation>Informar a quantidade que foi objeto de roubo, perda, furto ou perecimento</xs:documentation>
65+
</xs:annotation>
66+
</xs:element>
67+
<xs:element name="uPerecimento">
68+
<xs:annotation>
69+
<xs:documentation>Informar a unidade relativa ao campo qPerecimento</xs:documentation>
70+
</xs:annotation>
71+
<xs:simpleType>
72+
<xs:restriction base="TString">
73+
<xs:maxLength value="6"/>
74+
<xs:minLength value="1"/>
75+
</xs:restriction>
76+
</xs:simpleType>
77+
</xs:element>
78+
<xs:sequence>
79+
<xs:element name="vIBS" type="TDec_1302">
80+
<xs:annotation>
81+
<xs:documentation>Valor do crédito IBS referente às aquisições a ser estornado correspondente à quantidade que foi objeto de roubo, perda, furto ou perecimento</xs:documentation>
82+
</xs:annotation>
83+
</xs:element>
84+
<xs:element name="vCBS" type="TDec_1302">
85+
<xs:annotation>
86+
<xs:documentation>Valor do crédito CBS referente às aquisições a ser estornado correspondente à quantidade que foi objeto de roubo, perda, furto ou perecimento</xs:documentation>
87+
</xs:annotation>
88+
</xs:element>
89+
</xs:sequence>
90+
</xs:sequence>
91+
</xs:complexType>
92+
</xs:element>
93+
</xs:sequence>
94+
<xs:attribute name="nItem" type="TnItem" use="required">
95+
<xs:annotation>
96+
<xs:documentation>Corresponde ao atributo “nItem” do elemento “det” da NF-e de importação </xs:documentation>
97+
</xs:annotation>
98+
</xs:attribute>
99+
</xs:complexType>
100+
</xs:element>
101+
</xs:sequence>
102+
<xs:attribute name="versao">
103+
<xs:annotation>
104+
<xs:documentation>Versão do leiaute do evento </xs:documentation>
105+
</xs:annotation>
106+
<xs:simpleType>
107+
<xs:restriction base="xs:string">
108+
<xs:whiteSpace value="preserve"/>
109+
<xs:enumeration value="1.00"/>
110+
</xs:restriction>
111+
</xs:simpleType>
112+
</xs:attribute>
113+
</xs:complexType>
114+
<xs:unique name="pk_nItem">
115+
<xs:selector xpath="./*"/>
116+
<xs:field xpath="@nItem"/>
117+
</xs:unique>
118+
</xs:element>
119+
</xs:schema>

0 commit comments

Comments
 (0)