Package org.brerp.base.process
Class ProcCOFCommissionCalc
java.lang.Object
org.compiere.process.SvrProcess
org.compiere.process.CommissionCalc
org.brerp.base.process.ProcCOFCommissionCalc
- All Implemented Interfaces:
ProcessCall
- Direct Known Subclasses:
ProcMassiveCommission
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected booleanprotected booleanprotected BigDecimalprotected final Stringprotected final Stringprotected BigDecimalprotected BigDecimalprotected BigDecimalprotected Stringprotected BigDecimalprotected final StringFields inherited from class org.compiere.process.CommissionCalc
m_com, m_EndDate, p_StartDateFields inherited from class org.compiere.process.SvrProcess
log, MSG_InvalidArguments, MSG_SaveErrorRowNotFound, PROCESS_INFO_CTX_KEY, PROCESS_UI_CTX_KEY, processUI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MCOFConfiguracaoMetabuscarMetaAtingida(BigDecimal resultadoMeta, BigDecimal resultadoPrecoMedio, MCommissionLine commissionLine) protected MCommissionRunCreates the Commission run with the parameter start date and sets the descriptionprotected voidcreateDetail(String sql, MCommissionAmt comAmt) Create Commission Detailprotected StringdoIt(int row_ID) Perform process.protected MCommissionRunprotected StringgetCommissionLineWhereClause(MCommissionLine commissionLine) Creates the SQL WHERE clause based on the field values defined in the Commission Lien recordprotected StringCreates the SQL statement for invoices (C_Invoice)protected StringCreates the SQL statement for orders (C_Order)Methods inherited from class org.compiere.process.CommissionCalc
checkParameters, doIt, getCommissionCalculationSQL, getCommissionRunDescription, getPaymentCommissionSQL, prepare, setStartEndDateMethods inherited from class org.compiere.process.SvrProcess
addBufferLog, addLog, addLog, addLog, commit, commitEx, doIt, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getCtx, getName, getParameter, getProcessInfo, getRecord_ID, getRecord_IDs, getRecord_UU, getRecord_UUs, getTable_ID, isLocked, lockObject, postProcess, rollback, saveProgress, saveStatus, setProcessUI, startProcess, statusUpdate, unlockObject, updateProgress
-
Field Details
-
metaAlcancada
-
valorTotal
-
pesoTotal
-
qtdTotal
-
META_POR_PESO
- See Also:
-
META_POR_VALOR
- See Also:
-
isIncluirMeta
protected boolean isIncluirMeta -
isConsiderarPrecoMedio
protected boolean isConsiderarPrecoMedio -
DIGITADOR
- See Also:
-
VENDEDOR
- See Also:
-
tipoDeMeta
-
meta
-
COF_ISCALCAVALIACAO
- See Also:
-
-
Constructor Details
-
ProcCOFCommissionCalc
public ProcCOFCommissionCalc()
-
-
Method Details
-
doIt
Description copied from class:CommissionCalcPerform process.- Overrides:
doItin classCommissionCalc- Returns:
- Message (text with variables)
- Throws:
Exception- if not successful
-
geraComissao
- Throws:
Exception
-
getOrderCommissionSQL
Description copied from class:CommissionCalcCreates the SQL statement for orders (C_Order)- Overrides:
getOrderCommissionSQLin classCommissionCalc- Returns:
- SQL statement
-
getInvoiceCommissionSQL
Creates the SQL statement for invoices (C_Invoice)- Overrides:
getInvoiceCommissionSQLin classCommissionCalc- Returns:
- SQL statement
-
createDetail
Description copied from class:CommissionCalcCreate Commission Detail- Overrides:
createDetailin classCommissionCalc- Parameters:
sql- sql statementcomAmt- parent- Throws:
Exception
-
buscarMetaAtingida
protected MCOFConfiguracaoMeta buscarMetaAtingida(BigDecimal resultadoMeta, BigDecimal resultadoPrecoMedio, MCommissionLine commissionLine) -
getCommissionLineWhereClause
Creates the SQL WHERE clause based on the field values defined in the Commission Lien record- Overrides:
getCommissionLineWhereClausein classCommissionCalc- Returns:
- SQL statement
-
createCommissionRun
Description copied from class:CommissionCalcCreates the Commission run with the parameter start date and sets the description- Overrides:
createCommissionRunin classCommissionCalc- Returns:
- MCommissionRun
-