market
Class CIOpenPurchaseOrders
java.lang.Object
|
+--data.AbstractNameable
|
+--data.ooimpl.CatalogItemImpl
|
+--market.CIOpenPurchaseOrders
- All Implemented Interfaces:
- CatalogItem, Cloneable, Comparable, DataBasketKeys, Nameable, Serializable
- public class CIOpenPurchaseOrders
- extends CatalogItemImpl
A purchase order placed by the manager, which has not yet arrived.
- See Also:
- Serialized Form
CIOpenPurchaseOrders
public CIOpenPurchaseOrders(String date,
int nr,
CountingStock cs)
- Parameters:
date
- date of the order.nr
- order number, this parameter is necessary to distinguish between
two or more orders placed on the same day.cs
- CountingStock with CIArticles
that are ordered.
getDate
public String getDate()
- Returns:
- the date of the order.
getOrderNumber
public int getOrderNumber()
- Returns:
- the order number.
getOrders
public CountingStock getOrders()
- Returns:
- the
CountingStock
with the orders.
getOrdersValue
public Double getOrdersValue()
- Returns:
- the value of the orders.
getDaysTillArrival
public int getDaysTillArrival()
- Returns:
- the number of days the market still has to wait for the delivery to arrive.
decreaseDaysTillArrival
public void decreaseDaysTillArrival(int i)
- Decreases the number of days the market has to wait for a delivery to arrive.
getShallowClone
protected CatalogItemImpl getShallowClone()
- Specified by:
getShallowClone
in class CatalogItemImpl
- Returns:
- a clone of the given CatalogItemImpl.