Adempiere 3.5.2a

org.compiere.wstore
Class WebBasket

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

public class WebBasket
extends Object

Web Basket

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

Field Summary
static String NAME
          Attribute Name - also in JSPs
 
Constructor Summary
WebBasket()
          Constructor
 
Method Summary
 WebBasketLine add(int M_Product_ID, String Name, BigDecimal Qty, BigDecimal Price)
          Add Line.
 WebBasketLine add(WebBasketLine wbl)
          Add Line
 void delete(int no)
          Delete Line
 int getLineCount()
          Get Line Count
 ArrayList getLines()
          Get Lines
 int getM_PriceList_ID()
           
 int getM_PriceList_Version_ID()
           
 int getSalesRep_ID()
           
 BigDecimal getTotal()
          Get Total
 BigDecimal getTotal(boolean recalc)
          Get (recalculated) Total
 void setM_PriceList_ID(int PriceList_ID)
           
 void setM_PriceList_Version_ID(int PriceList_Version_ID)
           
 void setSalesRep_ID(int salesRep_ID)
           
 String toString()
          String Representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Attribute Name - also in JSPs

See Also:
Constant Field Values
Constructor Detail

WebBasket

public WebBasket()
Constructor

Method Detail

toString

public String toString()
String Representation

Overrides:
toString in class Object
Returns:
info

getTotal

public BigDecimal getTotal()
Get Total

Returns:
total

getTotal

public BigDecimal getTotal(boolean recalc)
Get (recalculated) Total

Returns:
total

getLineCount

public int getLineCount()
Get Line Count

Returns:
line count

getLines

public ArrayList getLines()
Get Lines

Returns:
lines

add

public WebBasketLine add(WebBasketLine wbl)
Add Line

Parameters:
wbl - line
Returns:
added line

add

public WebBasketLine add(int M_Product_ID,
                         String Name,
                         BigDecimal Qty,
                         BigDecimal Price)
Add Line. Adds qty to the line, if same product

Parameters:
M_Product_ID - product
Name - Name
Qty - Qty
Price - Price
Returns:
created / modified line

delete

public void delete(int no)
Delete Line

Parameters:
no - line no

getM_PriceList_Version_ID

public int getM_PriceList_Version_ID()

setM_PriceList_Version_ID

public void setM_PriceList_Version_ID(int PriceList_Version_ID)

getM_PriceList_ID

public int getM_PriceList_ID()

setM_PriceList_ID

public void setM_PriceList_ID(int PriceList_ID)

getSalesRep_ID

public int getSalesRep_ID()
Returns:
Returns the salesRep_ID.

setSalesRep_ID

public void setSalesRep_ID(int salesRep_ID)
Parameters:
salesRep_ID - The salesRep_ID to set.

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.