Skip to content

Commit f2e7d11

Browse files
authored
Merge pull request #1675 from ZeusAutomacao/Branch_23084
feat(NFe): atualiza schemas de Averbação e inclui novos campos
2 parents 60f8f24 + 79d0604 commit f2e7d11

6 files changed

Lines changed: 151 additions & 60 deletions

File tree

NFe.AppTeste/Schemas/e790700_v1.00.xsd

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@
4242
</xs:annotation>
4343
<xs:complexType>
4444
<xs:sequence>
45-
<xs:element name="dhEmbarque" type="TDateTimeUTC" >
45+
<xs:element name="dhEmbarque" type="TDateTimeUTC">
4646
<xs:annotation>
4747
<xs:documentation>Data do Embarque no formato AAAA-MM-DDThh:mm:ssTZD</xs:documentation>
4848
</xs:annotation>
4949
</xs:element>
50-
<xs:element name="dhAverbacao" type="TDateTimeUTC" >
50+
<xs:element name="dhAverbacao" type="TDateTimeUTC">
5151
<xs:annotation>
5252
<xs:documentation>Data da averbação no formato AAAA-MM-DDThh:mm:ssTZD</xs:documentation>
5353
</xs:annotation>
5454
</xs:element>
55-
<xs:element name="nDue" >
55+
<xs:element name="nDue">
5656
<xs:annotation>
5757
<xs:documentation>Número Identificador da Declaração Única do Comércio Exterior associada</xs:documentation>
5858
</xs:annotation>
@@ -63,7 +63,7 @@
6363
</xs:restriction>
6464
</xs:simpleType>
6565
</xs:element>
66-
<xs:element name="nItem" >
66+
<xs:element name="nItem">
6767
<xs:annotation>
6868
<xs:documentation>Número do item da NF-e averbada</xs:documentation>
6969
</xs:annotation>
@@ -74,7 +74,7 @@
7474
</xs:restriction>
7575
</xs:simpleType>
7676
</xs:element>
77-
<xs:element name="nItemDue" >
77+
<xs:element name="nItemDue">
7878
<xs:annotation>
7979
<xs:documentation>Informação do número do item na Declaração de Exportação associada a averbação.</xs:documentation>
8080
</xs:annotation>
@@ -102,12 +102,32 @@
102102
<xs:simpleType>
103103
<xs:restriction base="xs:string">
104104
<xs:whiteSpace value="preserve"/>
105-
<xs:enumeration value="1" />
106-
<xs:enumeration value="2" />
107-
<xs:enumeration value="3" />
105+
<xs:enumeration value="1"/>
106+
<xs:enumeration value="2"/>
107+
<xs:enumeration value="3"/>
108108
</xs:restriction>
109109
</xs:simpleType>
110110
</xs:element>
111+
<xs:element name="enquad" minOccurs="0">
112+
<xs:annotation>
113+
<xs:documentation>Grupo de informações do enquadramento do item</xs:documentation>
114+
</xs:annotation>
115+
<xs:complexType>
116+
<xs:sequence>
117+
<xs:element name="cEnq" minOccurs="1" maxOccurs="4">
118+
<xs:annotation>
119+
<xs:documentation>Código do enquadramento</xs:documentation>
120+
</xs:annotation>
121+
<xs:simpleType>
122+
<xs:restriction base="xs:string">
123+
<xs:whiteSpace value="preserve"/>
124+
<xs:pattern value="[0-9]{5}"/>
125+
</xs:restriction>
126+
</xs:simpleType>
127+
</xs:element>
128+
</xs:sequence>
129+
</xs:complexType>
130+
</xs:element>
111131
</xs:sequence>
112132
</xs:complexType>
113133
</xs:element>
@@ -123,3 +143,6 @@
123143
</xs:complexType>
124144
</xs:element>
125145
</xs:schema>
146+
147+
148+

NFe.AppTeste/Schemas/leiauteAverb_v1.00.xsd

Lines changed: 33 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<xs:element name="infEvento">
1111
<xs:complexType>
1212
<xs:sequence>
13-
<xs:element name="cOrgao" >
13+
<xs:element name="cOrgao">
1414
<xs:annotation>
1515
<xs:documentation>Código do órgão de recepção do Evento. Para o evento de averbação de exportação será utilizado o valor 91 para o Ambiente Nacional.</xs:documentation>
1616
</xs:annotation>
1717
<xs:simpleType>
1818
<xs:restriction base="xs:string">
1919
<xs:whiteSpace value="preserve"/>
20-
<xs:enumeration value="91" />
20+
<xs:enumeration value="91"/>
2121
</xs:restriction>
2222
</xs:simpleType>
2323
</xs:element>
@@ -120,17 +120,17 @@
120120
</xs:annotation>
121121
<xs:complexType>
122122
<xs:sequence>
123-
<xs:element name="dhEmbarque" type="TDateTimeUTC" >
123+
<xs:element name="dhEmbarque" type="TDateTimeUTC">
124124
<xs:annotation>
125125
<xs:documentation>Data do Embarque no formato AAAA-MM-DDThh:mm:ssTZD</xs:documentation>
126126
</xs:annotation>
127127
</xs:element>
128-
<xs:element name="dhAverbacao" type="TDateTimeUTC" >
128+
<xs:element name="dhAverbacao" type="TDateTimeUTC">
129129
<xs:annotation>
130130
<xs:documentation>Data da averbação no formato AAAA-MM-DDThh:mm:ssTZD</xs:documentation>
131131
</xs:annotation>
132132
</xs:element>
133-
<xs:element name="nDue" >
133+
<xs:element name="nDue">
134134
<xs:annotation>
135135
<xs:documentation>Número Identificador da Declaração Única do Comércio Exterior associada</xs:documentation>
136136
</xs:annotation>
@@ -141,7 +141,7 @@
141141
</xs:restriction>
142142
</xs:simpleType>
143143
</xs:element>
144-
<xs:element name="nItem" >
144+
<xs:element name="nItem">
145145
<xs:annotation>
146146
<xs:documentation>Número do item da NF-e averbada</xs:documentation>
147147
</xs:annotation>
@@ -152,7 +152,7 @@
152152
</xs:restriction>
153153
</xs:simpleType>
154154
</xs:element>
155-
<xs:element name="nItemDue" >
155+
<xs:element name="nItemDue">
156156
<xs:annotation>
157157
<xs:documentation>Informação do número do item na Declaração de Exportação associada a averbação.</xs:documentation>
158158
</xs:annotation>
@@ -180,12 +180,32 @@
180180
<xs:simpleType>
181181
<xs:restriction base="xs:string">
182182
<xs:whiteSpace value="preserve"/>
183-
<xs:enumeration value="1" />
184-
<xs:enumeration value="2" />
185-
<xs:enumeration value="3" />
183+
<xs:enumeration value="1"/>
184+
<xs:enumeration value="2"/>
185+
<xs:enumeration value="3"/>
186186
</xs:restriction>
187187
</xs:simpleType>
188188
</xs:element>
189+
<xs:element name="enquad" minOccurs="0">
190+
<xs:annotation>
191+
<xs:documentation>Grupo de informações do enquadramento do item</xs:documentation>
192+
</xs:annotation>
193+
<xs:complexType>
194+
<xs:sequence>
195+
<xs:element name="cEnq" minOccurs="1" maxOccurs="4">
196+
<xs:annotation>
197+
<xs:documentation>Código do enquadramento</xs:documentation>
198+
</xs:annotation>
199+
<xs:simpleType>
200+
<xs:restriction base="xs:string">
201+
<xs:whiteSpace value="preserve"/>
202+
<xs:pattern value="[0-9]{5}"/>
203+
</xs:restriction>
204+
</xs:simpleType>
205+
</xs:element>
206+
</xs:sequence>
207+
</xs:complexType>
208+
</xs:element>
189209
</xs:sequence>
190210
</xs:complexType>
191211
</xs:element>
@@ -442,41 +462,7 @@
442462
<xs:pattern value="1.00"/>
443463
</xs:restriction>
444464
</xs:simpleType>
445-
<xs:simpleType name="TCOrgaoIBGE">
446-
<xs:annotation>
447-
<xs:documentation>Tipo Código de orgão (UF da tabela do IBGE)</xs:documentation>
448-
</xs:annotation>
449-
<xs:restriction base="xs:string">
450-
<xs:whiteSpace value="preserve"/>
451-
<xs:enumeration value="11"/>
452-
<xs:enumeration value="12"/>
453-
<xs:enumeration value="13"/>
454-
<xs:enumeration value="14"/>
455-
<xs:enumeration value="15"/>
456-
<xs:enumeration value="16"/>
457-
<xs:enumeration value="17"/>
458-
<xs:enumeration value="21"/>
459-
<xs:enumeration value="22"/>
460-
<xs:enumeration value="23"/>
461-
<xs:enumeration value="24"/>
462-
<xs:enumeration value="25"/>
463-
<xs:enumeration value="26"/>
464-
<xs:enumeration value="27"/>
465-
<xs:enumeration value="28"/>
466-
<xs:enumeration value="29"/>
467-
<xs:enumeration value="31"/>
468-
<xs:enumeration value="32"/>
469-
<xs:enumeration value="33"/>
470-
<xs:enumeration value="35"/>
471-
<xs:enumeration value="41"/>
472-
<xs:enumeration value="42"/>
473-
<xs:enumeration value="43"/>
474-
<xs:enumeration value="50"/>
475-
<xs:enumeration value="51"/>
476-
<xs:enumeration value="52"/>
477-
<xs:enumeration value="53"/>
478-
<xs:enumeration value="90"/>
479-
<xs:enumeration value="91"/>
480-
</xs:restriction>
481-
</xs:simpleType>
482465
</xs:schema>
466+
467+
468+

NFe.Classes/Servicos/DistribuicaoDFe/Schemas/detEvento.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
using DFe.Utils;
3636
using NFe.Classes.Informacoes.Identificacao.Tipos;
3737
using NFe.Classes.Servicos.Evento;
38-
using Shared.NFe.Classes.Servicos.Evento;
39-
4038
using System;
4139
using System.Collections.Generic;
4240
using System.Xml.Serialization;

NFe.Classes/Servicos/Evento/detEvento.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
using NFe.Classes.Servicos.Evento.Informacoes.ItemConsumo;
4545
using NFe.Classes.Servicos.Evento.Informacoes.ItemNaoFornecido;
4646
using NFe.Classes.Servicos.Evento.Informacoes.Perecimento;
47-
using Shared.NFe.Classes.Servicos.Evento;
4847

4948
namespace NFe.Classes.Servicos.Evento
5049
{
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/********************************************************************************/
2+
/* Projeto: Biblioteca ZeusNFe */
3+
/* Biblioteca C# para emissão de Nota Fiscal Eletrônica - NFe e Nota Fiscal de */
4+
/* Consumidor Eletrônica - NFC-e (http://www.nfe.fazenda.gov.br) */
5+
/* */
6+
/* Direitos Autorais Reservados (c) 2014 Adenilton Batista da Silva */
7+
/* Zeusdev Tecnologia LTDA ME */
8+
/* */
9+
/* Você pode obter a última versão desse arquivo no GitHub */
10+
/* localizado em https://github.com/adeniltonbs/Zeus.Net.NFe.NFCe */
11+
/* */
12+
/* */
13+
/* Esta biblioteca é software livre; você pode redistribuí-la e/ou modificá-la */
14+
/* sob os termos da Licença Pública Geral Menor do GNU conforme publicada pela */
15+
/* Free Software Foundation; tanto a versão 2.1 da Licença, ou (a seu critério) */
16+
/* qualquer versão posterior. */
17+
/* */
18+
/* Esta biblioteca é distribuída na expectativa de que seja útil, porém, SEM */
19+
/* NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU */
20+
/* ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral Menor*/
21+
/* do GNU para mais detalhes. (Arquivo LICENÇA.TXT ou LICENSE.TXT) */
22+
/* */
23+
/* Você deve ter recebido uma cópia da Licença Pública Geral Menor do GNU junto*/
24+
/* com esta biblioteca; se não, escreva para a Free Software Foundation, Inc., */
25+
/* no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */
26+
/* Você também pode obter uma copia da licença em: */
27+
/* http://www.opensource.org/licenses/lgpl-license.php */
28+
/* */
29+
/* Zeusdev Tecnologia LTDA ME - adenilton@zeusautomacao.com.br */
30+
/* http://www.zeusautomacao.com.br/ */
31+
/* Rua Comendador Francisco josé da Cunha, 111 - Itabaiana - SE - 49500-000 */
32+
/********************************************************************************/
33+
34+
using System.Xml.Serialization;
35+
36+
namespace NFe.Classes.Servicos.Evento
37+
{
38+
public class enquad
39+
{
40+
/// <summary>
41+
/// P30 - Código do enquadramento
42+
/// </summary>
43+
[XmlElement(ElementName = "cEnq")]
44+
public string cEnq { get; set; }
45+
}
46+
}

NFe.Classes/Servicos/Evento/itensAverbados.cs

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,41 @@
1-
using DFe.Utils;
1+
/********************************************************************************/
2+
/* Projeto: Biblioteca ZeusNFe */
3+
/* Biblioteca C# para emissão de Nota Fiscal Eletrônica - NFe e Nota Fiscal de */
4+
/* Consumidor Eletrônica - NFC-e (http://www.nfe.fazenda.gov.br) */
5+
/* */
6+
/* Direitos Autorais Reservados (c) 2014 Adenilton Batista da Silva */
7+
/* Zeusdev Tecnologia LTDA ME */
8+
/* */
9+
/* Você pode obter a última versão desse arquivo no GitHub */
10+
/* localizado em https://github.com/adeniltonbs/Zeus.Net.NFe.NFCe */
11+
/* */
12+
/* */
13+
/* Esta biblioteca é software livre; você pode redistribuí-la e/ou modificá-la */
14+
/* sob os termos da Licença Pública Geral Menor do GNU conforme publicada pela */
15+
/* Free Software Foundation; tanto a versão 2.1 da Licença, ou (a seu critério) */
16+
/* qualquer versão posterior. */
17+
/* */
18+
/* Esta biblioteca é distribuída na expectativa de que seja útil, porém, SEM */
19+
/* NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU */
20+
/* ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral Menor*/
21+
/* do GNU para mais detalhes. (Arquivo LICENÇA.TXT ou LICENSE.TXT) */
22+
/* */
23+
/* Você deve ter recebido uma cópia da Licença Pública Geral Menor do GNU junto*/
24+
/* com esta biblioteca; se não, escreva para a Free Software Foundation, Inc., */
25+
/* no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */
26+
/* Você também pode obter uma copia da licença em: */
27+
/* http://www.opensource.org/licenses/lgpl-license.php */
28+
/* */
29+
/* Zeusdev Tecnologia LTDA ME - adenilton@zeusautomacao.com.br */
30+
/* http://www.zeusautomacao.com.br/ */
31+
/* Rua Comendador Francisco josé da Cunha, 111 - Itabaiana - SE - 49500-000 */
32+
/********************************************************************************/
33+
234
using System;
335
using System.Xml.Serialization;
36+
using DFe.Utils;
437

5-
namespace Shared.NFe.Classes.Servicos.Evento
38+
namespace NFe.Classes.Servicos.Evento
639
{
740
public sealed class itensAverbados
841
{
@@ -64,5 +97,11 @@ public string ProxyDhAverbacao
6497
/// </summary>
6598
[XmlElement(ElementName = "motAlteracao")]
6699
public int MotAlteracao { get; set; }
100+
101+
/// <summary>
102+
/// P29 - Grupo de informações do enquadramento do item
103+
/// </summary>
104+
[XmlElement(ElementName = "enquad")]
105+
public enquad Enquad { get; set; }
67106
}
68107
}

0 commit comments

Comments
 (0)