• 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

77.36
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImposto.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

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

9
import java.lang.reflect.InvocationTargetException;
10
import java.math.BigDecimal;
11

12
public class NFNotaInfoItemImposto extends DFBase {
1✔
13
    private static final long serialVersionUID = 8579628067567740408L;
14

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

18
    @Element(name = "ICMS", required = false)
19
    private NFNotaInfoItemImpostoICMS icms;
20

21
    @Element(name = "IPI", required = false)
22
    private NFNotaInfoItemImpostoIPI ipi;
23

24
    @Element(name = "II", required = false)
25
    private NFNotaInfoItemImpostoImportacao impostoImportacao;
26

27
    @Element(name = "ISSQN", required = false)
28
    private NFNotaInfoItemImpostoISSQN issqn;
29

30
    @Element(name = "PIS", required = false)
31
    private NFNotaInfoItemImpostoPIS pis;
32

33
    @Element(name = "PISST", required = false)
34
    private NFNotaInfoItemImpostoPISST pisst;
35

36
    @Element(name = "COFINS", required = false)
37
    private NFNotaInfoItemImpostoCOFINS cofins;
38

39
    @Element(name = "COFINSST", required = false)
40
    private NFNotaInfoItemImpostoCOFINSST cofinsst;
41

42
    @Element(name = "ICMSUFDest", required = false)
43
    private NFNotaInfoItemImpostoICMSUFDestino icmsUfDestino;
44
    
45
    @Element(name = "IS", required = false)
46
    private NFNotaInfoItemImpostoIS is; // UB01
47
    
48
    @Element(name = "IBSCBS", required = false)
49
    private NFNotaInfoItemImpostoIBSCBS ibsCbs; // UB12
50

51
    public void setIcms(final NFNotaInfoItemImpostoICMS icms) {
52
        if (this.issqn != null) {
1✔
53
            throw new IllegalStateException("ICMS, IPI e II sao mutuamente exclusivo com ISSQN");
1✔
54
        }
55
        try {
56
            DFStringValidador.validaPreenchimentoDeMargemValorAgregado(icms);
1✔
57
        }catch (IllegalAccessException e) {
×
58
            DFLog.getLogger(NFNotaInfoItemImposto.class)
×
59
                    .error("Erro ao validar preenchimento de Margem de Valor agregado", e);
×
60
        } catch (InvocationTargetException e) {
×
61
            DFLog.getLogger(NFNotaInfoItemImposto.class)
×
62
                    .error("Erro ao validar preenchimento de Margem de Valor agregado", e);
×
63
        }
1✔
64
        this.icms = icms;
1✔
65
    }
1✔
66

67
    public void setIpi(final NFNotaInfoItemImpostoIPI ipi) {
68
        if (this.issqn != null) {
1✔
69
            throw new IllegalStateException("ICMS, IPI e II sao mutuamente exclusivo com ISSQN");
1✔
70
        }
71
        this.ipi = ipi;
1✔
72
    }
1✔
73

74
    public void setImpostoImportacao(final NFNotaInfoItemImpostoImportacao impostoImportacao) {
75
        if (this.issqn != null) {
1✔
76
            throw new IllegalStateException("ICMS, IPI e II sao mutuamente exclusivo com ISSQN");
1✔
77
        }
78
        this.impostoImportacao = impostoImportacao;
1✔
79
    }
1✔
80

81
    public void setIssqn(final NFNotaInfoItemImpostoISSQN issqn) {
82
        if (this.icms != null || this.ipi != null || this.impostoImportacao != null) {
1✔
83
            throw new IllegalStateException("ICMS, IPI e II sao mutuamente exclusivo com ISSQN");
1✔
84
        }
85
        this.issqn = issqn;
1✔
86
    }
1✔
87

88
    public void setPis(final NFNotaInfoItemImpostoPIS pis) {
89
        this.pis = pis;
1✔
90
    }
1✔
91

92
    public void setPisst(final NFNotaInfoItemImpostoPISST pisst) {
93
        this.pisst = pisst;
1✔
94
    }
1✔
95

96
    public void setCofins(final NFNotaInfoItemImpostoCOFINS cofins) {
97
        this.cofins = cofins;
1✔
98
    }
1✔
99

100
    public void setCofinsst(final NFNotaInfoItemImpostoCOFINSST cofinsst) {
101
        this.cofinsst = cofinsst;
1✔
102
    }
1✔
103

104
    public void setValorTotalTributos(final BigDecimal valorTotalTributos) {
105
        this.valorTotalTributos = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorTotalTributos, "Valor Total Tributos");
1✔
106
    }
1✔
107

108
    public String getValorTotalTributos() {
109
        return this.valorTotalTributos;
1✔
110
    }
111

112
    public NFNotaInfoItemImpostoICMS getIcms() {
113
        return this.icms;
1✔
114
    }
115

116
    public NFNotaInfoItemImpostoIPI getIpi() {
117
        return this.ipi;
1✔
118
    }
119

120
    public NFNotaInfoItemImpostoImportacao getImpostoImportacao() {
121
        return this.impostoImportacao;
1✔
122
    }
123

124
    public NFNotaInfoItemImpostoISSQN getIssqn() {
125
        return this.issqn;
1✔
126
    }
127

128
    public NFNotaInfoItemImpostoPIS getPis() {
129
        return this.pis;
1✔
130
    }
131

132
    public NFNotaInfoItemImpostoPISST getPisst() {
133
        return this.pisst;
1✔
134
    }
135

136
    public NFNotaInfoItemImpostoCOFINS getCofins() {
137
        return this.cofins;
1✔
138
    }
139

140
    public NFNotaInfoItemImpostoCOFINSST getCofinsst() {
141
        return this.cofinsst;
1✔
142
    }
143

144
    public NFNotaInfoItemImpostoICMSUFDestino getIcmsUfDestino() {
145
        return this.icmsUfDestino;
1✔
146
    }
147

148
    public void setIcmsUfDestino(final NFNotaInfoItemImpostoICMSUFDestino icmsUfDestino) {
149
        this.icmsUfDestino = icmsUfDestino;
1✔
150
    }
1✔
151

152
    public NFNotaInfoItemImpostoIS getIs() {
153
        return is;
×
154
    }
155

156
    public void setIs(NFNotaInfoItemImpostoIS is) {
157
        this.is = is;
×
158
    }
×
159

160
    public NFNotaInfoItemImpostoIBSCBS getIbsCbs() {
161
        return ibsCbs;
×
162
    }
163

164
    public void setIbsCbs(NFNotaInfoItemImpostoIBSCBS ibsCbs) {
165
        this.ibsCbs = ibsCbs;
×
166
    }
×
167

168
}
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