Package org.brerp.determination.model
Class MCOFCTaxDeterminationHdr
java.lang.Object
org.compiere.model.PO
org.brerp.determination.model.X_COF_C_TaxDetermination_Hdr
org.brerp.determination.model.MCOFCTaxDeterminationHdr
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_COF_C_TaxDetermination_Hdr
,I_Persistent
,Evaluatee
Model Class
COF_C_TaxDetermination_Hdr
- Version:
- $Id: MCOFCTaxDeterminationHdr.java, 02/12/2015 10:28:54 gschneider
- Author:
- gschneider (gabriel.schneider@devcoffee.com.br>, http://www.devcoffee.com.br)
- See Also:
-
Field Summary
Fields inherited from class org.brerp.determination.model.X_COF_C_TaxDetermination_Hdr
COF_DETERMINATIONTYPE_Anual, COF_DETERMINATIONTYPE_Decendial, COF_DETERMINATIONTYPE_Mensal, COF_DETERMINATIONTYPE_Quinzenal, COF_DETERMINATIONTYPE_Semanal, COF_TABELAANEXOS_AnexoI, COF_TABELAANEXOS_AnexoII, COF_TABELAANEXOS_AnexoIII, COF_TABELAANEXOS_AnexoIV, COF_TABELAANEXOS_AnexoV, COF_TABELAANEXOS_AnexoVI, COF_TIPOAPURACAO_Ambos, COF_TIPOAPURACAO_EstadoDestino, COF_TIPOAPURACAO_EstadoRemetente
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.determination.model.I_COF_C_TaxDetermination_Hdr
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_COF_C_SNRange_ID, COLUMNNAME_COF_C_TaxDetermination_Hdr_Ant_ID, COLUMNNAME_COF_C_TaxDetermination_Hdr_ID, COLUMNNAME_COF_C_TaxDetermination_Hdr_UU, COLUMNNAME_cof_CreditAmt, COLUMNNAME_cof_DebitAmt, COLUMNNAME_cof_DeterminationType, COLUMNNAME_COF_DevolucaoAcumulado, COLUMNNAME_COF_EstadoDestino_ID, COLUMNNAME_COF_FaturamentoAcumulado, COLUMNNAME_cof_isSimpleNational, COLUMNNAME_cof_NumberGuide, COLUMNNAME_cof_OldBalance, COLUMNNAME_COF_OrgST_ID, COLUMNNAME_cof_Processed, COLUMNNAME_cof_Processed2, COLUMNNAME_cof_Processing, COLUMNNAME_cof_Processing2, COLUMNNAME_COF_TabelaAnexos, COLUMNNAME_COF_TipoApuracao, COLUMNNAME_cof_UF, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DateFrom, COLUMNNAME_DateTo, COLUMNNAME_DueDate, COLUMNNAME_IsActive, COLUMNNAME_lbr_CNPJ, COLUMNNAME_lbr_IE, COLUMNNAME_LBR_TaxName_ID, COLUMNNAME_Name, COLUMNNAME_OrgName, COLUMNNAME_Parent_ID, COLUMNNAME_Processed, COLUMNNAME_TotalOpenBalance, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_Value, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMCOFCTaxDeterminationHdr
(Properties ctx, int COF_C_TaxDetermination_Hdr_ID, String trxName) MCOFCTaxDeterminationHdr
(Properties ctx, int COF_C_TaxDetermination_Hdr_ID, String trxName, String... virtualColumns) MCOFCTaxDeterminationHdr
(Properties ctx, String COF_C_TaxDetermination_Hdr_UU, String trxName) MCOFCTaxDeterminationHdr
(Properties ctx, String COF_C_TaxDetermination_Hdr_UU, String trxName, String... virtualColumns) MCOFCTaxDeterminationHdr
(Properties ctx, ResultSet rs, String trxName) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
beforeSave
(boolean newRecord) Called before Save for Pre-Save OperationcreateDeterminationSQL
(Integer LBR_TaxName_ID, Integer param1) Cria a Instrução SQL para Busca de Resultados de Apuraçãovoid
createLine
(Integer param1) Cria a Linha de Lançamento de ApuraçãogetAJ_DebCred
(String type) Total de Ajustes de DébitosgetAJ_Est_CredDeb
(String type) Total de Ajustes de DébitosgetAJ_NF_DebCred
(List<MLBRDocFiscal> dfs, String classificationType) Total de Ajustes de Débito ou Crédito para NFsRetorna todos os Ajustes de Apuração, ativos ou não.get FactsgetFacts()
Retorna todos os Ajustes de Apuração ativos.Retorna todas as Guias de Recolhimento.static List<MCOFCTaxDeterminationHdr>
getHdrs
(int AD_Org_ID, String determinationType, int LBR_TaxName_ID, Timestamp dateFrom, Timestamp dateTo, String trxName) get FactsgetLines()
get Lines from Determination SO / POget Lines from Determination POgetNFs()
get DocFiscal Authorized in PeriodgetOUTROS_CREDITOS
(String taxName, String trxName) Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110getTOT_CREDITOS
(String taxName, String trxName) Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110getVLR_SLD_DEVCRED_Apur
(boolean isCredorField) Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110Methods inherited from class org.brerp.determination.model.X_COF_C_TaxDetermination_Hdr
get_AccessLevel, getCOF_C_SNRange_ID, getCOF_C_TaxDetermination_Hdr_Ant, getCOF_C_TaxDetermination_Hdr_Ant_ID, getCOF_C_TaxDetermination_Hdr_ID, getCOF_C_TaxDetermination_Hdr_UU, getcof_CreditAmt, getcof_DebitAmt, getcof_DeterminationType, getCOF_DevolucaoAcumulado, getCOF_EstadoDestino, getCOF_EstadoDestino_ID, getCOF_FaturamentoAcumulado, getcof_NumberGuide, getcof_OldBalance, getCOF_OrgST_ID, getcof_Processed, getcof_Processed2, getcof_Processing, getcof_Processing2, getCOF_TabelaAnexos, getCOF_TipoApuracao, getcof_UF, getDateFrom, getDateTo, getDueDate, getKeyNamePair, getlbr_CNPJ, getlbr_IE, getLBR_TaxName_ID, getName, getOrgName, getParent, getParent_ID, getTotalOpenBalance, getValue, initPO, iscof_isSimpleNational, isProcessed, setCOF_C_SNRange_ID, setCOF_C_TaxDetermination_Hdr_Ant_ID, setCOF_C_TaxDetermination_Hdr_ID, setCOF_C_TaxDetermination_Hdr_UU, setcof_CreditAmt, setcof_DebitAmt, setcof_DeterminationType, setCOF_DevolucaoAcumulado, setCOF_EstadoDestino_ID, setCOF_FaturamentoAcumulado, setcof_isSimpleNational, setcof_NumberGuide, setcof_OldBalance, setCOF_OrgST_ID, setcof_Processed, setcof_Processed2, setcof_Processing, setcof_Processing2, setCOF_TabelaAnexos, setCOF_TipoApuracao, setcof_UF, setDateFrom, setDateTo, setDueDate, setlbr_CNPJ, setlbr_IE, setLBR_TaxName_ID, setName, setOrgName, setParent_ID, setProcessed, setTotalOpenBalance, setValue, toString
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, 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.determination.model.I_COF_C_TaxDetermination_Hdr
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
-
MCOFCTaxDeterminationHdr
- Parameters:
ctx
-COF_C_TaxDetermination_Hdr_ID
-trxName
-
-
MCOFCTaxDeterminationHdr
- Parameters:
ctx
-rs
-trxName
-
-
MCOFCTaxDeterminationHdr
public MCOFCTaxDeterminationHdr(Properties ctx, int COF_C_TaxDetermination_Hdr_ID, String trxName, String... virtualColumns) -
MCOFCTaxDeterminationHdr
public MCOFCTaxDeterminationHdr(Properties ctx, String COF_C_TaxDetermination_Hdr_UU, String trxName, String... virtualColumns) -
MCOFCTaxDeterminationHdr
public MCOFCTaxDeterminationHdr(Properties ctx, String COF_C_TaxDetermination_Hdr_UU, String trxName)
-
-
Method Details
-
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
-
getNFs
get DocFiscal Authorized in Period- Returns:
-
getLines
get Lines from Determination SO / PO- Returns:
-
getLinesPO
get Lines from Determination PO- Returns:
-
getFacts
Retorna todos os Ajustes de Apuração ativos.- Returns:
-
getAllFacts
Retorna todos os Ajustes de Apuração, ativos ou não.- Returns:
-
getGuides
Retorna todas as Guias de Recolhimento.- Returns:
-
createLine
Cria a Linha de Lançamento de Apuração- Parameters:
paras
-sql
-trxName
-
-
createDeterminationSQL
Cria a Instrução SQL para Busca de Resultados de Apuração- Parameters:
LBR_TaxName_ID
-- Returns:
-
getHdrs
public static List<MCOFCTaxDeterminationHdr> getHdrs(int AD_Org_ID, String determinationType, int LBR_TaxName_ID, Timestamp dateFrom, Timestamp dateTo, String trxName) get Facts- Returns:
-
getCollections
get Facts- Returns:
-
getAJ_DebCred
Total de Ajustes de Débitos- Returns:
-
getAJ_NF_DebCred
Total de Ajustes de Débito ou Crédito para NFs- Returns:
-
getAJ_Est_CredDeb
Total de Ajustes de Débitos- Returns:
-
getVLR_SLD_DEVCRED_Apur
Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110- Returns:
-
getTOT_CREDITOS
Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110- Returns:
-
getOUTROS_CREDITOS
Lógica para Preenchimento dos Campos (VL_SLD_CREDOR_ANT) e (VL_SLD_APURADO) - Registro E110- Returns:
-