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 intPRICEOVERRIDETYPE_AD_Reference_IDPriceOverrideType AD_Reference_ID=53410static StringPRICEOVERRIDETYPE_DiscountDiscount = Dstatic StringPRICEOVERRIDETYPE_FixedPriceFixed 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 intget_AccessLevel()AccessLevelBigDecimalgetBreakValue()Get Break Value.I_C_BPartnergetC_BPartner()intgetC_BPartner_ID()Get Business Partner.I_C_CurrencygetC_Currency()intgetC_Currency_ID()Get Currency.StringgetComments()Get Comments.BigDecimalgetDiscount()Get Discount %.KeyNamePairgetKeyNamePair()Get Record ID/ColumnNameintgetM_BP_Price_ID()Get Business Partner Price.StringgetM_BP_Price_UU()Get M_BP_Price_UU.I_M_ProductgetM_Product()intgetM_Product_ID()Get Product.BigDecimalgetPriceLimit()Get Limit Price.BigDecimalgetPriceList()Get List Price.StringgetPriceOverrideType()Get Price Override Type.BigDecimalgetPriceStd()Get Standard Price.TimestampgetValidFrom()Get Valid from.TimestampgetValidTo()Get Valid to.protected POInfoinitPO(Properties ctx)Load Meta DatabooleanisNetPrice()Get Net Price.voidsetBreakValue(BigDecimal BreakValue)Set Break Value.voidsetC_BPartner_ID(int C_BPartner_ID)Set Business Partner.voidsetC_Currency_ID(int C_Currency_ID)Set Currency.voidsetComments(String Comments)Set Comments.voidsetDiscount(BigDecimal Discount)Set Discount %.voidsetIsNetPrice(boolean IsNetPrice)Set Net Price.voidsetM_BP_Price_ID(int M_BP_Price_ID)Set Business Partner Price.voidsetM_BP_Price_UU(String M_BP_Price_UU)Set M_BP_Price_UU.voidsetM_Product_ID(int M_Product_ID)Set Product.voidsetPriceLimit(BigDecimal PriceLimit)Set Limit Price.voidsetPriceList(BigDecimal PriceList)Set List Price.voidsetPriceOverrideType(String PriceOverrideType)Set Price Override Type.voidsetPriceStd(BigDecimal PriceStd)Set Standard Price.voidsetValidFrom(Timestamp ValidFrom)Set Valid from.voidsetValidTo(Timestamp ValidTo)Set Valid to.StringtoString()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_AccessLevelin 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:
setBreakValuein interfaceI_M_BP_Price- Parameters:
BreakValue- Low Value of trade discount break level
-
getBreakValue
public BigDecimal getBreakValue()
Get Break Value.- Specified by:
getBreakValuein 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_BPartnerin 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_IDin 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_IDin interfaceI_M_BP_Price- Returns:
- Identifies a Business Partner
-
getC_Currency
public I_C_Currency getC_Currency() throws RuntimeException
- Specified by:
getC_Currencyin interfaceI_M_BP_Price- Throws:
RuntimeException
-
setC_Currency_ID
public void setC_Currency_ID(int C_Currency_ID)
Set Currency.- Specified by:
setC_Currency_IDin 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_IDin interfaceI_M_BP_Price- Returns:
- The Currency for this record
-
setComments
public void setComments(String Comments)
Set Comments.- Specified by:
setCommentsin interfaceI_M_BP_Price- Parameters:
Comments- Comments or additional information
-
getComments
public String getComments()
Get Comments.- Specified by:
getCommentsin interfaceI_M_BP_Price- Returns:
- Comments or additional information
-
setDiscount
public void setDiscount(BigDecimal Discount)
Set Discount %.- Specified by:
setDiscountin interfaceI_M_BP_Price- Parameters:
Discount- Discount in percent
-
getDiscount
public BigDecimal getDiscount()
Get Discount %.- Specified by:
getDiscountin interfaceI_M_BP_Price- Returns:
- Discount in percent
-
setIsNetPrice
public void setIsNetPrice(boolean IsNetPrice)
Set Net Price.- Specified by:
setIsNetPricein interfaceI_M_BP_Price- Parameters:
IsNetPrice- Net Price including all discounts
-
isNetPrice
public boolean isNetPrice()
Get Net Price.- Specified by:
isNetPricein 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_IDin 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_IDin 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_UUin 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_UUin interfaceI_M_BP_Price- Returns:
- M_BP_Price_UU
-
getM_Product
public I_M_Product getM_Product() throws RuntimeException
- Specified by:
getM_Productin interfaceI_M_BP_Price- Throws:
RuntimeException
-
setM_Product_ID
public void setM_Product_ID(int M_Product_ID)
Set Product.- Specified by:
setM_Product_IDin 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_IDin 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:
setPriceLimitin interfaceI_M_BP_Price- Parameters:
PriceLimit- Lowest price for a product
-
getPriceLimit
public BigDecimal getPriceLimit()
Get Limit Price.- Specified by:
getPriceLimitin interfaceI_M_BP_Price- Returns:
- Lowest price for a product
-
setPriceList
public void setPriceList(BigDecimal PriceList)
Set List Price.- Specified by:
setPriceListin interfaceI_M_BP_Price- Parameters:
PriceList- List Price
-
getPriceList
public BigDecimal getPriceList()
Get List Price.- Specified by:
getPriceListin interfaceI_M_BP_Price- Returns:
- List Price
-
setPriceOverrideType
public void setPriceOverrideType(String PriceOverrideType)
Set Price Override Type.- Specified by:
setPriceOverrideTypein 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:
getPriceOverrideTypein 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:
setPriceStdin interfaceI_M_BP_Price- Parameters:
PriceStd- Standard Price
-
getPriceStd
public BigDecimal getPriceStd()
Get Standard Price.- Specified by:
getPriceStdin interfaceI_M_BP_Price- Returns:
- Standard Price
-
setValidFrom
public void setValidFrom(Timestamp ValidFrom)
Set Valid from.- Specified by:
setValidFromin interfaceI_M_BP_Price- Parameters:
ValidFrom- Valid from including this date (first day)
-
getValidFrom
public Timestamp getValidFrom()
Get Valid from.- Specified by:
getValidFromin interfaceI_M_BP_Price- Returns:
- Valid from including this date (first day)
-
setValidTo
public void setValidTo(Timestamp ValidTo)
Set Valid to.- Specified by:
setValidToin interfaceI_M_BP_Price- Parameters:
ValidTo- Valid to including this date (last day)
-
getValidTo
public Timestamp getValidTo()
Get Valid to.- Specified by:
getValidToin interfaceI_M_BP_Price- Returns:
- Valid to including this date (last day)
-
-