Record Class ItemSemCancelamento

java.lang.Object
java.lang.Record
systextil.bo.obrf.ItemSemCancelamento
Record Components:
sequencia - a sequencia do item
transacao - a transacao do item
transacaoTerceiro - a transacao de terceiro que atualiza estoque e nao tem cancelamento que atualize o estoque; 0 quando o que falta e o cancelamento da propria transacao do item

public record ItemSemCancelamento(int sequencia, int transacao, int transacaoTerceiro) extends Record
Item da NF de entrada cuja transacao, ou a transacao de terceiro dela, nao tem a transacao de cancelamento (ESTQ_005.TRANS_CANCELAMENTO) que o estorno do item usa no cancelamento da nota.
  • Constructor Details

    • ItemSemCancelamento

      public ItemSemCancelamento(int sequencia, int transacao, int transacaoTerceiro)
      Creates an instance of a ItemSemCancelamento record class.
      Parameters:
      sequencia - the value for the sequencia record component
      transacao - the value for the transacao record component
      transacaoTerceiro - the value for the transacaoTerceiro record component
  • Method Details

    • primeiro

      public static Optional<ItemSemCancelamento> primeiro(br.com.intersys.systextil.connection.AppConnection conn, int documento, String serie, CNPJ forn)
      Primeiro item da nota, pela sequencia, sem a transacao de cancelamento. No cancelamento da nota a trigger da OBRF_015 recusa o item sem cancelamento e pula sem erro o estorno no deposito de terceiro.
    • 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. All components in this record class 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.
    • sequencia

      public int sequencia()
      Returns the value of the sequencia record component.
      Returns:
      the value of the sequencia record component
    • transacao

      public int transacao()
      Returns the value of the transacao record component.
      Returns:
      the value of the transacao record component
    • transacaoTerceiro

      public int transacaoTerceiro()
      Returns the value of the transacaoTerceiro record component.
      Returns:
      the value of the transacaoTerceiro record component