Record Class DescontoICMSDiferencaFCI.Resultado

java.lang.Object
java.lang.Record
systextil.bo.fatu.DescontoICMSDiferencaFCI.Resultado
Record Components:
aplica - true quando o cliente e a natureza de operação concedem o desconto, mesmo com percentual 0
valorUnitarioBase - valor unitário antes do desconto
valorUnitario - valor unitário com o desconto
percentualFci - PEDI_010_FCI.PERCENTUAL_FCI
percentualNatureza - PEDI_010_FCI.PERCENTUAL_NATUREZA
percentualAplicado - percentual de desconto aplicado ao valor unitário
numeroFci - 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 Details

    • Resultado

      public Resultado(boolean aplica, double valorUnitarioBase, double valorUnitario, double percentualFci, double percentualNatureza, double percentualAplicado, String numeroFci)
      Creates an instance of a Resultado record class.
      Parameters:
      aplica - the value for the aplica record component
      valorUnitarioBase - the value for the valorUnitarioBase record component
      valorUnitario - the value for the valorUnitario record component
      percentualFci - the value for the percentualFci record component
      percentualNatureza - the value for the percentualNatureza record component
      percentualAplicado - the value for the percentualAplicado record component
      numeroFci - the value for the numeroFci record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • aplica

      public boolean aplica()
      Returns the value of the aplica record component.
      Returns:
      the value of the aplica record component
    • valorUnitarioBase

      public double valorUnitarioBase()
      Returns the value of the valorUnitarioBase record component.
      Returns:
      the value of the valorUnitarioBase record component
    • valorUnitario

      public double valorUnitario()
      Returns the value of the valorUnitario record component.
      Returns:
      the value of the valorUnitario record component
    • percentualFci

      public double percentualFci()
      Returns the value of the percentualFci record component.
      Returns:
      the value of the percentualFci record component
    • percentualNatureza

      public double percentualNatureza()
      Returns the value of the percentualNatureza record component.
      Returns:
      the value of the percentualNatureza record component
    • percentualAplicado

      public double percentualAplicado()
      Returns the value of the percentualAplicado record component.
      Returns:
      the value of the percentualAplicado record component
    • numeroFci

      public String numeroFci()
      Returns the value of the numeroFci record component.
      Returns:
      the value of the numeroFci record component