• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wmixvideo / nfe / #7148

04 Dec 2025 02:00PM UTC coverage: 52.281% (+25.3%) from 26.996%
#7148

push

web-flow
Ajuste conforme CTe_Nota_Tecnica_2025_001_RTC_v1.10 (#1126)

* Merge from master

* Revert "Merge from master"

This reverts commit e2ed141c3.

* Revert "Revert "Merge from master""

This reverts commit 05781623b.

* Adição do campo indDoacao e grupo de informações de estorno de crédito. Exclusão do grupo de informações do crédito presumido por não se aplicar aos cClassTrib associados ao CTe. Conforme CTe_Nota_Tecnica_2025_001_RTC_v1.10.

103 of 276 new or added lines in 17 files covered. (37.32%)

2968 existing lines in 404 files now uncovered.

14761 of 28234 relevant lines covered (52.28%)

0.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.29
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoICMS20.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoImpostoTributacaoICMS;
5
import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoItemModalidadeBCICMS;
6
import com.fincatto.documentofiscal.nfe400.classes.NFNotaMotivoDesoneracaoICMS;
7
import com.fincatto.documentofiscal.nfe400.classes.NFOrigem;
8
import com.fincatto.documentofiscal.nfe400.classes.NFTipoDeducaoIcms;
9
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
10
import java.math.BigDecimal;
11
import org.simpleframework.xml.Element;
12

13
public class NFNotaInfoItemImpostoICMS20 extends DFBase {
1✔
14

15
    private static final long serialVersionUID = -7632059708755735047L;
16

17
    @Element(name = "orig")
18
    private NFOrigem origem;
19

20
    @Element(name = "CST")
21
    private NFNotaInfoImpostoTributacaoICMS situacaoTributaria;
22

23
    @Element(name = "modBC")
24
    private NFNotaInfoItemModalidadeBCICMS modalidadeBCICMS;
25

26
    @Element(name = "pRedBC")
27
    private String percentualReducaoBC;
28

29
    @Element(name = "vBC")
30
    private String valorBCICMS;
31

32
    @Element(name = "pICMS")
33
    private String percentualAliquota;
34

35
    @Element(name = "vICMS")
36
    private String valorTributo;
37

38
    @Element(name = "vBCFCP", required = false)
39
    private String valorBCFundoCombatePobreza;
40

41
    @Element(name = "pFCP", required = false)
42
    private String percentualFundoCombatePobreza;
43

44
    @Element(name = "vFCP", required = false)
45
    private String valorFundoCombatePobreza;
46

47
    @Element(name = "vICMSDeson", required = false)
48
    private String valorICMSDesoneracao;
49

50
    @Element(name = "motDesICMS", required = false)
51
    private NFNotaMotivoDesoneracaoICMS desoneracao;
52

53
    @Element(name = "indDeduzDeson", required = false)
54
    private NFTipoDeducaoIcms indicaDeduzDesoneracao;
55

56
    public void setOrigem(final NFOrigem origem) {
57
        this.origem = origem;
1✔
58
    }
1✔
59

60
    public void setSituacaoTributaria(final NFNotaInfoImpostoTributacaoICMS situacaoTributaria) {
61
        this.situacaoTributaria = situacaoTributaria;
1✔
62
    }
1✔
63

64
    public void setModalidadeBCICMS(final NFNotaInfoItemModalidadeBCICMS modalidadeBCICMS) {
65
        this.modalidadeBCICMS = modalidadeBCICMS;
1✔
66
    }
1✔
67

68
    public void setPercentualReducaoBC(final BigDecimal percentualReducaoBC) {
69
        this.percentualReducaoBC = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(percentualReducaoBC, "Percentual Reducao BC ICMS20 Item");
1✔
70
    }
1✔
71

72
    public void setValorBCICMS(final BigDecimal valorBCICMS) {
73
        this.valorBCICMS = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorBCICMS, "Valor BC ICMS ICMS20 Item");
1✔
74
    }
1✔
75

76
    public void setPercentualAliquota(final BigDecimal aliquota) {
77
        this.percentualAliquota = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(aliquota, "Aliquota ICMS20 Item");
1✔
78
    }
1✔
79

80
    public void setValorTributo(final BigDecimal valorTributo) {
81
        this.valorTributo = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorTributo, "Valor Tributo ICMS20 Item");
1✔
82
    }
1✔
83

84
    public void setDesoneracao(final NFNotaMotivoDesoneracaoICMS outros) {
85
        this.desoneracao = outros;
1✔
86
    }
1✔
87

88
    public void setValorICMSDesoneracao(final BigDecimal valorICMSDesoneracao) {
89
        this.valorICMSDesoneracao = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorICMSDesoneracao, "Valor ICMS Desoneracao ICMS20 Item");
1✔
90
    }
1✔
91

92
    public void setValorBCFundoCombatePobreza(final BigDecimal valorBCFundoCombatePobreza) {
93
        this.valorBCFundoCombatePobreza = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorBCFundoCombatePobreza, "Valor base calculo fundo combate pobreza");
1✔
94
    }
1✔
95

96
    public void setPercentualFundoCombatePobreza(final BigDecimal percentualFundoCombatePobreza) {
97
        if (percentualFundoCombatePobreza.signum() <= 0) {
1✔
98
            throw new IllegalStateException("Percentual fundo de combate a pobreza precisa ser maior que zero!");
1✔
99
        }
100
        this.percentualFundoCombatePobreza = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(percentualFundoCombatePobreza, "Percentual fundo combate pobreza");
1✔
101
    }
1✔
102

103
    public void setValorFundoCombatePobreza(final BigDecimal valorFundoCombatePobreza) {
104
        this.valorFundoCombatePobreza = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorFundoCombatePobreza, "Valor fundo combate pobreza");
1✔
105
    }
1✔
106

107
    public NFOrigem getOrigem() {
UNCOV
108
        return this.origem;
×
109
    }
110

111
    public NFNotaInfoImpostoTributacaoICMS getSituacaoTributaria() {
UNCOV
112
        return this.situacaoTributaria;
×
113
    }
114

115
    public NFNotaInfoItemModalidadeBCICMS getModalidadeBCICMS() {
UNCOV
116
        return this.modalidadeBCICMS;
×
117
    }
118

119
    public String getPercentualReducaoBC() {
UNCOV
120
        return this.percentualReducaoBC;
×
121
    }
122

123
    public String getValorBCICMS() {
UNCOV
124
        return this.valorBCICMS;
×
125
    }
126

127
    public String getPercentualAliquota() {
UNCOV
128
        return this.percentualAliquota;
×
129
    }
130

131
    public String getValorTributo() {
UNCOV
132
        return this.valorTributo;
×
133
    }
134

135
    public String getValorICMSDesoneracao() {
UNCOV
136
        return this.valorICMSDesoneracao;
×
137
    }
138

139
    public NFNotaMotivoDesoneracaoICMS getDesoneracao() {
UNCOV
140
        return this.desoneracao;
×
141
    }
142

143
    public String getValorBCFundoCombatePobreza() {
UNCOV
144
        return this.valorBCFundoCombatePobreza;
×
145
    }
146

147
    public String getPercentualFundoCombatePobreza() {
UNCOV
148
        return this.percentualFundoCombatePobreza;
×
149
    }
150

151
    public String getValorFundoCombatePobreza() {
UNCOV
152
        return this.valorFundoCombatePobreza;
×
153
    }
154

155
    public NFTipoDeducaoIcms getIndicaDeduzDesoneracao() {
UNCOV
156
        return indicaDeduzDesoneracao;
×
157
    }
158

159
    public void setIndicaDeduzDesoneracao(NFTipoDeducaoIcms indicaDeduzDesoneracao) {
UNCOV
160
        this.indicaDeduzDesoneracao = indicaDeduzDesoneracao;
×
UNCOV
161
    }
×
162
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc