Package org.compiere.model
Class X_C_CommissionLine
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_C_CommissionLine
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_C_CommissionLine
,I_Persistent
,Evaluatee
- Direct Known Subclasses:
MCommissionLine
Generated Model for C_CommissionLine
- Version:
- Release 11 - $Id$
- Author:
- iDempiere (generated)
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
PaymentRule AD_Reference_ID=195static final String
Cash = Bstatic final String
Check = Sstatic final String
Credit Card = Kstatic final String
Direct Debit = Dstatic final String
Direct Deposit = Tstatic final String
Mixed POS Payment = Mstatic final String
On Credit = PFields 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.compiere.model.I_C_CommissionLine
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AmtMultiplier, COLUMNNAME_AmtSubtract, COLUMNNAME_C_BP_Group_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_Commission_ID, COLUMNNAME_C_CommissionLine_ID, COLUMNNAME_C_CommissionLine_UU, COLUMNNAME_C_SalesRegion_ID, COLUMNNAME_CommissionOrders, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Description, COLUMNNAME_IsActive, COLUMNNAME_IsPositiveOnly, COLUMNNAME_Line, COLUMNNAME_M_Product_Category_ID, COLUMNNAME_M_Product_ID, COLUMNNAME_Org_ID, COLUMNNAME_PaymentRule, COLUMNNAME_QtyMultiplier, COLUMNNAME_QtySubtract, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionX_C_CommissionLine
(Properties ctx, int C_CommissionLine_ID, String trxName) Standard ConstructorX_C_CommissionLine
(Properties ctx, int C_CommissionLine_ID, String trxName, String... virtualColumns) Standard ConstructorX_C_CommissionLine
(Properties ctx, String C_CommissionLine_UU, String trxName) Standard ConstructorX_C_CommissionLine
(Properties ctx, String C_CommissionLine_UU, String trxName, String... virtualColumns) Standard ConstructorX_C_CommissionLine
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected int
AccessLevelGet Multiplier Amount.Get Subtract Amount.int
Get Business Partner Group.int
Get Business Partner.int
Get Commission.int
Get Commission Line.Get C_CommissionLine_UU.int
Get Sales Region.Get Description.Get Record ID/ColumnNameint
getLine()
Get Line No.int
Get Product Category.int
Get Product.int
Get Organization.Get Payment Rule.Get Multiplier Quantity.Get Subtract Quantity.protected POInfo
initPO
(Properties ctx) Load Meta Databoolean
Get Commission only specified Orders.boolean
Get Positive only.void
setAmtMultiplier
(BigDecimal AmtMultiplier) Set Multiplier Amount.void
setAmtSubtract
(BigDecimal AmtSubtract) Set Subtract Amount.void
setC_BP_Group_ID
(int C_BP_Group_ID) Set Business Partner Group.void
setC_BPartner_ID
(int C_BPartner_ID) Set Business Partner.void
setC_Commission_ID
(int C_Commission_ID) Set Commission.void
setC_CommissionLine_ID
(int C_CommissionLine_ID) Set Commission Line.void
setC_CommissionLine_UU
(String C_CommissionLine_UU) Set C_CommissionLine_UU.void
setC_SalesRegion_ID
(int C_SalesRegion_ID) Set Sales Region.void
setCommissionOrders
(boolean CommissionOrders) Set Commission only specified Orders.void
setDescription
(String Description) Set Description.void
setIsPositiveOnly
(boolean IsPositiveOnly) Set Positive only.void
setLine
(int Line) Set Line No.void
setM_Product_Category_ID
(int M_Product_Category_ID) Set Product Category.void
setM_Product_ID
(int M_Product_ID) Set Product.void
setOrg_ID
(int Org_ID) Set Organization.void
setPaymentRule
(String PaymentRule) Set Payment Rule.void
setQtyMultiplier
(BigDecimal QtyMultiplier) Set Multiplier Quantity.void
setQtySubtract
(BigDecimal QtySubtract) Set Subtract Quantity.toString()
String representationMethods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, 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.compiere.model.I_C_CommissionLine
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
-
PAYMENTRULE_AD_Reference_ID
public static final int PAYMENTRULE_AD_Reference_IDPaymentRule AD_Reference_ID=195- See Also:
-
PAYMENTRULE_Cash
Cash = B- See Also:
-
PAYMENTRULE_DirectDebit
Direct Debit = D- See Also:
-
PAYMENTRULE_CreditCard
Credit Card = K- See Also:
-
PAYMENTRULE_MixedPOSPayment
Mixed POS Payment = M- See Also:
-
PAYMENTRULE_OnCredit
On Credit = P- See Also:
-
PAYMENTRULE_Check
Check = S- See Also:
-
PAYMENTRULE_DirectDeposit
Direct Deposit = T- See Also:
-
-
Constructor Details
-
X_C_CommissionLine
Standard Constructor -
X_C_CommissionLine
public X_C_CommissionLine(Properties ctx, int C_CommissionLine_ID, String trxName, String... virtualColumns) Standard Constructor -
X_C_CommissionLine
Standard Constructor -
X_C_CommissionLine
public X_C_CommissionLine(Properties ctx, String C_CommissionLine_UU, String trxName, String... virtualColumns) Standard Constructor -
X_C_CommissionLine
Load Constructor
-
-
Method Details
-
get_AccessLevel
protected int get_AccessLevel()AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 3 - Client - Org
-
initPO
Load Meta Data -
toString
Description copied from class:PO
String representation -
setAmtMultiplier
Set Multiplier Amount.- Specified by:
setAmtMultiplier
in interfaceI_C_CommissionLine
- Parameters:
AmtMultiplier
- Multiplier Amount for generating commissions
-
getAmtMultiplier
Get Multiplier Amount.- Specified by:
getAmtMultiplier
in interfaceI_C_CommissionLine
- Returns:
- Multiplier Amount for generating commissions
-
setAmtSubtract
Set Subtract Amount.- Specified by:
setAmtSubtract
in interfaceI_C_CommissionLine
- Parameters:
AmtSubtract
- Subtract Amount for generating commissions
-
getAmtSubtract
Get Subtract Amount.- Specified by:
getAmtSubtract
in interfaceI_C_CommissionLine
- Returns:
- Subtract Amount for generating commissions
-
getC_BPartner
- Specified by:
getC_BPartner
in interfaceI_C_CommissionLine
- Throws:
RuntimeException
-
setC_BPartner_ID
public void setC_BPartner_ID(int C_BPartner_ID) Set Business Partner.- Specified by:
setC_BPartner_ID
in interfaceI_C_CommissionLine
- Parameters:
C_BPartner_ID
- Identifies a Business Partner
-
getC_BPartner_ID
public int getC_BPartner_ID()Get Business Partner.- Specified by:
getC_BPartner_ID
in interfaceI_C_CommissionLine
- Returns:
- Identifies a Business Partner
-
getC_BP_Group
- Specified by:
getC_BP_Group
in interfaceI_C_CommissionLine
- Throws:
RuntimeException
-
setC_BP_Group_ID
public void setC_BP_Group_ID(int C_BP_Group_ID) Set Business Partner Group.- Specified by:
setC_BP_Group_ID
in interfaceI_C_CommissionLine
- Parameters:
C_BP_Group_ID
- Business Partner Group
-
getC_BP_Group_ID
public int getC_BP_Group_ID()Get Business Partner Group.- Specified by:
getC_BP_Group_ID
in interfaceI_C_CommissionLine
- Returns:
- Business Partner Group
-
getC_Commission
- Specified by:
getC_Commission
in interfaceI_C_CommissionLine
- Throws:
RuntimeException
-
setC_Commission_ID
public void setC_Commission_ID(int C_Commission_ID) Set Commission.- Specified by:
setC_Commission_ID
in interfaceI_C_CommissionLine
- Parameters:
C_Commission_ID
- Commission
-
getC_Commission_ID
public int getC_Commission_ID()Get Commission.- Specified by:
getC_Commission_ID
in interfaceI_C_CommissionLine
- Returns:
- Commission
-
getKeyNamePair
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
setC_CommissionLine_ID
public void setC_CommissionLine_ID(int C_CommissionLine_ID) Set Commission Line.- Specified by:
setC_CommissionLine_ID
in interfaceI_C_CommissionLine
- Parameters:
C_CommissionLine_ID
- Commission Line
-
getC_CommissionLine_ID
public int getC_CommissionLine_ID()Get Commission Line.- Specified by:
getC_CommissionLine_ID
in interfaceI_C_CommissionLine
- Returns:
- Commission Line
-
setC_CommissionLine_UU
Set C_CommissionLine_UU.- Specified by:
setC_CommissionLine_UU
in interfaceI_C_CommissionLine
- Parameters:
C_CommissionLine_UU
- C_CommissionLine_UU
-
getC_CommissionLine_UU
Get C_CommissionLine_UU.- Specified by:
getC_CommissionLine_UU
in interfaceI_C_CommissionLine
- Returns:
- C_CommissionLine_UU
-
setCommissionOrders
public void setCommissionOrders(boolean CommissionOrders) Set Commission only specified Orders.- Specified by:
setCommissionOrders
in interfaceI_C_CommissionLine
- Parameters:
CommissionOrders
- Commission only Orders or Invoices, where this Sales Rep is entered
-
isCommissionOrders
public boolean isCommissionOrders()Get Commission only specified Orders.- Specified by:
isCommissionOrders
in interfaceI_C_CommissionLine
- Returns:
- Commission only Orders or Invoices, where this Sales Rep is entered
-
getC_SalesRegion
- Specified by:
getC_SalesRegion
in interfaceI_C_CommissionLine
- Throws:
RuntimeException
-
setC_SalesRegion_ID
public void setC_SalesRegion_ID(int C_SalesRegion_ID) Set Sales Region.- Specified by:
setC_SalesRegion_ID
in interfaceI_C_CommissionLine
- Parameters:
C_SalesRegion_ID
- Sales coverage region
-
getC_SalesRegion_ID
public int getC_SalesRegion_ID()Get Sales Region.- Specified by:
getC_SalesRegion_ID
in interfaceI_C_CommissionLine
- Returns:
- Sales coverage region
-
setDescription
Set Description.- Specified by:
setDescription
in interfaceI_C_CommissionLine
- Parameters:
Description
- Optional short description of the record
-
getDescription
Get Description.- Specified by:
getDescription
in interfaceI_C_CommissionLine
- Returns:
- Optional short description of the record
-
setIsPositiveOnly
public void setIsPositiveOnly(boolean IsPositiveOnly) Set Positive only.- Specified by:
setIsPositiveOnly
in interfaceI_C_CommissionLine
- Parameters:
IsPositiveOnly
- Do not generate negative commissions
-
isPositiveOnly
public boolean isPositiveOnly()Get Positive only.- Specified by:
isPositiveOnly
in interfaceI_C_CommissionLine
- Returns:
- Do not generate negative commissions
-
setLine
public void setLine(int Line) Set Line No.- Specified by:
setLine
in interfaceI_C_CommissionLine
- Parameters:
Line
- Unique line for this document
-
getLine
public int getLine()Get Line No.- Specified by:
getLine
in interfaceI_C_CommissionLine
- Returns:
- Unique line for this document
-
getM_Product_Category
- Specified by:
getM_Product_Category
in interfaceI_C_CommissionLine
- Throws:
RuntimeException
-
setM_Product_Category_ID
public void setM_Product_Category_ID(int M_Product_Category_ID) Set Product Category.- Specified by:
setM_Product_Category_ID
in interfaceI_C_CommissionLine
- Parameters:
M_Product_Category_ID
- Category of a Product
-
getM_Product_Category_ID
public int getM_Product_Category_ID()Get Product Category.- Specified by:
getM_Product_Category_ID
in interfaceI_C_CommissionLine
- Returns:
- Category of a Product
-
getM_Product
- Specified by:
getM_Product
in interfaceI_C_CommissionLine
- Throws:
RuntimeException
-
setM_Product_ID
public void setM_Product_ID(int M_Product_ID) Set Product.- Specified by:
setM_Product_ID
in interfaceI_C_CommissionLine
- Parameters:
M_Product_ID
- Product, Service, Item
-
getM_Product_ID
public int getM_Product_ID()Get Product.- Specified by:
getM_Product_ID
in interfaceI_C_CommissionLine
- Returns:
- Product, Service, Item
-
setOrg_ID
public void setOrg_ID(int Org_ID) Set Organization.- Specified by:
setOrg_ID
in interfaceI_C_CommissionLine
- Parameters:
Org_ID
- Organizational entity within tenant
-
getOrg_ID
public int getOrg_ID()Get Organization.- Specified by:
getOrg_ID
in interfaceI_C_CommissionLine
- Returns:
- Organizational entity within tenant
-
setPaymentRule
Set Payment Rule.- Specified by:
setPaymentRule
in interfaceI_C_CommissionLine
- Parameters:
PaymentRule
- How you pay the invoice
-
getPaymentRule
Get Payment Rule.- Specified by:
getPaymentRule
in interfaceI_C_CommissionLine
- Returns:
- How you pay the invoice
-
setQtyMultiplier
Set Multiplier Quantity.- Specified by:
setQtyMultiplier
in interfaceI_C_CommissionLine
- Parameters:
QtyMultiplier
- Value to multiply quantities by for generating commissions.
-
getQtyMultiplier
Get Multiplier Quantity.- Specified by:
getQtyMultiplier
in interfaceI_C_CommissionLine
- Returns:
- Value to multiply quantities by for generating commissions.
-
setQtySubtract
Set Subtract Quantity.- Specified by:
setQtySubtract
in interfaceI_C_CommissionLine
- Parameters:
QtySubtract
- Quantity to subtract when generating commissions
-
getQtySubtract
Get Subtract Quantity.- Specified by:
getQtySubtract
in interfaceI_C_CommissionLine
- Returns:
- Quantity to subtract when generating commissions
-