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
public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Persistent
Generated Model for C_CommissionLine- Version:
- Release 9 - $Id$
- Author:
- iDempiere (generated)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
PAYMENTRULE_AD_Reference_ID
PaymentRule AD_Reference_ID=195static String
PAYMENTRULE_Cash
Cash = Bstatic String
PAYMENTRULE_Check
Check = Sstatic String
PAYMENTRULE_CreditCard
Credit Card = Kstatic String
PAYMENTRULE_DirectDebit
Direct Debit = Dstatic String
PAYMENTRULE_DirectDeposit
Direct Deposit = Tstatic String
PAYMENTRULE_MixedPOSPayment
Mixed POS Payment = Mstatic String
PAYMENTRULE_OnCredit
On Credit = P-
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, 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
Constructors Constructor Description X_C_CommissionLine(Properties ctx, int C_CommissionLine_ID, String trxName)
Standard ConstructorX_C_CommissionLine(Properties ctx, ResultSet rs, String trxName)
Load Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
get_AccessLevel()
AccessLevelBigDecimal
getAmtMultiplier()
Get Multiplier Amount.BigDecimal
getAmtSubtract()
Get Subtract Amount.I_C_BP_Group
getC_BP_Group()
int
getC_BP_Group_ID()
Get Business Partner Group.I_C_BPartner
getC_BPartner()
int
getC_BPartner_ID()
Get Business Partner.I_C_Commission
getC_Commission()
int
getC_Commission_ID()
Get Commission.int
getC_CommissionLine_ID()
Get Commission Line.String
getC_CommissionLine_UU()
Get C_CommissionLine_UU.I_C_SalesRegion
getC_SalesRegion()
int
getC_SalesRegion_ID()
Get Sales Region.String
getDescription()
Get Description.KeyNamePair
getKeyNamePair()
Get Record ID/ColumnNameint
getLine()
Get Line No.I_M_Product
getM_Product()
I_M_Product_Category
getM_Product_Category()
int
getM_Product_Category_ID()
Get Product Category.int
getM_Product_ID()
Get Product.int
getOrg_ID()
Get Organization.String
getPaymentRule()
Get Payment Rule.BigDecimal
getQtyMultiplier()
Get Multiplier Quantity.BigDecimal
getQtySubtract()
Get Subtract Quantity.protected POInfo
initPO(Properties ctx)
Load Meta Databoolean
isCommissionOrders()
Get Commission only specified Orders.boolean
isPositiveOnly()
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.String
toString()
String representation-
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, 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_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, 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, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, 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, 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 Detail
-
PAYMENTRULE_AD_Reference_ID
public static final int PAYMENTRULE_AD_Reference_ID
PaymentRule AD_Reference_ID=195- See Also:
- Constant Field Values
-
PAYMENTRULE_Cash
public static final String PAYMENTRULE_Cash
Cash = B- See Also:
- Constant Field Values
-
PAYMENTRULE_DirectDebit
public static final String PAYMENTRULE_DirectDebit
Direct Debit = D- See Also:
- Constant Field Values
-
PAYMENTRULE_CreditCard
public static final String PAYMENTRULE_CreditCard
Credit Card = K- See Also:
- Constant Field Values
-
PAYMENTRULE_MixedPOSPayment
public static final String PAYMENTRULE_MixedPOSPayment
Mixed POS Payment = M- See Also:
- Constant Field Values
-
PAYMENTRULE_OnCredit
public static final String PAYMENTRULE_OnCredit
On Credit = P- See Also:
- Constant Field Values
-
PAYMENTRULE_Check
public static final String PAYMENTRULE_Check
Check = S- See Also:
- Constant Field Values
-
PAYMENTRULE_DirectDeposit
public static final String PAYMENTRULE_DirectDeposit
Direct Deposit = T- See Also:
- Constant Field Values
-
-
Constructor Detail
-
X_C_CommissionLine
public X_C_CommissionLine(Properties ctx, int C_CommissionLine_ID, String trxName)
Standard Constructor
-
X_C_CommissionLine
public X_C_CommissionLine(Properties ctx, ResultSet rs, String trxName)
Load Constructor
-
-
Method Detail
-
get_AccessLevel
protected int get_AccessLevel()
AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 3 - Client - Org
-
initPO
protected POInfo initPO(Properties ctx)
Load Meta Data
-
setAmtMultiplier
public void setAmtMultiplier(BigDecimal AmtMultiplier)
Set Multiplier Amount.- Specified by:
setAmtMultiplier
in interfaceI_C_CommissionLine
- Parameters:
AmtMultiplier
- Multiplier Amount for generating commissions
-
getAmtMultiplier
public BigDecimal getAmtMultiplier()
Get Multiplier Amount.- Specified by:
getAmtMultiplier
in interfaceI_C_CommissionLine
- Returns:
- Multiplier Amount for generating commissions
-
setAmtSubtract
public void setAmtSubtract(BigDecimal AmtSubtract)
Set Subtract Amount.- Specified by:
setAmtSubtract
in interfaceI_C_CommissionLine
- Parameters:
AmtSubtract
- Subtract Amount for generating commissions
-
getAmtSubtract
public BigDecimal getAmtSubtract()
Get Subtract Amount.- Specified by:
getAmtSubtract
in interfaceI_C_CommissionLine
- Returns:
- Subtract Amount for generating commissions
-
getC_BPartner
public I_C_BPartner getC_BPartner() throws RuntimeException
- 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
public I_C_BP_Group getC_BP_Group() throws RuntimeException
- 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
public I_C_Commission getC_Commission() throws RuntimeException
- 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
public KeyNamePair 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
public void setC_CommissionLine_UU(String C_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
public String 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
public I_C_SalesRegion getC_SalesRegion() throws RuntimeException
- 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
public void setDescription(String Description)
Set Description.- Specified by:
setDescription
in interfaceI_C_CommissionLine
- Parameters:
Description
- Optional short description of the record
-
getDescription
public String 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
public I_M_Product_Category getM_Product_Category() throws RuntimeException
- 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
public I_M_Product getM_Product() throws RuntimeException
- 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 client
-
getOrg_ID
public int getOrg_ID()
Get Organization.- Specified by:
getOrg_ID
in interfaceI_C_CommissionLine
- Returns:
- Organizational entity within client
-
setPaymentRule
public void setPaymentRule(String PaymentRule)
Set Payment Rule.- Specified by:
setPaymentRule
in interfaceI_C_CommissionLine
- Parameters:
PaymentRule
- How you pay the invoice
-
getPaymentRule
public String getPaymentRule()
Get Payment Rule.- Specified by:
getPaymentRule
in interfaceI_C_CommissionLine
- Returns:
- How you pay the invoice
-
setQtyMultiplier
public void setQtyMultiplier(BigDecimal QtyMultiplier)
Set Multiplier Quantity.- Specified by:
setQtyMultiplier
in interfaceI_C_CommissionLine
- Parameters:
QtyMultiplier
- Value to multiply quantities by for generating commissions.
-
getQtyMultiplier
public BigDecimal getQtyMultiplier()
Get Multiplier Quantity.- Specified by:
getQtyMultiplier
in interfaceI_C_CommissionLine
- Returns:
- Value to multiply quantities by for generating commissions.
-
setQtySubtract
public void setQtySubtract(BigDecimal QtySubtract)
Set Subtract Quantity.- Specified by:
setQtySubtract
in interfaceI_C_CommissionLine
- Parameters:
QtySubtract
- Quantity to subtract when generating commissions
-
getQtySubtract
public BigDecimal getQtySubtract()
Get Subtract Quantity.- Specified by:
getQtySubtract
in interfaceI_C_CommissionLine
- Returns:
- Quantity to subtract when generating commissions
-
-