Class MCOFCControlCheck
java.lang.Object
org.compiere.model.PO
org.brerp.bancosbrasileiros.model.X_COF_C_ControlCheck
org.brerp.bancosbrasileiros.model.MCOFCControlCheck
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_COF_C_ControlCheck
,I_Persistent
,Evaluatee
Control Check model class
- Version:
- $Id: MCOFCControlCheck.java, 15/01/2015 10:53:51 gabriels
- Author:
- Gabriel S Schneider (gabriel.schneider@devcoffee.com.br, http://www.devcoffee.com.br)
- See Also:
-
Field Summary
Fields inherited from class org.brerp.bancosbrasileiros.model.X_COF_C_ControlCheck
CHANGETYPE_Cheque, CHANGETYPE_Dinheiro
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, UUID_NEW_RECORD, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
Fields inherited from interface org.brerp.bancosbrasileiros.model.I_COF_C_ControlCheck
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_Address1, COLUMNNAME_BankName, COLUMNNAME_C_Bank_ID, COLUMNNAME_C_BankAccount_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_BPartner_Location_ID, COLUMNNAME_C_Payment_ID, COLUMNNAME_ChangeDate, COLUMNNAME_ChangeType, COLUMNNAME_ChequeNo, COLUMNNAME_cof_AccountDigit, COLUMNNAME_cof_AccountNo, COLUMNNAME_cof_AgencyDigit, COLUMNNAME_cof_AgencyNo, COLUMNNAME_COF_BPartner_ID, COLUMNNAME_COF_C_Alinea_ID, COLUMNNAME_COF_C_Alinea2_ID, COLUMNNAME_COF_C_CheckCustody_ID, COLUMNNAME_COF_C_ControlCheck_ID, COLUMNNAME_COF_C_ControlCheck_UU, COLUMNNAME_cof_cedente_CPFCNPJ, COLUMNNAME_cof_ChangeCheck, COLUMNNAME_cof_CheckChangeTo_ID, COLUMNNAME_cof_CheckClearing, COLUMNNAME_COF_CodBarraCheque, COLUMNNAME_COF_DataDevolucao, COLUMNNAME_cof_DateCleared, COLUMNNAME_cof_DateResubmit, COLUMNNAME_cof_DateResubmit2, COLUMNNAME_COF_FaturaReapresentacao_ID, COLUMNNAME_cof_IsChangeCheck, COLUMNNAME_cof_IsClearedCheck, COLUMNNAME_cof_IsOwnCheck, COLUMNNAME_COF_IsPrinted, COLUMNNAME_cof_IsReconciled, COLUMNNAME_cof_IssuingName, COLUMNNAME_COF_PagamentoDevolucao_ID, COLUMNNAME_COF_Payment_ID, COLUMNNAME_cof_Processed, COLUMNNAME_cof_ReasonChange, COLUMNNAME_cof_ResetCheckClearing, COLUMNNAME_cof_ResubmitCheck, COLUMNNAME_cof_Serie, COLUMNNAME_cof_ThirdCheck, COLUMNNAME_cof_UseForPayment, COLUMNNAME_Comments, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DateDoc, COLUMNNAME_DateTo, COLUMNNAME_IsActive, COLUMNNAME_IsReceipt, COLUMNNAME_IsReconciled, COLUMNNAME_Processed, COLUMNNAME_Reference, COLUMNNAME_RoutingNo, COLUMNNAME_TotalAmt, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_User1_ID, COLUMNNAME_User2_ID, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMCOFCControlCheck
(Properties ctx, int COF_C_ControlCheck_ID, String trxName) MCOFCControlCheck
(Properties ctx, int COF_C_ControlCheck_ID, String trxName, String... virtualColumns) MCOFCControlCheck
(Properties ctx, String COF_C_ControlCheck_UU, String trxName) MCOFCControlCheck
(Properties ctx, String COF_C_ControlCheck_UU, String trxName, String... virtualColumns) MCOFCControlCheck
(Properties ctx, ResultSet rs, String trxName) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Before Deleteprotected boolean
beforeSave
(boolean newRecord) Called before Save for Pre-Save Operationstatic List<MCOFCControlCheck>
getChecksFromPayment
(MPayment payment, String trxName) Retorna os cheques que foram utilizados para um Pagamento/RecebimentoGet Document Infostatic List<MCOFCControlCheck>
getSelection
(String trxName, int AD_PInstance_ID) Get Control Check when Called of Info Windowboolean
isAvailable
(MPayment payment) Valida se o Cheque pode ser utilizado Atenção: alterar este método implica na revalidação da AD_Val_Rule_ID = 1500064 utilizada na janela de pagamento/recebimentostatic void
setPayment
(MPayment payment) Verifica se existe um cheque definido no pagamento e vincula ao cadastro de chequestatic void
setReconcilied
(MPayment payment) Verifica se existe um pagamento foi reconciliado e atualiza o cadastro de chequestatic String
unsetPayment
(MPayment payment) Remove o vinculo dos cheques relacionados a Pagamento/Recebimentostatic String
validateCheck
(MPayment payment) Valida se o pagamento está de acordo com as informações do(s) cheque(s) relacionado(s).Methods inherited from class org.brerp.bancosbrasileiros.model.X_COF_C_ControlCheck
get_AccessLevel, getAddress1, getBankName, getC_Bank, getC_Bank_ID, getC_BankAccount, getC_BankAccount_ID, getC_BPartner, getC_BPartner_ID, getC_BPartner_Location, getC_BPartner_Location_ID, getC_Payment, getC_Payment_ID, getChangeDate, getChangeType, getChequeNo, getcof_AccountDigit, getcof_AccountNo, getcof_AgencyDigit, getcof_AgencyNo, getCOF_BPartner, getCOF_BPartner_ID, getCOF_C_Alinea, getCOF_C_Alinea_ID, getCOF_C_Alinea2, getCOF_C_Alinea2_ID, getCOF_C_CheckCustody, getCOF_C_CheckCustody_ID, getCOF_C_ControlCheck_ID, getCOF_C_ControlCheck_UU, getcof_cedente_CPFCNPJ, getcof_ChangeCheck, getcof_CheckChangeTo, getcof_CheckChangeTo_ID, getcof_CheckClearing, getCOF_CodBarraCheque, getCOF_DataDevolucao, getcof_DateCleared, getcof_DateResubmit, getcof_DateResubmit2, getCOF_FaturaReapresentacao, getCOF_FaturaReapresentacao_ID, getcof_IssuingName, getCOF_PagamentoDevolucao, getCOF_PagamentoDevolucao_ID, getCOF_Payment, getCOF_Payment_ID, getcof_Processed, getcof_ReasonChange, getcof_ResetCheckClearing, getcof_ResubmitCheck, getcof_Serie, getComments, getDateDoc, getDateTo, getReference, getRoutingNo, getTotalAmt, getUser1, getUser1_ID, getUser2, getUser2_ID, initPO, iscof_IsChangeCheck, iscof_IsClearedCheck, iscof_IsOwnCheck, isCOF_IsPrinted, iscof_IsReconciled, iscof_ThirdCheck, iscof_UseForPayment, isProcessed, isReceipt, isReconciled, setAddress1, setBankName, setC_Bank_ID, setC_BankAccount_ID, setC_BPartner_ID, setC_BPartner_Location_ID, setC_Payment_ID, setChangeDate, setChangeType, setChequeNo, setcof_AccountDigit, setcof_AccountNo, setcof_AgencyDigit, setcof_AgencyNo, setCOF_BPartner_ID, setCOF_C_Alinea_ID, setCOF_C_Alinea2_ID, setCOF_C_CheckCustody_ID, setCOF_C_ControlCheck_ID, setCOF_C_ControlCheck_UU, setcof_cedente_CPFCNPJ, setcof_ChangeCheck, setcof_CheckChangeTo_ID, setcof_CheckClearing, setCOF_CodBarraCheque, setCOF_DataDevolucao, setcof_DateCleared, setcof_DateResubmit, setcof_DateResubmit2, setCOF_FaturaReapresentacao_ID, setcof_IsChangeCheck, setcof_IsClearedCheck, setcof_IsOwnCheck, setCOF_IsPrinted, setcof_IsReconciled, setcof_IssuingName, setCOF_PagamentoDevolucao_ID, setCOF_Payment_ID, setcof_Processed, setcof_ReasonChange, setcof_ResetCheckClearing, setcof_ResubmitCheck, setcof_Serie, setcof_ThirdCheck, setcof_UseForPayment, setComments, setDateDoc, setDateTo, setIsReceipt, setIsReconciled, setProcessed, setReference, setRoutingNo, setTotalAmt, setUser1_ID, setUser2_ID, toString
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, toInsertSQL, unlock, update_Tree, validForeignKeys
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.brerp.bancosbrasileiros.model.I_COF_C_ControlCheck
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
Methods inherited from interface org.compiere.model.I_Persistent
save
-
Constructor Details
-
MCOFCControlCheck
- Parameters:
ctx
-COF_C_ControlCheck_ID
-trxName
-
-
MCOFCControlCheck
- Parameters:
ctx
-rs
-trxName
-
-
MCOFCControlCheck
public MCOFCControlCheck(Properties ctx, int COF_C_ControlCheck_ID, String trxName, String... virtualColumns) -
MCOFCControlCheck
public MCOFCControlCheck(Properties ctx, String COF_C_ControlCheck_UU, String trxName, String... virtualColumns) -
MCOFCControlCheck
-
-
Method Details
-
beforeDelete
protected boolean beforeDelete()Before Delete- Overrides:
beforeDelete
in classPO
- Returns:
- true of it can be deleted
-
getDocumentInfo
Get Document Info- Returns:
- document info (untranslated)
-
isAvailable
Valida se o Cheque pode ser utilizado Atenção: alterar este método implica na revalidação da AD_Val_Rule_ID = 1500064 utilizada na janela de pagamento/recebimento- Returns:
- true or false
-
getChecksFromPayment
Retorna os cheques que foram utilizados para um Pagamento/Recebimento- Parameters:
payment
-trxName
-- Returns:
-
getSelection
Get Control Check when Called of Info Window- Parameters:
trxName
-AD_PInstance_ID
-- Returns:
-
setPayment
Verifica se existe um cheque definido no pagamento e vincula ao cadastro de cheque- Parameters:
payment
-
-
setReconcilied
Verifica se existe um pagamento foi reconciliado e atualiza o cadastro de cheque- Parameters:
payment
-
-
unsetPayment
Remove o vinculo dos cheques relacionados a Pagamento/Recebimento- Parameters:
payment
-
-
validateCheck
Valida se o pagamento está de acordo com as informações do(s) cheque(s) relacionado(s).- Parameters:
payment
-- Returns:
-
beforeSave
protected boolean beforeSave(boolean newRecord) Description copied from class:PO
Called before Save for Pre-Save Operation- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new record- Returns:
- true if record can be saved
-