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

wmixvideo / nfe / #9106

22 May 2026 12:03PM UTC coverage: 50.605% (+23.6%) from 26.996%
#9106

push

web-flow
feat: suporte a CNPJ alfanumérico em chaves NF-e, CT-e e campos CNPJ (#1165)

* feat: adicionando schema 1.14 para cte 4.00

* feat: removendo validacao de apenas numerico no identificador

* feat: removendo validacao de apenas numerico no identificador

* test: adicionando teste

* test: adicionando teste

* test: adicionando teste

* feat: cnpj, chave de cte e nfe para aceitar alfanumerico

---------

Co-authored-by: Matteus Colins Moreira <matteuscolins@Colinss-MacBook-Pro.local>
Co-authored-by: Matteus Colins <matteusc.moreira@gmail.com>
Co-authored-by: Diego Fincatto <58352+fincatto@users.noreply.github.com>

39 of 84 new or added lines in 75 files covered. (46.43%)

2960 existing lines in 403 files now uncovered.

14856 of 29357 relevant lines covered (50.6%)

0.51 hits per line

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

83.33
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFNotaInfoItemImpostoPISST.java
1
package com.fincatto.documentofiscal.nfe310.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 NFNotaInfoItemImpostoPISST extends DFBase {
10
    private static final long serialVersionUID = 3395149664389917725L;
11

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

15
    @Element(name = "pPIS", 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 valorAliquota;
23
    
24
    @Element(name = "vPIS")
25
    private String valorTributo;
26

27
    public NFNotaInfoItemImpostoPISST() {
1✔
28
        this.valorBaseCalculo = null;
1✔
29
        this.percentualAliquota = null;
1✔
30
        this.quantidadeVendida = null;
1✔
31
        this.valorAliquota = null;
1✔
32
        this.valorTributo = null;
1✔
33
    }
1✔
34

35
    public void setValorBaseCalculo(final BigDecimal valorBaseCalculo) {
36
        if (this.valorAliquota != null || this.quantidadeVendida != null) {
1✔
37
            throw new IllegalStateException("Nao pode setar percentual aliquota caso valor aliquota ou quantidade vendida esteja setado");
1✔
38
        }
39
        this.valorBaseCalculo = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorBaseCalculo, "Valor BC PIS ST Item");
1✔
40
    }
1✔
41

42
    public void setPercentualAliquota(final BigDecimal aliquota) {
43
        if (this.valorAliquota != null || this.quantidadeVendida != null) {
1✔
44
            throw new IllegalStateException("Nao pode setar percentual aliquota caso valor aliquota ou quantidade vendida esteja setado");
1✔
45
        }
46
        this.percentualAliquota = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(aliquota, "Aliquota PIS ST Item");
1✔
47
    }
1✔
48

49
    public void setQuantidadeVendida(final BigDecimal quantidadeVendida) {
50
        if (this.percentualAliquota != null || this.valorBaseCalculo != null) {
1✔
51
            throw new IllegalStateException("Nao pode setar valor aliquota caso percentual aliquota ou valor base calculo esteja setado");
1✔
52
        }
53
        this.quantidadeVendida = DFBigDecimalValidador.tamanho16ComAte4CasasDecimais(quantidadeVendida, "Quantidade Vendida PIS ST Item");
1✔
54
    }
1✔
55

56
    public void setValorAliquota(final BigDecimal valorAliquota) {
57
        if (this.percentualAliquota != null || this.valorBaseCalculo != null) {
1✔
58
            throw new IllegalStateException("Nao pode setar valor aliquota caso percentual aliquota ou valor base calculo esteja setado");
1✔
59
        }
60
        this.valorAliquota = DFBigDecimalValidador.tamanho15Com4CasasDecimais(valorAliquota, "Valor Aliquota PIS ST Item");
1✔
61
    }
1✔
62

63
    public void setValorTributo(final BigDecimal valorTributo) {
64
        this.valorTributo = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorTributo, "Valor Tributo PIS ST Item");
1✔
65
    }
1✔
66

67
    public String getValorBaseCalculo() {
UNCOV
68
        return this.valorBaseCalculo;
×
69
    }
70

71
    public String getPercentualAliquota() {
UNCOV
72
        return this.percentualAliquota;
×
73
    }
74

75
    public String getQuantidadeVendida() {
UNCOV
76
        return this.quantidadeVendida;
×
77
    }
78

79
    public String getValorAliquota() {
UNCOV
80
        return this.valorAliquota;
×
81
    }
82

83
    public String getValorTributo() {
UNCOV
84
        return this.valorTributo;
×
85
    }
86
}
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