public class ItemLibrary
extends java.lang.Object
Constructor and Description |
---|
ItemLibrary() |
Modifier and Type | Method and Description |
---|---|
static void |
addItemToStoreroom(Item item,
java.lang.String siteid,
java.lang.String storeroom,
double unitcost,
double initialBalance) |
static void |
addItemToStoreroom(Item item,
java.lang.String siteid,
java.lang.String storeroom,
java.lang.String costType,
double unitcost,
java.lang.String defaultBin,
double initialBalance,
java.lang.String issueUnit,
java.lang.String orderUnit,
boolean consignment)
Takes a non-rotating item passed in and adds the item to the storeroom.
|
static Item |
changeStatusToActive(Item item,
boolean rollToOrgandInventory)
Use this method to change the status of an item to active
|
static Item |
createBasicItem()
Use this method to create a Item with the following options:
Lot Type: No Lot
Non-rotating
non-capitalized
Use this method only for a an item that is only needed for one JUnit
|
static Item |
createBasicItem(java.lang.String name)
Use this method to create a workorder that will spawn over multiple unittest.
|
public static Item createBasicItem()
public static Item createBasicItem(java.lang.String name)
name
- The name you want to give the mbopublic static Item changeStatusToActive(Item item, boolean rollToOrgandInventory) throws java.rmi.RemoteException, MXException
item
- The item to change the status ofrollToOrgandInventory
- True if the status should roll down to item/org details or not.java.rmi.RemoteException
MXException
public static void addItemToStoreroom(Item item, java.lang.String siteid, java.lang.String storeroom, double unitcost, double initialBalance) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
adddItemToStoreroom
public static void addItemToStoreroom(Item item, java.lang.String siteid, java.lang.String storeroom, java.lang.String costType, double unitcost, java.lang.String defaultBin, double initialBalance, java.lang.String issueUnit, java.lang.String orderUnit, boolean consignment) throws java.rmi.RemoteException, MXException
item
- The item to be added to the storeroomsiteid
- What site to usestoreroom
- What storeroom to add it toThe
- cost type. Will default to average.unitcost
- The cost for the unitdefaultBin
- The default bin to use. Can be null.initialBalance
- The initial balance in the storeroomissueUnit
- The issue unit to use. Will default to EACH.orderUnit
- The order unit to use. Will default to EACH.consignment
- If this is consignment or not. Should normally be false.java.rmi.RemoteException
MXException