Skip to content

Commit e035e11

Browse files
marcoslombarditecnosofti
andauthored
NT_2025.002_v1.20_RTC_NF-e_IBS_CBS_IS (#1065)
Co-authored-by: tecnosofti <tecnosofti@amdryzen>
1 parent f1ad733 commit e035e11

File tree

9 files changed

+9521
-99
lines changed

9 files changed

+9521
-99
lines changed

src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFCredito.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
public enum NFCredito {
44

55
MULTA_JUROS("01", "Multa e juros"),
6-
APROPRIACAO_CREDITO_PRESUMIDO_IBS_SALDO_DEVEDOR_ZFM("02", "Apropriação de crédito presumido de IBS sobre o saldo devedor na ZFM (art. 450, § 1º, LC 214/25)");
6+
APROPRIACAO_CREDITO_PRESUMIDO_IBS_SALDO_DEVEDOR_ZFM("02", "Apropriação de crédito presumido de IBS sobre o saldo devedor na ZFM (art. 450, § 1º, LC 214/25)"),
7+
RETORNO("03", "Retorno");
78

89
private final String codigo;
910
private final String descricao;

src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoIBSCBS.java

Lines changed: 94 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,73 +11,117 @@
1111
*/
1212
public class NFNotaInfoItemImpostoIBSCBS extends DFBase {
1313

14-
private static final long serialVersionUID = -366528394939416671L;
14+
private static final long serialVersionUID = -366528394939416671L;
1515

16-
@Element(name = "CST", required = true)
17-
private NFNotaInfoImpostoTributacaoIBSCBS cst; // UB13
16+
@Element(name = "CST", required = true)
17+
private NFNotaInfoImpostoTributacaoIBSCBS cst; // UB13
1818

19-
@Element(required = true)
20-
private String cClassTrib; // UB14
19+
@Element(required = true)
20+
private String cClassTrib; // UB14
2121

22-
// UB14a -x- Sequencia XML
23-
@Element(required = false)
24-
private NFNotaInfoItemImpostoIBSCBSTIBS gIBSCBS; // UB15
22+
// UB14a -x- Sequencia XML
23+
@Element(required = false)
24+
private NFNotaInfoItemImpostoIBSCBSTIBS gIBSCBS; // UB15
2525

26-
@Element(required = false)
27-
private NFNotaInfoItemImpostoIBSCBSMonofasia gIBSCBSMono; // UB84
26+
@Element(required = false)
27+
private NFNotaInfoItemImpostoIBSCBSMonofasia gIBSCBSMono; // UB84
2828

29-
@Element(required = false)
30-
private NFNotaInfoItemImpostoIBSCBSTransfCred gTransfCred; // UB106
29+
@Element(required = false)
30+
private NFNotaInfoItemImpostoIBSCBSMonofasia gMonoPadrao; // UB84a
3131

32-
@Element(required = false)
33-
private NFNotaInfoItemImpostoIBSCBSCredPresIBSZFM gCredPresIBSZFM; // UB109
32+
@Element(required = false)
33+
private NFNotaInfoItemImpostoIBSCBSMonofasia gMonoReten; // UB90
3434

35-
public NFNotaInfoImpostoTributacaoIBSCBS getCst() {
36-
return cst;
37-
}
35+
@Element(required = false)
36+
private NFNotaInfoItemImpostoIBSCBSMonofasia gMonoRet; // UB94
3837

39-
public void setCst(NFNotaInfoImpostoTributacaoIBSCBS cst) {
40-
this.cst = cst;
41-
}
38+
@Element(required = false)
39+
private NFNotaInfoItemImpostoIBSCBSMonofasia gMonoDif; // UB99
4240

43-
public String getcClassTrib() {
44-
return cClassTrib;
45-
}
41+
@Element(required = false)
42+
private NFNotaInfoItemImpostoIBSCBSTransfCred gTransfCred; // UB106
4643

47-
public void setcClassTrib(String cClassTrib) {
48-
this.cClassTrib = cClassTrib;
49-
}
44+
@Element(required = false)
45+
private NFNotaInfoItemImpostoIBSCBSCredPresIBSZFM gCredPresIBSZFM; // UB109
5046

51-
public NFNotaInfoItemImpostoIBSCBSTIBS getGIBSCBS() {
52-
return gIBSCBS;
53-
}
47+
public NFNotaInfoImpostoTributacaoIBSCBS getCst() {
48+
return cst;
49+
}
5450

55-
public void setGIBSCBS(NFNotaInfoItemImpostoIBSCBSTIBS gIBSCBS) {
56-
this.gIBSCBS = gIBSCBS;
57-
}
51+
public void setCst(NFNotaInfoImpostoTributacaoIBSCBS cst) {
52+
this.cst = cst;
53+
}
5854

59-
public NFNotaInfoItemImpostoIBSCBSMonofasia getGIBSCBSMono() {
60-
return gIBSCBSMono;
61-
}
55+
public String getcClassTrib() {
56+
return cClassTrib;
57+
}
6258

63-
public void setGIBSCBSMono(NFNotaInfoItemImpostoIBSCBSMonofasia gIBSCBSMono) {
64-
this.gIBSCBSMono = gIBSCBSMono;
65-
}
59+
public void setcClassTrib(String cClassTrib) {
60+
this.cClassTrib = cClassTrib;
61+
}
6662

67-
public NFNotaInfoItemImpostoIBSCBSTransfCred getGTransfCred() {
68-
return gTransfCred;
69-
}
63+
public NFNotaInfoItemImpostoIBSCBSTIBS getGIBSCBS() {
64+
return gIBSCBS;
65+
}
7066

71-
public void setGTransfCred(NFNotaInfoItemImpostoIBSCBSTransfCred gTransfCred) {
72-
this.gTransfCred = gTransfCred;
73-
}
67+
public void setGIBSCBS(NFNotaInfoItemImpostoIBSCBSTIBS gIBSCBS) {
68+
this.gIBSCBS = gIBSCBS;
69+
}
7470

75-
public NFNotaInfoItemImpostoIBSCBSCredPresIBSZFM getGCredPresIBSZFM() {
76-
return gCredPresIBSZFM;
77-
}
71+
public NFNotaInfoItemImpostoIBSCBSMonofasia getGIBSCBSMono() {
72+
return gIBSCBSMono;
73+
}
7874

79-
public void setGCredPresIBSZFM(NFNotaInfoItemImpostoIBSCBSCredPresIBSZFM gCredPresIBSZFM) {
80-
this.gCredPresIBSZFM = gCredPresIBSZFM;
81-
}
75+
public void setGIBSCBSMono(NFNotaInfoItemImpostoIBSCBSMonofasia gIBSCBSMono) {
76+
this.gIBSCBSMono = gIBSCBSMono;
77+
}
78+
79+
public NFNotaInfoItemImpostoIBSCBSMonofasia getGMonoPadrao() {
80+
return gMonoPadrao;
81+
}
82+
83+
public void setGMonoPadrao(NFNotaInfoItemImpostoIBSCBSMonofasia gMonoPadrao) {
84+
this.gMonoPadrao = gMonoPadrao;
85+
}
86+
87+
public NFNotaInfoItemImpostoIBSCBSMonofasia getGMonoReten() {
88+
return gMonoReten;
89+
}
90+
91+
public void setGMonoReten(NFNotaInfoItemImpostoIBSCBSMonofasia gMonoReten) {
92+
this.gMonoReten = gMonoReten;
93+
}
94+
95+
public NFNotaInfoItemImpostoIBSCBSMonofasia getGMonoRet() {
96+
return gMonoRet;
97+
}
98+
99+
public void setGMonoRet(NFNotaInfoItemImpostoIBSCBSMonofasia gMonoRet) {
100+
this.gMonoRet = gMonoRet;
101+
}
102+
103+
public NFNotaInfoItemImpostoIBSCBSMonofasia getGMonoDif() {
104+
return gMonoDif;
105+
}
106+
107+
public void setGMonoDif(NFNotaInfoItemImpostoIBSCBSMonofasia gMonoDif) {
108+
this.gMonoDif = gMonoDif;
109+
}
110+
111+
public NFNotaInfoItemImpostoIBSCBSTransfCred getGTransfCred() {
112+
return gTransfCred;
113+
}
114+
115+
public void setGTransfCred(NFNotaInfoItemImpostoIBSCBSTransfCred gTransfCred) {
116+
this.gTransfCred = gTransfCred;
117+
}
118+
119+
public NFNotaInfoItemImpostoIBSCBSCredPresIBSZFM getGCredPresIBSZFM() {
120+
return gCredPresIBSZFM;
121+
}
122+
123+
public void setGCredPresIBSZFM(NFNotaInfoItemImpostoIBSCBSCredPresIBSZFM gCredPresIBSZFM) {
124+
this.gCredPresIBSZFM = gCredPresIBSZFM;
125+
}
82126

83127
}

src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoIBSCBSTIBS.java

Lines changed: 61 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package com.fincatto.documentofiscal.nfe400.classes.nota;
22

3+
import java.math.BigDecimal;
4+
5+
import org.simpleframework.xml.Element;
6+
37
import com.fincatto.documentofiscal.DFBase;
48
import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoImpostoTributacaoIBSCBS;
59
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
6-
import java.math.BigDecimal;
7-
import org.simpleframework.xml.Element;
810

911
// UB15
1012
public class NFNotaInfoItemImpostoIBSCBSTIBS extends DFBase {
@@ -102,7 +104,9 @@ public void setGTribCompraGov(GTribCompraGov gTribCompraGov) {
102104
// UB17
103105
public class GIBSUF extends DFBase {
104106

105-
@Element(required = true)
107+
private static final long serialVersionUID = 6093564886756420261L;
108+
109+
@Element(required = true)
106110
private String pIBSUF; // UB18
107111

108112
@Element(required = false)
@@ -179,6 +183,9 @@ public class GIBSMun extends DFBase {
179183
@Element(required = true)
180184
private String vIBSMun; // UB54
181185

186+
@Element(required = true)
187+
private String vIBS; // UB54a
188+
182189
public String getPIBSMun() {
183190
return pIBSMun;
184191
}
@@ -219,6 +226,14 @@ public void setVIBSMun(BigDecimal vIBSMun) {
219226
this.vIBSMun = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vIBSMun, "Alíquota do IBS de competência do Município");
220227
}
221228

229+
public String getVIBS() {
230+
return vIBS;
231+
}
232+
233+
public void setVIBS(BigDecimal vIBS) {
234+
this.vIBS = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vIBS, "Valor do IBS");
235+
}
236+
222237
}
223238

224239
// UB55
@@ -434,71 +449,71 @@ public class GTribCompraGov extends DFBase {
434449
private static final long serialVersionUID = -366528394939456794L;
435450

436451
@Element(required = true)
437-
private String pIBSUF; // UB82b
452+
private String pAliqIBSUF; // UB82b
438453

439454
@Element(required = true)
440-
private String vIBSUF; // UB82c
455+
private String vTribIBSUF; // UB82c
441456

442457
@Element(required = true)
443-
private String pIBSMun; // UB82d
458+
private String pAliqIBSMun; // UB82d
444459

445460
@Element(required = true)
446-
private String vIBSMun; // UB82e
461+
private String vTribIBSMun; // UB82e
447462

448463
@Element(required = true)
449-
private String pCBS; // UB82f
464+
private String pAliqCBS; // UB82f
450465

451466
@Element(required = true)
452-
private String vCBS; // UB82g
467+
private String vTribCBS; // UB82g
453468

454-
public String getPIBSUF() {
455-
return pIBSUF;
456-
}
469+
public String getPAliqIBSUF() {
470+
return pAliqIBSUF;
471+
}
457472

458-
public void setPIBSUF(BigDecimal pIBSUF) {
459-
this.pIBSUF = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pIBSUF, "Alíquota do IBS de competência do Estado");
460-
}
473+
public void setPAliqIBSUF(BigDecimal pAliqIBSUF) {
474+
this.pAliqIBSUF = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqIBSUF, "Alíquota do IBS de competência do Estado");
475+
}
461476

462-
public String getVIBSUF() {
463-
return vIBSUF;
464-
}
477+
public String getVTribIBSUF() {
478+
return vTribIBSUF;
479+
}
465480

466-
public void setVIBSUF(BigDecimal vIBSUF) {
467-
this.vIBSUF = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vIBSUF, "Valor do Tributo do IBS da UF calculado");
468-
}
481+
public void setVTribIBSUF(BigDecimal vTribIBSUF) {
482+
this.vTribIBSUF = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribIBSUF, "Valor do Tributo do IBS da UF calculado");
483+
}
469484

470-
public String getPIBSMun() {
471-
return pIBSMun;
472-
}
485+
public String getPAliqIBSMun() {
486+
return pAliqIBSMun;
487+
}
473488

474-
public void setPIBSMun(BigDecimal pIBSMun) {
475-
this.pIBSMun = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pIBSMun, "Alíquota do IBS de competência do Município");
476-
}
489+
public void setPAliqIBSMun(BigDecimal pAliqIBSMun) {
490+
this.pAliqIBSMun = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqIBSMun, "Alíquota do IBS de competência do Município");
491+
}
477492

478-
public String getVIBSMun() {
479-
return vIBSMun;
480-
}
493+
public String getVTribIBSMun() {
494+
return vTribIBSMun;
495+
}
481496

482-
public void setVIBSMun(BigDecimal vIBSMun) {
483-
this.vIBSMun = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vIBSMun, "Valor do Tributo do IBS do Município calculado");
484-
}
497+
public void setVTribIBSMun(BigDecimal vTribIBSMun) {
498+
this.vTribIBSMun = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribIBSMun, "Valor do Tributo do IBS do Município calculado");
499+
}
485500

486-
public String getPCBS() {
487-
return pCBS;
488-
}
489-
490-
public void setPCBS(BigDecimal pCBS) {
491-
this.pCBS = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pCBS, "Alíquota da CBS ");
492-
}
501+
public String getPAliqCBS() {
502+
return pAliqCBS;
503+
}
493504

494-
public String getVCBS() {
495-
return vCBS;
496-
}
505+
public void setPAliqCBS(BigDecimal pAliqCBS) {
506+
this.pAliqCBS = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqCBS, "Alíquota da CBS ");
507+
}
497508

498-
public void setVCBS(BigDecimal vCBS) {
499-
this.vCBS = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vCBS, "Valor do Tributo da CBS calculado");
500-
}
509+
public String getVTribCBS() {
510+
return vTribCBS;
511+
}
501512

513+
public void setVTribCBS(BigDecimal vTribCBS) {
514+
this.vTribCBS = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribCBS, "Valor do Tributo da CBS calculado");
515+
}
516+
502517
}
503518

504519
// UB21 // UB40

src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemProduto.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ public class NFNotaInfoItemProduto extends DFBase {
100100
@Element(name = "indTot")
101101
private NFProdutoCompoeValorNota compoeValorNota;
102102

103+
@Element(name = "indBemMovelUsado", required = false)
104+
private String indicadorBemMovelUsado;
105+
103106
@ElementList(entry = "DI", inline = true, required = false)
104107
private List<NFNotaInfoItemProdutoDeclaracaoImportacao> declaracoesImportacao;
105108

@@ -247,8 +250,12 @@ public void setValorOutrasDespesasAcessorias(final BigDecimal valorOutrasDespesa
247250
public void setCompoeValorNota(final NFProdutoCompoeValorNota compoeValorNota) {
248251
this.compoeValorNota = compoeValorNota;
249252
}
253+
254+
public void setIndicadorBemMovelUsado(String indicadorBemMovelUsado) {
255+
this.indicadorBemMovelUsado = indicadorBemMovelUsado;
256+
}
250257

251-
public void setDeclaracoesImportacao(final List<NFNotaInfoItemProdutoDeclaracaoImportacao> declaracoesImportacao) {
258+
public void setDeclaracoesImportacao(final List<NFNotaInfoItemProdutoDeclaracaoImportacao> declaracoesImportacao) {
252259
this.declaracoesImportacao = declaracoesImportacao;
253260
}
254261

@@ -451,7 +458,11 @@ public NFProdutoCompoeValorNota getCompoeValorNota() {
451458
return this.compoeValorNota;
452459
}
453460

454-
public List<NFNotaInfoItemProdutoDeclaracaoImportacao> getDeclaracoesImportacao() {
461+
public String getIndicadorBemMovelUsado() {
462+
return indicadorBemMovelUsado;
463+
}
464+
465+
public List<NFNotaInfoItemProdutoDeclaracaoImportacao> getDeclaracoesImportacao() {
455466
return this.declaracoesImportacao;
456467
}
457468

0 commit comments

Comments
 (0)