Package org.brerp.base.model
Class MCOFMetaDeVendas
java.lang.Object
org.compiere.model.PO
org.brerp.base.model.X_COF_MetaDeVendas
org.brerp.base.model.MCOFMetaDeVendas
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_COF_MetaDeVendas
,I_Persistent
,Evaluatee
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.brerp.base.model.X_COF_MetaDeVendas
COF_METODOEXECUTADO_Faturamento, COF_METODOEXECUTADO_OrdemDeVenda, COF_ORG_ID_DOCUMENTO_AD_Reference_ID, COF_TIPODEMETA_Digitador, COF_TIPODEMETA_Global, COF_TIPODEMETA_Representante, COF_VENDEDORINTERNO_AD_Reference_ID
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.base.model.I_COF_MetaDeVendas
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_User_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_COF_CustoTotal, COLUMNNAME_COF_DiasUteisAteDataRecalc, COLUMNNAME_COF_GrupoFornecedor, COLUMNNAME_COF_IsCalcRealizado, COLUMNNAME_COF_IsConsiderarMemorandoCred, COLUMNNAME_COF_IsControleManualDias, COLUMNNAME_COF_IsDesconsiderarDescontos, COLUMNNAME_COF_IsDesconsiderarImpostos, COLUMNNAME_COF_IsDesconsiderarSabados, COLUMNNAME_COF_IsDiaAtualPassado, COLUMNNAME_COF_IsIncluiServico, COLUMNNAME_COF_Markup, COLUMNNAME_COF_Meta, COLUMNNAME_COF_MetaDeVendas_ID, COLUMNNAME_COF_MetaDeVendas_UU, COLUMNNAME_COF_MetaMarkup, COLUMNNAME_COF_MetaQuantidade, COLUMNNAME_COF_MetodoExecutado, COLUMNNAME_COF_MProduct, COLUMNNAME_COF_Org_ID_Documento, COLUMNNAME_COF_PercMargem, COLUMNNAME_COF_PrazoRestante, COLUMNNAME_COF_ProductClass, COLUMNNAME_COF_ProductGroup, COLUMNNAME_cof_ProductType, COLUMNNAME_COF_ProjecaoMeta, COLUMNNAME_COF_ProjecaoMetaQtd, COLUMNNAME_COF_QtdVendida, COLUMNNAME_COF_QtdVendidaKG, COLUMNNAME_COF_RitmoVendasDiarioParaMeta, COLUMNNAME_COF_RitmoVendasDiarioParaMetaQtd, COLUMNNAME_COF_TipoDeMeta, COLUMNNAME_COF_UltimaAtualizacao, COLUMNNAME_COF_UniFatorDivisao, COLUMNNAME_COF_UniFatorMultiplicacao, COLUMNNAME_COF_ValorAtingido, COLUMNNAME_COF_ValorAtingidoQuantidade, COLUMNNAME_COF_ValorEmPorcentagem, COLUMNNAME_COF_ValorRestante, COLUMNNAME_COF_ValorRestanteQuantidade, COLUMNNAME_COF_VendedorInterno, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Description, COLUMNNAME_EndDate, COLUMNNAME_IsActive, COLUMNNAME_M_CostElement_ID, COLUMNNAME_M_CostType_ID, COLUMNNAME_StartDate, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_Value, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMCOFMetaDeVendas
(Properties ctx, int COF_MetaDeVendas_ID, String trxName) MCOFMetaDeVendas
(Properties ctx, int COF_MetaDeVendas_ID, String trxName, String... virtualColumns) MCOFMetaDeVendas
(Properties ctx, String COF_MetaDeVendas_UU, String trxName) MCOFMetaDeVendas
(Properties ctx, String COF_MetaDeVendas_UU, String trxName, String... virtualColumns) MCOFMetaDeVendas
(Properties ctx, ResultSet rs, String trxName) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
beforeSave
(boolean newRecord) Called before Save for Pre-Save Operationvoid
void
void
obterSql()
void
Methods inherited from class org.brerp.base.model.X_COF_MetaDeVendas
get_AccessLevel, getAD_User, getAD_User_ID, getC_Currency, getC_Currency_ID, getCOF_CustoTotal, getCOF_DiasUteisAteDataRecalc, getCOF_GrupoFornecedor, getCOF_Markup, getCOF_Meta, getCOF_MetaDeVendas_ID, getCOF_MetaDeVendas_UU, getCOF_MetaMarkup, getCOF_MetaQuantidade, getCOF_MetodoExecutado, getCOF_MProduct, getCOF_Org_ID_Documento, getCOF_PercMargem, getCOF_PrazoRestante, getCOF_ProductClass, getCOF_ProductGroup, getcof_ProductType, getCOF_ProjecaoMeta, getCOF_ProjecaoMetaQtd, getCOF_QtdVendida, getCOF_QtdVendidaKG, getCOF_RitmoVendasDiarioParaMeta, getCOF_RitmoVendasDiarioParaMetaQtd, getCOF_TipoDeMeta, getCOF_UltimaAtualizacao, getCOF_UniFatorDivisao, getCOF_UniFatorMultiplicacao, getCOF_ValorAtingido, getCOF_ValorAtingidoQuantidade, getCOF_ValorEmPorcentagem, getCOF_ValorRestante, getCOF_ValorRestanteQuantidade, getCOF_VendedorInterno, getDescription, getEndDate, getM_CostElement, getM_CostElement_ID, getM_CostType, getM_CostType_ID, getStartDate, getValue, initPO, isCOF_IsCalcRealizado, isCOF_IsConsiderarMemorandoCred, isCOF_IsControleManualDias, isCOF_IsDesconsiderarDescontos, isCOF_IsDesconsiderarImpostos, isCOF_IsDesconsiderarSabados, isCOF_IsDiaAtualPassado, isCOF_IsIncluiServico, setAD_User_ID, setC_Currency_ID, setCOF_CustoTotal, setCOF_DiasUteisAteDataRecalc, setCOF_GrupoFornecedor, setCOF_IsCalcRealizado, setCOF_IsConsiderarMemorandoCred, setCOF_IsControleManualDias, setCOF_IsDesconsiderarDescontos, setCOF_IsDesconsiderarImpostos, setCOF_IsDesconsiderarSabados, setCOF_IsDiaAtualPassado, setCOF_IsIncluiServico, setCOF_Markup, setCOF_Meta, setCOF_MetaDeVendas_ID, setCOF_MetaDeVendas_UU, setCOF_MetaMarkup, setCOF_MetaQuantidade, setCOF_MetodoExecutado, setCOF_MProduct, setCOF_Org_ID_Documento, setCOF_PercMargem, setCOF_PrazoRestante, setCOF_ProductClass, setCOF_ProductGroup, setcof_ProductType, setCOF_ProjecaoMeta, setCOF_ProjecaoMetaQtd, setCOF_QtdVendida, setCOF_QtdVendidaKG, setCOF_RitmoVendasDiarioParaMeta, setCOF_RitmoVendasDiarioParaMetaQtd, setCOF_TipoDeMeta, setCOF_UltimaAtualizacao, setCOF_UniFatorDivisao, setCOF_UniFatorMultiplicacao, setCOF_ValorAtingido, setCOF_ValorAtingidoQuantidade, setCOF_ValorEmPorcentagem, setCOF_ValorRestante, setCOF_ValorRestanteQuantidade, setCOF_VendedorInterno, setDescription, setEndDate, setM_CostElement_ID, setM_CostType_ID, setStartDate, 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.base.model.I_COF_MetaDeVendas
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
-
Field Details
-
COLUNAS_QUE_GERAM_RECALCULO
-
-
Constructor Details
-
MCOFMetaDeVendas
-
MCOFMetaDeVendas
-
MCOFMetaDeVendas
public MCOFMetaDeVendas(Properties ctx, int COF_MetaDeVendas_ID, String trxName, String... virtualColumns) -
MCOFMetaDeVendas
public MCOFMetaDeVendas(Properties ctx, String COF_MetaDeVendas_UU, String trxName, String... virtualColumns) -
MCOFMetaDeVendas
-
-
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
-
obterSql
-
setPrazoRestante
public void setPrazoRestante() -
calcularDiasPercorridos
public void calcularDiasPercorridos() -
calcularMargem
public void calcularMargem() -
calcularMarkup
public void calcularMarkup()
-