Package org.compiere.model
Class X_M_BP_Price
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_M_BP_Price
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_M_BP_Price
,I_Persistent
,Evaluatee
public class X_M_BP_Price extends PO implements I_M_BP_Price, I_Persistent
Generated Model for M_BP_Price- Version:
- Release 9 - $Id$
- Author:
- iDempiere (generated)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
PRICEOVERRIDETYPE_AD_Reference_ID
PriceOverrideType AD_Reference_ID=53410static String
PRICEOVERRIDETYPE_Discount
Discount = Dstatic String
PRICEOVERRIDETYPE_FixedPrice
Fixed Price = 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_M_BP_Price
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_BreakValue, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_Comments, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Discount, COLUMNNAME_IsActive, COLUMNNAME_IsNetPrice, COLUMNNAME_M_BP_Price_ID, COLUMNNAME_M_BP_Price_UU, COLUMNNAME_M_Product_ID, COLUMNNAME_PriceLimit, COLUMNNAME_PriceList, COLUMNNAME_PriceOverrideType, COLUMNNAME_PriceStd, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_ValidFrom, COLUMNNAME_ValidTo, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description X_M_BP_Price(Properties ctx, int M_BP_Price_ID, String trxName)
Standard ConstructorX_M_BP_Price(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
getBreakValue()
Get Break Value.I_C_BPartner
getC_BPartner()
int
getC_BPartner_ID()
Get Business Partner.I_C_Currency
getC_Currency()
int
getC_Currency_ID()
Get Currency.String
getComments()
Get Comments.BigDecimal
getDiscount()
Get Discount %.KeyNamePair
getKeyNamePair()
Get Record ID/ColumnNameint
getM_BP_Price_ID()
Get Business Partner Price.String
getM_BP_Price_UU()
Get M_BP_Price_UU.I_M_Product
getM_Product()
int
getM_Product_ID()
Get Product.BigDecimal
getPriceLimit()
Get Limit Price.BigDecimal
getPriceList()
Get List Price.String
getPriceOverrideType()
Get Price Override Type.BigDecimal
getPriceStd()
Get Standard Price.Timestamp
getValidFrom()
Get Valid from.Timestamp
getValidTo()
Get Valid to.protected POInfo
initPO(Properties ctx)
Load Meta Databoolean
isNetPrice()
Get Net Price.void
setBreakValue(BigDecimal BreakValue)
Set Break Value.void
setC_BPartner_ID(int C_BPartner_ID)
Set Business Partner.void
setC_Currency_ID(int C_Currency_ID)
Set Currency.void
setComments(String Comments)
Set Comments.void
setDiscount(BigDecimal Discount)
Set Discount %.void
setIsNetPrice(boolean IsNetPrice)
Set Net Price.void
setM_BP_Price_ID(int M_BP_Price_ID)
Set Business Partner Price.void
setM_BP_Price_UU(String M_BP_Price_UU)
Set M_BP_Price_UU.void
setM_Product_ID(int M_Product_ID)
Set Product.void
setPriceLimit(BigDecimal PriceLimit)
Set Limit Price.void
setPriceList(BigDecimal PriceList)
Set List Price.void
setPriceOverrideType(String PriceOverrideType)
Set Price Override Type.void
setPriceStd(BigDecimal PriceStd)
Set Standard Price.void
setValidFrom(Timestamp ValidFrom)
Set Valid from.void
setValidTo(Timestamp ValidTo)
Set Valid to.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_M_BP_Price
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
-
PRICEOVERRIDETYPE_AD_Reference_ID
public static final int PRICEOVERRIDETYPE_AD_Reference_ID
PriceOverrideType AD_Reference_ID=53410- See Also:
- Constant Field Values
-
PRICEOVERRIDETYPE_Discount
public static final String PRICEOVERRIDETYPE_Discount
Discount = D- See Also:
- Constant Field Values
-
PRICEOVERRIDETYPE_FixedPrice
public static final String PRICEOVERRIDETYPE_FixedPrice
Fixed Price = P- See Also:
- Constant Field Values
-
-
Constructor Detail
-
X_M_BP_Price
public X_M_BP_Price(Properties ctx, int M_BP_Price_ID, String trxName)
Standard Constructor
-
X_M_BP_Price
public X_M_BP_Price(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
-
setBreakValue
public void setBreakValue(BigDecimal BreakValue)
Set Break Value.- Specified by:
setBreakValue
in interfaceI_M_BP_Price
- Parameters:
BreakValue
- Low Value of trade discount break level
-
getBreakValue
public BigDecimal getBreakValue()
Get Break Value.- Specified by:
getBreakValue
in interfaceI_M_BP_Price
- Returns:
- Low Value of trade discount break level
-
getC_BPartner
public I_C_BPartner getC_BPartner() throws RuntimeException
- Specified by:
getC_BPartner
in interfaceI_M_BP_Price
- Throws:
RuntimeException
-
setC_BPartner_ID
public void setC_BPartner_ID(int C_BPartner_ID)
Set Business Partner.- Specified by:
setC_BPartner_ID
in interfaceI_M_BP_Price
- 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_M_BP_Price
- Returns:
- Identifies a Business Partner
-
getC_Currency
public I_C_Currency getC_Currency() throws RuntimeException
- Specified by:
getC_Currency
in interfaceI_M_BP_Price
- Throws:
RuntimeException
-
setC_Currency_ID
public void setC_Currency_ID(int C_Currency_ID)
Set Currency.- Specified by:
setC_Currency_ID
in interfaceI_M_BP_Price
- Parameters:
C_Currency_ID
- The Currency for this record
-
getC_Currency_ID
public int getC_Currency_ID()
Get Currency.- Specified by:
getC_Currency_ID
in interfaceI_M_BP_Price
- Returns:
- The Currency for this record
-
setComments
public void setComments(String Comments)
Set Comments.- Specified by:
setComments
in interfaceI_M_BP_Price
- Parameters:
Comments
- Comments or additional information
-
getComments
public String getComments()
Get Comments.- Specified by:
getComments
in interfaceI_M_BP_Price
- Returns:
- Comments or additional information
-
setDiscount
public void setDiscount(BigDecimal Discount)
Set Discount %.- Specified by:
setDiscount
in interfaceI_M_BP_Price
- Parameters:
Discount
- Discount in percent
-
getDiscount
public BigDecimal getDiscount()
Get Discount %.- Specified by:
getDiscount
in interfaceI_M_BP_Price
- Returns:
- Discount in percent
-
setIsNetPrice
public void setIsNetPrice(boolean IsNetPrice)
Set Net Price.- Specified by:
setIsNetPrice
in interfaceI_M_BP_Price
- Parameters:
IsNetPrice
- Net Price including all discounts
-
isNetPrice
public boolean isNetPrice()
Get Net Price.- Specified by:
isNetPrice
in interfaceI_M_BP_Price
- Returns:
- Net Price including all discounts
-
setM_BP_Price_ID
public void setM_BP_Price_ID(int M_BP_Price_ID)
Set Business Partner Price.- Specified by:
setM_BP_Price_ID
in interfaceI_M_BP_Price
- Parameters:
M_BP_Price_ID
- Business Partner Price
-
getM_BP_Price_ID
public int getM_BP_Price_ID()
Get Business Partner Price.- Specified by:
getM_BP_Price_ID
in interfaceI_M_BP_Price
- Returns:
- Business Partner Price
-
setM_BP_Price_UU
public void setM_BP_Price_UU(String M_BP_Price_UU)
Set M_BP_Price_UU.- Specified by:
setM_BP_Price_UU
in interfaceI_M_BP_Price
- Parameters:
M_BP_Price_UU
- M_BP_Price_UU
-
getM_BP_Price_UU
public String getM_BP_Price_UU()
Get M_BP_Price_UU.- Specified by:
getM_BP_Price_UU
in interfaceI_M_BP_Price
- Returns:
- M_BP_Price_UU
-
getM_Product
public I_M_Product getM_Product() throws RuntimeException
- Specified by:
getM_Product
in interfaceI_M_BP_Price
- Throws:
RuntimeException
-
setM_Product_ID
public void setM_Product_ID(int M_Product_ID)
Set Product.- Specified by:
setM_Product_ID
in interfaceI_M_BP_Price
- Parameters:
M_Product_ID
- Product, Service, Item
-
getM_Product_ID
public int getM_Product_ID()
Get Product.- Specified by:
getM_Product_ID
in interfaceI_M_BP_Price
- Returns:
- Product, Service, Item
-
getKeyNamePair
public KeyNamePair getKeyNamePair()
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
setPriceLimit
public void setPriceLimit(BigDecimal PriceLimit)
Set Limit Price.- Specified by:
setPriceLimit
in interfaceI_M_BP_Price
- Parameters:
PriceLimit
- Lowest price for a product
-
getPriceLimit
public BigDecimal getPriceLimit()
Get Limit Price.- Specified by:
getPriceLimit
in interfaceI_M_BP_Price
- Returns:
- Lowest price for a product
-
setPriceList
public void setPriceList(BigDecimal PriceList)
Set List Price.- Specified by:
setPriceList
in interfaceI_M_BP_Price
- Parameters:
PriceList
- List Price
-
getPriceList
public BigDecimal getPriceList()
Get List Price.- Specified by:
getPriceList
in interfaceI_M_BP_Price
- Returns:
- List Price
-
setPriceOverrideType
public void setPriceOverrideType(String PriceOverrideType)
Set Price Override Type.- Specified by:
setPriceOverrideType
in interfaceI_M_BP_Price
- Parameters:
PriceOverrideType
- Type of price override, fixed price or discount off list
-
getPriceOverrideType
public String getPriceOverrideType()
Get Price Override Type.- Specified by:
getPriceOverrideType
in interfaceI_M_BP_Price
- Returns:
- Type of price override, fixed price or discount off list
-
setPriceStd
public void setPriceStd(BigDecimal PriceStd)
Set Standard Price.- Specified by:
setPriceStd
in interfaceI_M_BP_Price
- Parameters:
PriceStd
- Standard Price
-
getPriceStd
public BigDecimal getPriceStd()
Get Standard Price.- Specified by:
getPriceStd
in interfaceI_M_BP_Price
- Returns:
- Standard Price
-
setValidFrom
public void setValidFrom(Timestamp ValidFrom)
Set Valid from.- Specified by:
setValidFrom
in interfaceI_M_BP_Price
- Parameters:
ValidFrom
- Valid from including this date (first day)
-
getValidFrom
public Timestamp getValidFrom()
Get Valid from.- Specified by:
getValidFrom
in interfaceI_M_BP_Price
- Returns:
- Valid from including this date (first day)
-
setValidTo
public void setValidTo(Timestamp ValidTo)
Set Valid to.- Specified by:
setValidTo
in interfaceI_M_BP_Price
- Parameters:
ValidTo
- Valid to including this date (last day)
-
getValidTo
public Timestamp getValidTo()
Get Valid to.- Specified by:
getValidTo
in interfaceI_M_BP_Price
- Returns:
- Valid to including this date (last day)
-
-