Package systextil.bo.obrf
Record Class ItemSemCancelamento
java.lang.Object
java.lang.Record
systextil.bo.obrf.ItemSemCancelamento
- Record Components:
sequencia- a sequencia do itemtransacao- a transacao do itemtransacaoTerceiro- 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 Summary
ConstructorsConstructorDescriptionItemSemCancelamento(int sequencia, int transacao, int transacaoTerceiro) Creates an instance of aItemSemCancelamentorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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.intReturns the value of thesequenciarecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetransacaorecord component.intReturns the value of thetransacaoTerceirorecord component.
-
Constructor Details
-
ItemSemCancelamento
public ItemSemCancelamento(int sequencia, int transacao, int transacaoTerceiro) Creates an instance of aItemSemCancelamentorecord class.- Parameters:
sequencia- the value for thesequenciarecord componenttransacao- the value for thetransacaorecord componenttransacaoTerceiro- the value for thetransacaoTerceirorecord 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
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. All components in this record class are compared with '=='. -
sequencia
public int sequencia()Returns the value of thesequenciarecord component.- Returns:
- the value of the
sequenciarecord component
-
transacao
public int transacao()Returns the value of thetransacaorecord component.- Returns:
- the value of the
transacaorecord component
-
transacaoTerceiro
public int transacaoTerceiro()Returns the value of thetransacaoTerceirorecord component.- Returns:
- the value of the
transacaoTerceirorecord component
-