Package org.compiere.model
Class X_M_Product_PO
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_M_Product_PO
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_M_Product_PO
,I_Persistent
,Evaluatee
- Direct Known Subclasses:
MProductPO
public class X_M_Product_PO extends PO implements I_M_Product_PO, I_Persistent
Generated Model for M_Product_PO- Version:
- Release 9 - $Id$
- Author:
- iDempiere (generated)
- See Also:
- Serialized Form
-
-
Field Summary
-
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_Product_PO
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_C_UOM_ID, COLUMNNAME_CostPerOrder, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DeliveryTime_Actual, COLUMNNAME_DeliveryTime_Promised, COLUMNNAME_Discontinued, COLUMNNAME_DiscontinuedAt, COLUMNNAME_IsActive, COLUMNNAME_IsCurrentVendor, COLUMNNAME_M_Product_ID, COLUMNNAME_M_Product_PO_UU, COLUMNNAME_Manufacturer, COLUMNNAME_Order_Min, COLUMNNAME_Order_Pack, COLUMNNAME_PriceEffective, COLUMNNAME_PriceLastInv, COLUMNNAME_PriceLastPO, COLUMNNAME_PriceList, COLUMNNAME_PricePO, COLUMNNAME_QualityRating, COLUMNNAME_RoyaltyAmt, COLUMNNAME_UPC, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_VendorCategory, COLUMNNAME_VendorProductNo, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description X_M_Product_PO(Properties ctx, int M_Product_PO_ID, String trxName)
Standard ConstructorX_M_Product_PO(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()
AccessLevelI_C_BPartner
getC_BPartner()
int
getC_BPartner_ID()
Get Business Partner.I_C_Currency
getC_Currency()
int
getC_Currency_ID()
Get Currency.I_C_UOM
getC_UOM()
int
getC_UOM_ID()
Get UOM.BigDecimal
getCostPerOrder()
Get Cost per Order.int
getDeliveryTime_Actual()
Get Actual Delivery Time.int
getDeliveryTime_Promised()
Get Promised Delivery Time.Timestamp
getDiscontinuedAt()
Get Discontinued At.I_M_Product
getM_Product()
int
getM_Product_ID()
Get Product.String
getM_Product_PO_UU()
Get M_Product_PO_UU.String
getManufacturer()
Get Manufacturer.BigDecimal
getOrder_Min()
Get Minimum Order Qty.BigDecimal
getOrder_Pack()
Get Order Pack Qty.Timestamp
getPriceEffective()
Get Price effective.BigDecimal
getPriceLastInv()
Get Last Invoice Price.BigDecimal
getPriceLastPO()
Get Last PO Price.BigDecimal
getPriceList()
Get List Price.BigDecimal
getPricePO()
Get PO Price.int
getQualityRating()
Get Quality Rating.BigDecimal
getRoyaltyAmt()
Get Royalty Amount.String
getUPC()
Get UPC/EAN.String
getVendorCategory()
Get Partner Category.String
getVendorProductNo()
Get Partner Product Key.protected POInfo
initPO(Properties ctx)
Load Meta Databoolean
isCurrentVendor()
Get Current vendor.boolean
isDiscontinued()
Get Discontinued.void
setC_BPartner_ID(int C_BPartner_ID)
Set Business Partner.void
setC_Currency_ID(int C_Currency_ID)
Set Currency.void
setC_UOM_ID(int C_UOM_ID)
Set UOM.void
setCostPerOrder(BigDecimal CostPerOrder)
Set Cost per Order.void
setDeliveryTime_Actual(int DeliveryTime_Actual)
Set Actual Delivery Time.void
setDeliveryTime_Promised(int DeliveryTime_Promised)
Set Promised Delivery Time.void
setDiscontinued(boolean Discontinued)
Set Discontinued.void
setDiscontinuedAt(Timestamp DiscontinuedAt)
Set Discontinued At.void
setIsCurrentVendor(boolean IsCurrentVendor)
Set Current vendor.void
setM_Product_ID(int M_Product_ID)
Set Product.void
setM_Product_PO_UU(String M_Product_PO_UU)
Set M_Product_PO_UU.void
setManufacturer(String Manufacturer)
Set Manufacturer.void
setOrder_Min(BigDecimal Order_Min)
Set Minimum Order Qty.void
setOrder_Pack(BigDecimal Order_Pack)
Set Order Pack Qty.void
setPriceEffective(Timestamp PriceEffective)
Set Price effective.void
setPriceLastInv(BigDecimal PriceLastInv)
Set Last Invoice Price.void
setPriceLastPO(BigDecimal PriceLastPO)
Set Last PO Price.void
setPriceList(BigDecimal PriceList)
Set List Price.void
setPricePO(BigDecimal PricePO)
Set PO Price.void
setQualityRating(int QualityRating)
Set Quality Rating.void
setRoyaltyAmt(BigDecimal RoyaltyAmt)
Set Royalty Amount.void
setUPC(String UPC)
Set UPC/EAN.void
setVendorCategory(String VendorCategory)
Set Partner Category.void
setVendorProductNo(String VendorProductNo)
Set Partner Product Key.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_Product_PO
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
-
-
-
-
Constructor Detail
-
X_M_Product_PO
public X_M_Product_PO(Properties ctx, int M_Product_PO_ID, String trxName)
Standard Constructor
-
X_M_Product_PO
public X_M_Product_PO(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
-
getC_BPartner
public I_C_BPartner getC_BPartner() throws RuntimeException
- Specified by:
getC_BPartner
in interfaceI_M_Product_PO
- 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_Product_PO
- 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_Product_PO
- Returns:
- Identifies a Business Partner
-
getC_Currency
public I_C_Currency getC_Currency() throws RuntimeException
- Specified by:
getC_Currency
in interfaceI_M_Product_PO
- Throws:
RuntimeException
-
setC_Currency_ID
public void setC_Currency_ID(int C_Currency_ID)
Set Currency.- Specified by:
setC_Currency_ID
in interfaceI_M_Product_PO
- 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_Product_PO
- Returns:
- The Currency for this record
-
setCostPerOrder
public void setCostPerOrder(BigDecimal CostPerOrder)
Set Cost per Order.- Specified by:
setCostPerOrder
in interfaceI_M_Product_PO
- Parameters:
CostPerOrder
- Fixed Cost Per Order
-
getCostPerOrder
public BigDecimal getCostPerOrder()
Get Cost per Order.- Specified by:
getCostPerOrder
in interfaceI_M_Product_PO
- Returns:
- Fixed Cost Per Order
-
getC_UOM
public I_C_UOM getC_UOM() throws RuntimeException
- Specified by:
getC_UOM
in interfaceI_M_Product_PO
- Throws:
RuntimeException
-
setC_UOM_ID
public void setC_UOM_ID(int C_UOM_ID)
Set UOM.- Specified by:
setC_UOM_ID
in interfaceI_M_Product_PO
- Parameters:
C_UOM_ID
- Unit of Measure
-
getC_UOM_ID
public int getC_UOM_ID()
Get UOM.- Specified by:
getC_UOM_ID
in interfaceI_M_Product_PO
- Returns:
- Unit of Measure
-
setDeliveryTime_Actual
public void setDeliveryTime_Actual(int DeliveryTime_Actual)
Set Actual Delivery Time.- Specified by:
setDeliveryTime_Actual
in interfaceI_M_Product_PO
- Parameters:
DeliveryTime_Actual
- Actual days between order and delivery
-
getDeliveryTime_Actual
public int getDeliveryTime_Actual()
Get Actual Delivery Time.- Specified by:
getDeliveryTime_Actual
in interfaceI_M_Product_PO
- Returns:
- Actual days between order and delivery
-
setDeliveryTime_Promised
public void setDeliveryTime_Promised(int DeliveryTime_Promised)
Set Promised Delivery Time.- Specified by:
setDeliveryTime_Promised
in interfaceI_M_Product_PO
- Parameters:
DeliveryTime_Promised
- Promised days between order and delivery
-
getDeliveryTime_Promised
public int getDeliveryTime_Promised()
Get Promised Delivery Time.- Specified by:
getDeliveryTime_Promised
in interfaceI_M_Product_PO
- Returns:
- Promised days between order and delivery
-
setDiscontinued
public void setDiscontinued(boolean Discontinued)
Set Discontinued.- Specified by:
setDiscontinued
in interfaceI_M_Product_PO
- Parameters:
Discontinued
- This product is no longer available
-
isDiscontinued
public boolean isDiscontinued()
Get Discontinued.- Specified by:
isDiscontinued
in interfaceI_M_Product_PO
- Returns:
- This product is no longer available
-
setDiscontinuedAt
public void setDiscontinuedAt(Timestamp DiscontinuedAt)
Set Discontinued At.- Specified by:
setDiscontinuedAt
in interfaceI_M_Product_PO
- Parameters:
DiscontinuedAt
- Discontinued At indicates Date when product was discontinued
-
getDiscontinuedAt
public Timestamp getDiscontinuedAt()
Get Discontinued At.- Specified by:
getDiscontinuedAt
in interfaceI_M_Product_PO
- Returns:
- Discontinued At indicates Date when product was discontinued
-
setIsCurrentVendor
public void setIsCurrentVendor(boolean IsCurrentVendor)
Set Current vendor.- Specified by:
setIsCurrentVendor
in interfaceI_M_Product_PO
- Parameters:
IsCurrentVendor
- Use this Vendor for pricing and stock replenishment
-
isCurrentVendor
public boolean isCurrentVendor()
Get Current vendor.- Specified by:
isCurrentVendor
in interfaceI_M_Product_PO
- Returns:
- Use this Vendor for pricing and stock replenishment
-
setManufacturer
public void setManufacturer(String Manufacturer)
Set Manufacturer.- Specified by:
setManufacturer
in interfaceI_M_Product_PO
- Parameters:
Manufacturer
- Manufacturer of the Product
-
getManufacturer
public String getManufacturer()
Get Manufacturer.- Specified by:
getManufacturer
in interfaceI_M_Product_PO
- Returns:
- Manufacturer of the Product
-
getM_Product
public I_M_Product getM_Product() throws RuntimeException
- Specified by:
getM_Product
in interfaceI_M_Product_PO
- Throws:
RuntimeException
-
setM_Product_ID
public void setM_Product_ID(int M_Product_ID)
Set Product.- Specified by:
setM_Product_ID
in interfaceI_M_Product_PO
- 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_Product_PO
- Returns:
- Product, Service, Item
-
setM_Product_PO_UU
public void setM_Product_PO_UU(String M_Product_PO_UU)
Set M_Product_PO_UU.- Specified by:
setM_Product_PO_UU
in interfaceI_M_Product_PO
- Parameters:
M_Product_PO_UU
- M_Product_PO_UU
-
getM_Product_PO_UU
public String getM_Product_PO_UU()
Get M_Product_PO_UU.- Specified by:
getM_Product_PO_UU
in interfaceI_M_Product_PO
- Returns:
- M_Product_PO_UU
-
setOrder_Min
public void setOrder_Min(BigDecimal Order_Min)
Set Minimum Order Qty.- Specified by:
setOrder_Min
in interfaceI_M_Product_PO
- Parameters:
Order_Min
- Minimum order quantity in UOM
-
getOrder_Min
public BigDecimal getOrder_Min()
Get Minimum Order Qty.- Specified by:
getOrder_Min
in interfaceI_M_Product_PO
- Returns:
- Minimum order quantity in UOM
-
setOrder_Pack
public void setOrder_Pack(BigDecimal Order_Pack)
Set Order Pack Qty.- Specified by:
setOrder_Pack
in interfaceI_M_Product_PO
- Parameters:
Order_Pack
- Package order size in UOM (e.g. order set of 5 units)
-
getOrder_Pack
public BigDecimal getOrder_Pack()
Get Order Pack Qty.- Specified by:
getOrder_Pack
in interfaceI_M_Product_PO
- Returns:
- Package order size in UOM (e.g. order set of 5 units)
-
setPriceEffective
public void setPriceEffective(Timestamp PriceEffective)
Set Price effective.- Specified by:
setPriceEffective
in interfaceI_M_Product_PO
- Parameters:
PriceEffective
- Effective Date of Price
-
getPriceEffective
public Timestamp getPriceEffective()
Get Price effective.- Specified by:
getPriceEffective
in interfaceI_M_Product_PO
- Returns:
- Effective Date of Price
-
setPriceLastInv
public void setPriceLastInv(BigDecimal PriceLastInv)
Set Last Invoice Price.- Specified by:
setPriceLastInv
in interfaceI_M_Product_PO
- Parameters:
PriceLastInv
- Price of the last invoice for the product
-
getPriceLastInv
public BigDecimal getPriceLastInv()
Get Last Invoice Price.- Specified by:
getPriceLastInv
in interfaceI_M_Product_PO
- Returns:
- Price of the last invoice for the product
-
setPriceLastPO
public void setPriceLastPO(BigDecimal PriceLastPO)
Set Last PO Price.- Specified by:
setPriceLastPO
in interfaceI_M_Product_PO
- Parameters:
PriceLastPO
- Price of the last purchase order for the product
-
getPriceLastPO
public BigDecimal getPriceLastPO()
Get Last PO Price.- Specified by:
getPriceLastPO
in interfaceI_M_Product_PO
- Returns:
- Price of the last purchase order for the product
-
setPriceList
public void setPriceList(BigDecimal PriceList)
Set List Price.- Specified by:
setPriceList
in interfaceI_M_Product_PO
- Parameters:
PriceList
- List Price
-
getPriceList
public BigDecimal getPriceList()
Get List Price.- Specified by:
getPriceList
in interfaceI_M_Product_PO
- Returns:
- List Price
-
setPricePO
public void setPricePO(BigDecimal PricePO)
Set PO Price.- Specified by:
setPricePO
in interfaceI_M_Product_PO
- Parameters:
PricePO
- Price based on a purchase order
-
getPricePO
public BigDecimal getPricePO()
Get PO Price.- Specified by:
getPricePO
in interfaceI_M_Product_PO
- Returns:
- Price based on a purchase order
-
setQualityRating
public void setQualityRating(int QualityRating)
Set Quality Rating.- Specified by:
setQualityRating
in interfaceI_M_Product_PO
- Parameters:
QualityRating
- Method for rating vendors
-
getQualityRating
public int getQualityRating()
Get Quality Rating.- Specified by:
getQualityRating
in interfaceI_M_Product_PO
- Returns:
- Method for rating vendors
-
setRoyaltyAmt
public void setRoyaltyAmt(BigDecimal RoyaltyAmt)
Set Royalty Amount.- Specified by:
setRoyaltyAmt
in interfaceI_M_Product_PO
- Parameters:
RoyaltyAmt
- (Included) Amount for copyright, etc.
-
getRoyaltyAmt
public BigDecimal getRoyaltyAmt()
Get Royalty Amount.- Specified by:
getRoyaltyAmt
in interfaceI_M_Product_PO
- Returns:
- (Included) Amount for copyright, etc.
-
setUPC
public void setUPC(String UPC)
Set UPC/EAN.- Specified by:
setUPC
in interfaceI_M_Product_PO
- Parameters:
UPC
- Bar Code (Universal Product Code or its superset European Article Number)
-
getUPC
public String getUPC()
Get UPC/EAN.- Specified by:
getUPC
in interfaceI_M_Product_PO
- Returns:
- Bar Code (Universal Product Code or its superset European Article Number)
-
setVendorCategory
public void setVendorCategory(String VendorCategory)
Set Partner Category.- Specified by:
setVendorCategory
in interfaceI_M_Product_PO
- Parameters:
VendorCategory
- Product Category of the Business Partner
-
getVendorCategory
public String getVendorCategory()
Get Partner Category.- Specified by:
getVendorCategory
in interfaceI_M_Product_PO
- Returns:
- Product Category of the Business Partner
-
setVendorProductNo
public void setVendorProductNo(String VendorProductNo)
Set Partner Product Key.- Specified by:
setVendorProductNo
in interfaceI_M_Product_PO
- Parameters:
VendorProductNo
- Product Key of the Business Partner
-
getVendorProductNo
public String getVendorProductNo()
Get Partner Product Key.- Specified by:
getVendorProductNo
in interfaceI_M_Product_PO
- Returns:
- Product Key of the Business Partner
-
-