• 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

51.52
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoCOFINSST.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
5
import org.simpleframework.xml.Element;
6

7
import java.math.BigDecimal;
8

9
public class NFNotaInfoItemImpostoCOFINSST extends DFBase {
10
    private static final long serialVersionUID = -5116872172037197633L;
11

12
    @Element(name = "vBC", required = false)
13
    private String valorBaseCalculo;
14

15
    @Element(name = "pCOFINS", required = false)
16
    private String percentualAliquota;
17

18
    @Element(name = "qBCProd", required = false)
19
    private String quantidadeVendida;
20

21
    @Element(name = "vAliqProd", required = false)
22
    private String valorAliquotaCOFINS;
23
    
24
    @Element(name = "vCOFINS")
25
    private String valorCOFINS;
26

27
    @Element(name = "indSomaCOFINSST", required = false)
28
    private NFIndicadorSomaCofinsST indicadorSomaCOFINSST;
29

30
    public NFNotaInfoItemImpostoCOFINSST() {
1✔
31
        this.valorBaseCalculo = null;
1✔
32
        this.percentualAliquota = null;
1✔
33
        this.quantidadeVendida = null;
1✔
34
        this.valorAliquotaCOFINS = null;
1✔
35
        this.valorCOFINS = null;
1✔
36
    }
1✔
37

38
    public void setValorBaseCalculo(final BigDecimal valorBaseCalculo) {
39
        if (this.quantidadeVendida != null || this.valorAliquotaCOFINS != null) {
1✔
UNCOV
40
            throw new IllegalStateException("Ja foi setado quantidade vendida ou valor aliquota COFINS");
×
41
        }
42
        this.valorBaseCalculo = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorBaseCalculo, "Valor Base Calculo COFINS ST Item");
1✔
43
    }
1✔
44

45
    public void setPercentualAliquota(final BigDecimal aliquota) {
46
        if (this.quantidadeVendida != null || this.valorAliquotaCOFINS != null) {
1✔
UNCOV
47
            throw new IllegalStateException("Ja foi setado quantidade vendida ou valor aliquota COFINS");
×
48
        }
49
        this.percentualAliquota = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(aliquota, "Aliquota COFINS ST Item");
1✔
50
    }
1✔
51

52
    public void setQuantidadeVendida(final BigDecimal quantidadeVendida) {
UNCOV
53
        if (this.valorBaseCalculo != null || this.percentualAliquota != null) {
×
UNCOV
54
            throw new IllegalStateException("Ja foi setado valor da base de calculo ou percentual aliquota COFINS");
×
55
        }
UNCOV
56
        this.quantidadeVendida = DFBigDecimalValidador.tamanho16ComAte4CasasDecimais(quantidadeVendida, "Quantidade COFINS ST Item");
×
UNCOV
57
    }
×
58

59
    public void setValorAliquotaCOFINS(final BigDecimal valorAliquota) {
UNCOV
60
        if (this.valorBaseCalculo != null || this.percentualAliquota != null) {
×
UNCOV
61
            throw new IllegalStateException("Ja foi setado valor da base de calculo ou percentual aliquota COFINS");
×
62
        }
UNCOV
63
        this.valorAliquotaCOFINS = DFBigDecimalValidador.tamanho15Com4CasasDecimais(valorAliquota, "Valor Aliquota COFINS ST Item");
×
UNCOV
64
    }
×
65

66
    public void setValorCOFINS(final BigDecimal valorTributo) {
67
        this.valorCOFINS = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorTributo, "Valor Tributo COFINS ST Item");
1✔
68
    }
1✔
69

70
    public void setIndicadorSomaCOFINSST(NFIndicadorSomaCofinsST indicadorSomaCOFINSST) {
71
        this.indicadorSomaCOFINSST = indicadorSomaCOFINSST;
1✔
72
    }
1✔
73

74
    public String getValorBaseCalculo() {
UNCOV
75
        return this.valorBaseCalculo;
×
76
    }
77

78
    public String getPercentualAliquota() {
UNCOV
79
        return this.percentualAliquota;
×
80
    }
81

82
    public String getQuantidadeVendida() {
UNCOV
83
        return this.quantidadeVendida;
×
84
    }
85

86
    public String getValorAliquotaCOFINS() {
UNCOV
87
        return this.valorAliquotaCOFINS;
×
88
    }
89

90
    public String getValorCOFINS() {
UNCOV
91
        return this.valorCOFINS;
×
92
    }
93

94
    public NFIndicadorSomaCofinsST getIndicadorSomaCOFINSST() {
UNCOV
95
        return indicadorSomaCOFINSST;
×
96
    }
97
}
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