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
Generated Model for M_Product_PO
- Version:
- Release 11 - $Id$
- Author:
- iDempiere (generated)
- See Also:
-
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, UUID_NEW_RECORD, 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
ConstructorDescriptionX_M_Product_PO
(Properties ctx, int M_Product_PO_ID, String trxName) Standard ConstructorX_M_Product_PO
(Properties ctx, int M_Product_PO_ID, String trxName, String... virtualColumns) Standard ConstructorX_M_Product_PO
(Properties ctx, String M_Product_PO_UU, String trxName) Standard ConstructorX_M_Product_PO
(Properties ctx, String M_Product_PO_UU, String trxName, String... virtualColumns) Standard ConstructorX_M_Product_PO
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected int
AccessLevelint
Get Business Partner.int
Get Currency.getC_UOM()
int
Get UOM.Get Cost per Order.int
Get Actual Delivery Time.int
Get Promised Delivery Time.Get Discontinued At.int
Get Product.Get M_Product_PO_UU.Get Manufacturer.Get Minimum Order Qty.Get Order Pack Qty.Get Price effective.Get Last Invoice Price.Get Last PO Price.Get List Price.Get PO Price.int
Get Quality Rating.Get Royalty Amount.getUPC()
Get UPC/EAN.Get Partner Category.Get Partner Product Key.protected POInfo
initPO
(Properties ctx) Load Meta Databoolean
Get Current vendor.boolean
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
Set UPC/EAN.void
setVendorCategory
(String VendorCategory) Set Partner Category.void
setVendorProductNo
(String VendorProductNo) Set Partner Product Key.toString()
String representationMethods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, buildInsertSQL, 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_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, 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, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, 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, toInsertSQL, 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 Details
-
X_M_Product_PO
Standard Constructor -
X_M_Product_PO
public X_M_Product_PO(Properties ctx, int M_Product_PO_ID, String trxName, String... virtualColumns) Standard Constructor -
X_M_Product_PO
Standard Constructor -
X_M_Product_PO
public X_M_Product_PO(Properties ctx, String M_Product_PO_UU, String trxName, String... virtualColumns) Standard Constructor -
X_M_Product_PO
Load Constructor
-
-
Method Details
-
get_AccessLevel
protected int get_AccessLevel()AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 3 - Client - Org
-
initPO
Load Meta Data -
toString
Description copied from class:PO
String representation -
getC_BPartner
- 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
- 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
Set Cost per Order.- Specified by:
setCostPerOrder
in interfaceI_M_Product_PO
- Parameters:
CostPerOrder
- Fixed Cost Per Order
-
getCostPerOrder
Get Cost per Order.- Specified by:
getCostPerOrder
in interfaceI_M_Product_PO
- Returns:
- Fixed Cost Per Order
-
getC_UOM
- 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
Set Discontinued At.- Specified by:
setDiscontinuedAt
in interfaceI_M_Product_PO
- Parameters:
DiscontinuedAt
- Discontinued At indicates Date when product was discontinued
-
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
Set Manufacturer.- Specified by:
setManufacturer
in interfaceI_M_Product_PO
- Parameters:
Manufacturer
- Manufacturer of the Product
-
getManufacturer
Get Manufacturer.- Specified by:
getManufacturer
in interfaceI_M_Product_PO
- Returns:
- Manufacturer of the Product
-
getM_Product
- 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
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
Get M_Product_PO_UU.- Specified by:
getM_Product_PO_UU
in interfaceI_M_Product_PO
- Returns:
- M_Product_PO_UU
-
setOrder_Min
Set Minimum Order Qty.- Specified by:
setOrder_Min
in interfaceI_M_Product_PO
- Parameters:
Order_Min
- Minimum order quantity in UOM
-
getOrder_Min
Get Minimum Order Qty.- Specified by:
getOrder_Min
in interfaceI_M_Product_PO
- Returns:
- Minimum order quantity in UOM
-
setOrder_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
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
Set Price effective.- Specified by:
setPriceEffective
in interfaceI_M_Product_PO
- Parameters:
PriceEffective
- Effective Date of Price
-
getPriceEffective
Get Price effective.- Specified by:
getPriceEffective
in interfaceI_M_Product_PO
- Returns:
- Effective Date of Price
-
setPriceLastInv
Set Last Invoice Price.- Specified by:
setPriceLastInv
in interfaceI_M_Product_PO
- Parameters:
PriceLastInv
- Price of the last invoice for the product
-
getPriceLastInv
Get Last Invoice Price.- Specified by:
getPriceLastInv
in interfaceI_M_Product_PO
- Returns:
- Price of the last invoice for the product
-
setPriceLastPO
Set Last PO Price.- Specified by:
setPriceLastPO
in interfaceI_M_Product_PO
- Parameters:
PriceLastPO
- Price of the last purchase order for the product
-
getPriceLastPO
Get Last PO Price.- Specified by:
getPriceLastPO
in interfaceI_M_Product_PO
- Returns:
- Price of the last purchase order for the product
-
setPriceList
Set List Price.- Specified by:
setPriceList
in interfaceI_M_Product_PO
- Parameters:
PriceList
- List Price
-
getPriceList
Get List Price.- Specified by:
getPriceList
in interfaceI_M_Product_PO
- Returns:
- List Price
-
setPricePO
Set PO Price.- Specified by:
setPricePO
in interfaceI_M_Product_PO
- Parameters:
PricePO
- Price based on a purchase order
-
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
Set Royalty Amount.- Specified by:
setRoyaltyAmt
in interfaceI_M_Product_PO
- Parameters:
RoyaltyAmt
- (Included) Amount for copyright, etc.
-
getRoyaltyAmt
Get Royalty Amount.- Specified by:
getRoyaltyAmt
in interfaceI_M_Product_PO
- Returns:
- (Included) Amount for copyright, etc.
-
setUPC
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
Get UPC/EAN.- Specified by:
getUPC
in interfaceI_M_Product_PO
- Returns:
- Bar Code (Universal Product Code or its superset European Article Number)
-
setVendorCategory
Set Partner Category.- Specified by:
setVendorCategory
in interfaceI_M_Product_PO
- Parameters:
VendorCategory
- Product Category of the Business Partner
-
getVendorCategory
Get Partner Category.- Specified by:
getVendorCategory
in interfaceI_M_Product_PO
- Returns:
- Product Category of the Business Partner
-
setVendorProductNo
Set Partner Product Key.- Specified by:
setVendorProductNo
in interfaceI_M_Product_PO
- Parameters:
VendorProductNo
- Product Key of the Business Partner
-
getVendorProductNo
Get Partner Product Key.- Specified by:
getVendorProductNo
in interfaceI_M_Product_PO
- Returns:
- Product Key of the Business Partner
-