Package systextil.bo.fatu
Record Class DescontoICMSDiferencaFCI.Resultado
java.lang.Object
java.lang.Record
systextil.bo.fatu.DescontoICMSDiferencaFCI.Resultado
- Record Components:
aplica-truequando o cliente e a natureza de operação concedem o desconto, mesmo com percentual 0valorUnitarioBase- valor unitário antes do descontovalorUnitario- valor unitário com o descontopercentualFci-PEDI_010_FCI.PERCENTUAL_FCIpercentualNatureza-PEDI_010_FCI.PERCENTUAL_NATUREZApercentualAplicado- percentual de desconto aplicado ao valor unitárionumeroFci- número da ficha quando o produto tem FCI vigente; senão, vazio
- Enclosing class:
DescontoICMSDiferencaFCI
public static record DescontoICMSDiferencaFCI.Resultado(boolean aplica, double valorUnitarioBase, double valorUnitario, double percentualFci, double percentualNatureza, double percentualAplicado, String numeroFci)
extends Record
Resultado do desconto de ICMS por diferença de FCI de um item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaplica()Returns the value of theaplicarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenumeroFcirecord component.doubleReturns the value of thepercentualAplicadorecord component.doubleReturns the value of thepercentualFcirecord component.doubleReturns the value of thepercentualNaturezarecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevalorUnitariorecord component.doubleReturns the value of thevalorUnitarioBaserecord component.
-
Constructor Details
-
Resultado
public Resultado(boolean aplica, double valorUnitarioBase, double valorUnitario, double percentualFci, double percentualNatureza, double percentualAplicado, String numeroFci) Creates an instance of aResultadorecord class.- Parameters:
aplica- the value for theaplicarecord componentvalorUnitarioBase- the value for thevalorUnitarioBaserecord componentvalorUnitario- the value for thevalorUnitariorecord componentpercentualFci- the value for thepercentualFcirecord componentpercentualNatureza- the value for thepercentualNaturezarecord componentpercentualAplicado- the value for thepercentualAplicadorecord componentnumeroFci- the value for thenumeroFcirecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
aplica
public boolean aplica()Returns the value of theaplicarecord component.- Returns:
- the value of the
aplicarecord component
-
valorUnitarioBase
public double valorUnitarioBase()Returns the value of thevalorUnitarioBaserecord component.- Returns:
- the value of the
valorUnitarioBaserecord component
-
valorUnitario
public double valorUnitario()Returns the value of thevalorUnitariorecord component.- Returns:
- the value of the
valorUnitariorecord component
-
percentualFci
public double percentualFci()Returns the value of thepercentualFcirecord component.- Returns:
- the value of the
percentualFcirecord component
-
percentualNatureza
public double percentualNatureza()Returns the value of thepercentualNaturezarecord component.- Returns:
- the value of the
percentualNaturezarecord component
-
percentualAplicado
public double percentualAplicado()Returns the value of thepercentualAplicadorecord component.- Returns:
- the value of the
percentualAplicadorecord component
-
numeroFci
Returns the value of thenumeroFcirecord component.- Returns:
- the value of the
numeroFcirecord component
-