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

wmixvideo / nfe / #6582

17 Jul 2025 09:30PM UTC coverage: 51.231% (+24.2%) from 26.996%
#6582

push

web-flow
Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e (#1054)

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

14006 of 27339 relevant lines covered (51.23%)

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() {
68
        return this.valorBaseCalculo;
×
69
    }
70

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

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

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

83
    public String getValorTributo() {
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