public class DefaultOrderPrice
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FULLFUNDTRACKING |
static int |
ITEM |
int |
itemNumFlag
The itemnum flag is used to let other objects know about how the price of a commodity
was obtained.Three static variables ITEMVENDORCATALOGCODE,ITEMVENDOR,ITEM are used
to indicate if the price was obtained using either the item,vendor,catalogcode
combination or the item,vendor combination or using only the item(FROM THE INVVENDOR table)
|
static int |
ITEMVENDOR |
static int |
ITEMVENDORCATALOGCODE |
static int |
LIMITEDFUNDTRACKING |
static int |
NOFUNDCHECKING |
static int |
NOFUNDTRACKING |
static int |
priceCATALOGCODE |
static int |
priceCONTRACTID |
static int |
priceCONTRACTNUM |
static int |
priceCURRENCY |
static int |
priceMANUFACTURER |
static int |
priceMODELNUM |
static int |
priceORDERQTY |
static int |
priceORDERUNIT |
static int |
priceREVISIONNUM |
static int |
priceUNITCOST |
Constructor and Description |
---|
DefaultOrderPrice()
DefaultOrderPrice() - default Constructor
Using this constructor will instantiate a DefaultOrderPrice object using the NOFUNDTRACKING option.
|
DefaultOrderPrice(int options)
DefaultOrderPrice(int) - optional Constructor
Use this constructor to determine whether and how the affiliated FundTracker class will be used by DefaultOrderPrice.
|
Modifier and Type | Method and Description |
---|---|
double |
getDefaultOrderPrice(java.lang.String currencyCode,
double quantity,
boolean considerBlanket,
boolean considerPrice,
Mbo mbo)
getDefaultOrderPrice - (a remote public method)
-WHAT: The primary method of the DefaultOrderPrice class.
|
int |
getItemNumFlag()
Return the itemNumFlag
|
boolean |
isBlanketPrice()
isBlanketPrice()
WHAT: provides user boolean return of true if this price was calculated using the Blanket methodology
(ie: get the contractline.unitcost for the first blanket contract line found with this item/vendor combo which
has costs still available to be used - Tracker handles this as best as can be done for now)
RETURN: boolean- true if it is a "Blanket Price"
|
boolean |
isContractPrice()
isContractPrice()
WHAT: provides user boolean return of true if this price was calculated using a Contract methodology
(ie: get the contractline.unitcost for the first contract line found with this item/vendor combo)
RETURN: boolean- true if it is a "Price (non-Blanket) Contract"
|
boolean |
isInventoryPrice()
isInventoryPrice()
WHAT: provides user boolean return of true if this price was calculated using an Inventory methodology
(ie: get the inventory.lastcost for the first inventory record found with this item/vendor or this item
in general, if no item/vendor combo is found in inventory)
RETURN: boolean- true if it is an "Inventory Price"
|
boolean |
isNoPriceFound()
isNoPriceFound()
WHAT: provides user boolean return of true if this price was not able to be calculated
using Blanket, Contract, Vendor, or Inventory methods.
|
boolean |
isVendorPrice()
isVendorPrice()
WHAT: provides user boolean return of true if this price was calculated using the Vendor methodology
(ie: get the invvendor.lastcost for the first inventory record found with this item/vendor)
RETURN: boolean- true if it is and "Vendor Price"
|
void |
setPriceAttribute(Mbo mbo,
java.lang.String attribute,
int identifier)
setPriceAttribute(1,2,3)
Overload of setPriceAttribute(1,2,3,4) - allowing user to call setValue without access modifiers.
|
void |
setPriceAttribute(Mbo mbo,
java.lang.String attribute,
int identifier,
long flags)
setPriceAttribute(1,2,3,4)
- USE This method should be used as an aid to setting associated/auxillary DefaultOrderPrice values.
|
public int itemNumFlag
public static int ITEMVENDORCATALOGCODE
public static int ITEMVENDOR
public static int ITEM
public static final int FULLFUNDTRACKING
public static final int LIMITEDFUNDTRACKING
public static final int NOFUNDTRACKING
public static final int NOFUNDCHECKING
public static final int priceMANUFACTURER
public static final int priceMODELNUM
public static final int priceCATALOGCODE
public static final int priceORDERUNIT
public static final int priceCONTRACTNUM
public static final int priceREVISIONNUM
public static final int priceCONTRACTID
public static final int priceORDERQTY
public static final int priceCURRENCY
public static final int priceUNITCOST
public DefaultOrderPrice()
public DefaultOrderPrice(int options)
public int getItemNumFlag() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
getVendorSet()
public double getDefaultOrderPrice(java.lang.String currencyCode, double quantity, boolean considerBlanket, boolean considerPrice, Mbo mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setPriceAttribute(Mbo mbo, java.lang.String attribute, int identifier, long flags) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setPriceAttribute(Mbo mbo, java.lang.String attribute, int identifier) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isBlanketPrice()
public boolean isContractPrice()
public boolean isVendorPrice()
public boolean isInventoryPrice()
public boolean isNoPriceFound()