Adempiere 3.5.2a

org.compiere.model
Class X_C_CommissionLine

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_C_CommissionLine
All Implemented Interfaces:
Serializable, Comparator, 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 3.5.2a - $Id$
Author:
Adempiere (generated)
See Also:
Serialized Form

Field Summary
static int ORG_ID_AD_Reference_ID
          Org_ID AD_Reference_ID=130
static int PAYMENTRULE_AD_Reference_ID
          PaymentRule AD_Reference_ID=195
static String PAYMENTRULE_Cash
          Cash = B
static String PAYMENTRULE_Check
          Check = S
static String PAYMENTRULE_CreditCard
          Credit Card = K
static String PAYMENTRULE_DirectDebit
          Direct Debit = D
static String PAYMENTRULE_DirectDeposit
          Direct Deposit = T
static 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, 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_AmtMultiplier, COLUMNNAME_AmtSubtract, COLUMNNAME_C_BP_Group_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_Commission_ID, COLUMNNAME_C_CommissionLine_ID, COLUMNNAME_C_SalesRegion_ID, COLUMNNAME_CommissionOrders, COLUMNNAME_Description, COLUMNNAME_IsPositiveOnly, COLUMNNAME_Line, COLUMNNAME_M_Product_Category_ID, COLUMNNAME_M_Product_ID, COLUMNNAME_Org_ID, COLUMNNAME_PaymentRule, COLUMNNAME_QtyMultiplier, COLUMNNAME_QtySubtract, Model, Table_ID, Table_Name
 
Constructor Summary
X_C_CommissionLine(Properties ctx, int C_CommissionLine_ID, String trxName)
          Standard Constructor
X_C_CommissionLine(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
protected  int get_AccessLevel()
          AccessLevel
 BigDecimal getAmtMultiplier()
          Get Multiplier Amount.
 BigDecimal getAmtSubtract()
          Get Subtract Amount.
 int getC_BP_Group_ID()
          Get Business Partner Group.
 I_C_BP_Group getC_BP_Group()
           
 int getC_BPartner_ID()
          Get Business Partner .
 I_C_BPartner getC_BPartner()
           
 int getC_Commission_ID()
          Get Commission.
 I_C_Commission getC_Commission()
           
 int getC_CommissionLine_ID()
          Get Commission Line.
 int getC_SalesRegion_ID()
          Get Sales Region.
 I_C_SalesRegion getC_SalesRegion()
           
 String getDescription()
          Get Description.
 KeyNamePair getKeyNamePair()
          Get Record ID/ColumnName
 int getLine()
          Get Line No.
 int getM_Product_Category_ID()
          Get Product Category.
 I_M_Product_Category getM_Product_Category()
           
 int getM_Product_ID()
          Get Product.
 I_M_Product getM_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 Data
 boolean 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_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, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, 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_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compiere.model.I_Persistent
save
 

Field Detail

ORG_ID_AD_Reference_ID

public static final int ORG_ID_AD_Reference_ID
Org_ID AD_Reference_ID=130

See Also:
Constant Field Values

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_CreditCard

public static final String PAYMENTRULE_CreditCard
Credit Card = K

See Also:
Constant Field Values

PAYMENTRULE_DirectDeposit

public static final String PAYMENTRULE_DirectDeposit
Direct Deposit = T

See Also:
Constant Field Values

PAYMENTRULE_Check

public static final String PAYMENTRULE_Check
Check = S

See Also:
Constant Field Values

PAYMENTRULE_OnCredit

public static final String PAYMENTRULE_OnCredit
On Credit = P

See Also:
Constant Field Values

PAYMENTRULE_DirectDebit

public static final String PAYMENTRULE_DirectDebit
Direct Debit = D

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 class PO
Returns:
3 - Client - Org

initPO

protected POInfo initPO(Properties ctx)
Load Meta Data

Specified by:
initPO in class PO
Parameters:
ctx - context
Returns:
POInfo

toString

public String toString()
Description copied from class: PO
String representation

Overrides:
toString in class PO
Returns:
String representation

setAmtMultiplier

public void setAmtMultiplier(BigDecimal AmtMultiplier)
Set Multiplier Amount.

Specified by:
setAmtMultiplier in interface I_C_CommissionLine
Parameters:
AmtMultiplier - Multiplier Amount for generating commissions

getAmtMultiplier

public BigDecimal getAmtMultiplier()
Get Multiplier Amount.

Specified by:
getAmtMultiplier in interface I_C_CommissionLine
Returns:
Multiplier Amount for generating commissions

setAmtSubtract

public void setAmtSubtract(BigDecimal AmtSubtract)
Set Subtract Amount.

Specified by:
setAmtSubtract in interface I_C_CommissionLine
Parameters:
AmtSubtract - Subtract Amount for generating commissions

getAmtSubtract

public BigDecimal getAmtSubtract()
Get Subtract Amount.

Specified by:
getAmtSubtract in interface I_C_CommissionLine
Returns:
Subtract Amount for generating commissions

getC_BPartner

public I_C_BPartner getC_BPartner()
                           throws Exception
Specified by:
getC_BPartner in interface I_C_CommissionLine
Throws:
Exception

setC_BPartner_ID

public void setC_BPartner_ID(int C_BPartner_ID)
Set Business Partner .

Specified by:
setC_BPartner_ID in interface I_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 interface I_C_CommissionLine
Returns:
Identifies a Business Partner

getC_BP_Group

public I_C_BP_Group getC_BP_Group()
                           throws Exception
Specified by:
getC_BP_Group in interface I_C_CommissionLine
Throws:
Exception

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 interface I_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 interface I_C_CommissionLine
Returns:
Business Partner Group

getC_Commission

public I_C_Commission getC_Commission()
                               throws Exception
Specified by:
getC_Commission in interface I_C_CommissionLine
Throws:
Exception

setC_Commission_ID

public void setC_Commission_ID(int C_Commission_ID)
Set Commission.

Specified by:
setC_Commission_ID in interface I_C_CommissionLine
Parameters:
C_Commission_ID - Commission

getC_Commission_ID

public int getC_Commission_ID()
Get Commission.

Specified by:
getC_Commission_ID in interface I_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 interface I_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 interface I_C_CommissionLine
Returns:
Commission Line

setCommissionOrders

public void setCommissionOrders(boolean CommissionOrders)
Set Commission only specified Orders.

Specified by:
setCommissionOrders in interface I_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 interface I_C_CommissionLine
Returns:
Commission only Orders or Invoices, where this Sales Rep is entered

getC_SalesRegion

public I_C_SalesRegion getC_SalesRegion()
                                 throws Exception
Specified by:
getC_SalesRegion in interface I_C_CommissionLine
Throws:
Exception

setC_SalesRegion_ID

public void setC_SalesRegion_ID(int C_SalesRegion_ID)
Set Sales Region.

Specified by:
setC_SalesRegion_ID in interface I_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 interface I_C_CommissionLine
Returns:
Sales coverage region

setDescription

public void setDescription(String Description)
Set Description.

Specified by:
setDescription in interface I_C_CommissionLine
Parameters:
Description - Optional short description of the record

getDescription

public String getDescription()
Get Description.

Specified by:
getDescription in interface I_C_CommissionLine
Returns:
Optional short description of the record

setIsPositiveOnly

public void setIsPositiveOnly(boolean IsPositiveOnly)
Set Positive only.

Specified by:
setIsPositiveOnly in interface I_C_CommissionLine
Parameters:
IsPositiveOnly - Do not generate negative commissions

isPositiveOnly

public boolean isPositiveOnly()
Get Positive only.

Specified by:
isPositiveOnly in interface I_C_CommissionLine
Returns:
Do not generate negative commissions

setLine

public void setLine(int Line)
Set Line No.

Specified by:
setLine in interface I_C_CommissionLine
Parameters:
Line - Unique line for this document

getLine

public int getLine()
Get Line No.

Specified by:
getLine in interface I_C_CommissionLine
Returns:
Unique line for this document

getM_Product_Category

public I_M_Product_Category getM_Product_Category()
                                           throws Exception
Specified by:
getM_Product_Category in interface I_C_CommissionLine
Throws:
Exception

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 interface I_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 interface I_C_CommissionLine
Returns:
Category of a Product

getM_Product

public I_M_Product getM_Product()
                         throws Exception
Specified by:
getM_Product in interface I_C_CommissionLine
Throws:
Exception

setM_Product_ID

public void setM_Product_ID(int M_Product_ID)
Set Product.

Specified by:
setM_Product_ID in interface I_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 interface I_C_CommissionLine
Returns:
Product, Service, Item

setOrg_ID

public void setOrg_ID(int Org_ID)
Set Organization.

Specified by:
setOrg_ID in interface I_C_CommissionLine
Parameters:
Org_ID - Organizational entity within client

getOrg_ID

public int getOrg_ID()
Get Organization.

Specified by:
getOrg_ID in interface I_C_CommissionLine
Returns:
Organizational entity within client

setPaymentRule

public void setPaymentRule(String PaymentRule)
Set Payment Rule.

Specified by:
setPaymentRule in interface I_C_CommissionLine
Parameters:
PaymentRule - How you pay the invoice

getPaymentRule

public String getPaymentRule()
Get Payment Rule.

Specified by:
getPaymentRule in interface I_C_CommissionLine
Returns:
How you pay the invoice

setQtyMultiplier

public void setQtyMultiplier(BigDecimal QtyMultiplier)
Set Multiplier Quantity.

Specified by:
setQtyMultiplier in interface I_C_CommissionLine
Parameters:
QtyMultiplier - Value to multiply quantities by for generating commissions.

getQtyMultiplier

public BigDecimal getQtyMultiplier()
Get Multiplier Quantity.

Specified by:
getQtyMultiplier in interface I_C_CommissionLine
Returns:
Value to multiply quantities by for generating commissions.

setQtySubtract

public void setQtySubtract(BigDecimal QtySubtract)
Set Subtract Quantity.

Specified by:
setQtySubtract in interface I_C_CommissionLine
Parameters:
QtySubtract - Quantity to subtract when generating commissions

getQtySubtract

public BigDecimal getQtySubtract()
Get Subtract Quantity.

Specified by:
getQtySubtract in interface I_C_CommissionLine
Returns:
Quantity to subtract when generating commissions

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.