Package org.brerp.sped.nfe.model
Class MCOFDFe
java.lang.Object
org.compiere.model.PO
org.brerp.sped.nfe.model.X_COF_DFe
org.brerp.sped.nfe.model.MCOFDFe
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_COF_DFe
,I_Persistent
,Evaluatee
NF destinadas
- Version:
- $Id: MCOFDFe.java, v1.0 2015/10/20 10:39:50 AM, muriloht Exp $
- Author:
- Murilo H. Torquato (devCoffee, www.devcoffee.com.br)
- See Also:
-
Field Summary
Fields inherited from class org.brerp.sped.nfe.model.X_COF_DFe
COF_SITDFE_1_Autorizado, COF_SITDFE_2_UsoDenegado, COF_SITDFE_3_Cancelado, DOCUMENTTYPE_0_NFe, DOCUMENTTYPE_1_Evento, EVENTTYPE_Cancelamento, EVENTTYPE_CancelamentoMDF_EAutorizadoComCT_E, EVENTTYPE_CancelamentoPorSubstituição, EVENTTYPE_CancelamentoRegistroDePassagemMDF_E, EVENTTYPE_CancelamentoRegistroPassagemMDF_EComCT_E, EVENTTYPE_CancelamentoRegistroPassagemNF_E, EVENTTYPE_CC_E, EVENTTYPE_CiênciaDaEmissão, EVENTTYPE_ConfirmaçãoDaOperação, EVENTTYPE_CT_EAutorizado, EVENTTYPE_CT_ECancelado, EVENTTYPE_DesconhecimentoDaOperação, EVENTTYPE_EPEC, EVENTTYPE_InternalizaçãoSuframa, EVENTTYPE_MDF_EAutorizado, EVENTTYPE_MDF_EAutorizadoComCT_E, EVENTTYPE_MDF_ECancelado, EVENTTYPE_OperaçãoNãoRealizada, EVENTTYPE_RegistroDePassagemMDF_E, EVENTTYPE_RegistroPassagemAutomáticoMDF_E, EVENTTYPE_RegistroPassagemAutomáticoMDF_EComCT_E, EVENTTYPE_RegistroPassagemMDF_EComCT_E, EVENTTYPE_RegistroPassagemNF_E, EVENTTYPE_RegistroPassagemNF_ERFID, EVENTTYPE_VistoriaSuframa
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.sped.nfe.model.I_COF_DFe
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_BPName, COLUMNNAME_COF_dataDownload, COLUMNNAME_COF_DFe_ID, COLUMNNAME_COF_DFe_UU, COLUMNNAME_cof_ExibirEmRelatorios, COLUMNNAME_COF_Lancado, COLUMNNAME_cof_manifestado, COLUMNNAME_COF_NumDFe, COLUMNNAME_cof_sitDFe, COLUMNNAME_cof_xmlvalido, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DateDoc, COLUMNNAME_DateTrx, COLUMNNAME_Description, COLUMNNAME_DocumentNote, COLUMNNAME_DocumentType, COLUMNNAME_EventType, COLUMNNAME_GrandTotal, COLUMNNAME_infnfe_id, COLUMNNAME_IsActive, COLUMNNAME_IsCancelled, COLUMNNAME_IsSOTrx, COLUMNNAME_lbr_CNPJ, COLUMNNAME_lbr_CPF, COLUMNNAME_lbr_DigestValue, COLUMNNAME_lbr_IE, COLUMNNAME_lbr_NFeProt, COLUMNNAME_Processed, COLUMNNAME_Processing, COLUMNNAME_SeqNo, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMCOFDFe
(Properties ctx, int LBR_PartnerDFe_ID, String trxName) ConstructorMCOFDFe
(Properties ctx, int COF_DFe_ID, String trxName, String... virtualColumns) MCOFDFe
(Properties ctx, String COF_DFe_UU, String trxName) MCOFDFe
(Properties ctx, String COF_DFe_UU, String trxName, String... virtualColumns) MCOFDFe
(Properties ctx, ResultSet rs, String trxName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
afterSave
(boolean newRecord, boolean success) Called after Save for Post-Save Operationprotected boolean
beforeSave
(boolean newRecord) Before Save Prevent from duplicate recordsstatic MCOFDFe
Procura um DF-e para a NFstatic MCOFDFe
get
(Properties ctx, String nfeID) Retrieve DF-e using LBR_NFe_IDstatic MCOFDFe
get
(MLBRDocFiscal nf) Procura um DF-e para a NFGet last Manifested Statusboolean
Check if this DF-e is cancelledboolean
void
setlbr_CNPJ
(String lbr_CNPJ) Apply mask to CNPJvoid
setlbr_CPF
(String lbr_CPF) Apply mask to CPFMethods inherited from class org.brerp.sped.nfe.model.X_COF_DFe
get_AccessLevel, getBPName, getCOF_dataDownload, getCOF_DFe_ID, getCOF_DFe_UU, getCOF_NumDFe, getcof_sitDFe, getDateDoc, getDateTrx, getDescription, getDocumentNote, getDocumentType, getEventType, getGrandTotal, getinfnfe_id, getlbr_CNPJ, getlbr_CPF, getlbr_DigestValue, getlbr_IE, getlbr_NFeProt, getSeqNo, initPO, iscof_ExibirEmRelatorios, isCOF_Lancado, iscof_manifestado, iscof_xmlvalido, isProcessed, isProcessing, isSOTrx, setBPName, setCOF_dataDownload, setCOF_DFe_ID, setCOF_DFe_UU, setcof_ExibirEmRelatorios, setCOF_Lancado, setcof_manifestado, setCOF_NumDFe, setcof_sitDFe, setcof_xmlvalido, setDateDoc, setDateTrx, setDescription, setDocumentNote, setDocumentType, setEventType, setGrandTotal, setinfnfe_id, setIsCancelled, setIsSOTrx, setlbr_DigestValue, setlbr_IE, setlbr_NFeProt, setProcessed, setProcessing, setSeqNo, toString
Methods inherited from class org.compiere.model.PO
afterDelete, beforeDelete, 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.sped.nfe.model.I_COF_DFe
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
-
MCOFDFe
Constructor- Parameters:
ctx
-LBR_NFDest_ID
-trxName
-
-
MCOFDFe
Constructor- Parameters:
ctx
-rs
-trxName
-
-
MCOFDFe
-
MCOFDFe
-
MCOFDFe
-
-
Method Details
-
setlbr_CNPJ
Apply mask to CNPJ- Specified by:
setlbr_CNPJ
in interfaceI_COF_DFe
- Overrides:
setlbr_CNPJ
in classX_COF_DFe
- Parameters:
lbr_CNPJ
- Used to identify Legal Entities in Brazil
-
setlbr_CPF
Apply mask to CPF- Specified by:
setlbr_CPF
in interfaceI_COF_DFe
- Overrides:
setlbr_CPF
in classX_COF_DFe
- Parameters:
lbr_CPF
- Used to identify individuals in Brazil
-
get
Retrieve DF-e using LBR_NFe_ID- Parameters:
ctx
-nfeID
-- Returns:
-
getLastManifest
Get last Manifested Status- Returns:
- last status
-
isCancelled
public boolean isCancelled()Check if this DF-e is cancelled- Specified by:
isCancelled
in interfaceI_COF_DFe
- Overrides:
isCancelled
in classX_COF_DFe
- Returns:
-
beforeSave
protected boolean beforeSave(boolean newRecord) Before Save- Prevent from duplicate records
- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new record- Returns:
- true if record can be saved
-
afterSave
protected boolean afterSave(boolean newRecord, boolean success) Description copied from class:PO
Called after Save for Post-Save Operation -
get
Procura um DF-e para a NF- Parameters:
nf
-- Returns:
-
get
Procura um DF-e para a NF- Parameters:
nf
-- Returns:
-
isEventoDeCancelamento
public boolean isEventoDeCancelamento()
-