Compiere 3.1

org.compiere.wstore
Class PriceList

java.lang.Object
  extended by org.compiere.wstore.PriceList

public class PriceList
extends Object

Price List. ArrayList of PriceListProduct Implementation assumes a relatively small price list (< 200) This is the case, if the product is selected in the WebStore, but not if it is added via a direct link. In that case, it will load all products(!)

Version:
$Id: PriceList.java,v 1.2 2006/07/30 00:53:21 jjanke Exp $
Author:
Jorg Janke

Field Summary
static int MAX_LINES
          Maximum Lines to be displayed
static String NAME
          Attribute Name - also in JSPs
 
Method Summary
static PriceList get(Ctx ctx, int AD_Client_ID, int M_PriceList_ID, String searchString, String productCategory, boolean allRecords)
          Get Price List
 String getCurrency()
           
 String getCurSymbol()
           
 String getDescription()
           
 String getName()
          Get Name
 int getPriceCount()
          Get Count
 int getPriceList_ID()
           
 int getPriceList_Version_ID()
           
 PriceListProduct getPriceListProduct(int M_Product_ID)
          Get Price List for Product.
 ArrayList<PriceListProduct> getPrices()
          Get Prices
 String getSearchInfo()
          Get Search Info
 boolean isNoLines()
          No Prices
 boolean isNotAllPrices()
          Not all Prices displayed
 boolean isTaxIncluded()
           
 String toString()
          String Representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_LINES

public static int MAX_LINES
Maximum Lines to be displayed


NAME

public static final String NAME
Attribute Name - also in JSPs

See Also:
Constant Field Values
Method Detail

get

public static PriceList get(Ctx ctx,
                            int AD_Client_ID,
                            int M_PriceList_ID,
                            String searchString,
                            String productCategory,
                            boolean allRecords)
Get Price List

Parameters:
AD_Client_ID - client
M_PriceList_ID - price list
searchString - query search string
productCategory - query product category string
allRecords - all if no query
Returns:
Price list

toString

public String toString()
String Representation

Overrides:
toString in class Object
Returns:
info

getPriceCount

public int getPriceCount()
Get Count

Returns:
size

isNoLines

public boolean isNoLines()
No Prices

Returns:
true if no prices

isNotAllPrices

public boolean isNotAllPrices()
Not all Prices displayed

Returns:
true if no prices

getPrices

public ArrayList<PriceListProduct> getPrices()
Get Prices

Returns:
Price Array List

getPriceListProduct

public PriceListProduct getPriceListProduct(int M_Product_ID)
Get Price List for Product. Implementation assumes a relatively small price list (< 200)

Parameters:
M_Product_ID - product
Returns:
price list info or null

getSearchInfo

public String getSearchInfo()
Get Search Info

Returns:
search info

getName

public String getName()
Get Name

Returns:
Price List Name

getDescription

public String getDescription()

getCurrency

public String getCurrency()

getCurSymbol

public String getCurSymbol()

isTaxIncluded

public boolean isTaxIncluded()

getPriceList_ID

public int getPriceList_ID()

getPriceList_Version_ID

public int getPriceList_Version_ID()

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.