Package com.sgs.common.database
Class StockLocation
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.StockLocation
-
- All Implemented Interfaces:
java.lang.Comparable<StockLocation>
public class StockLocation extends HibernateObject implements java.lang.Comparable<StockLocation>
This class represents inventory in a location It provides a location and a quantity from the Stock header record- Author:
- SGSystems
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Double
adjustmentValue
Used internallyjava.lang.String
externalId
The spare field to store identifier used in external ERP systems for examplejava.lang.Integer
inDepositor
CycleCountRun
lastCycleCountRun
A reference to the last Cycle Count that was performedLocation
location
The location that this part of the stock residesjava.lang.String
lpn
The LPN for this itemjava.lang.Double
qty
The quantity that resides in this locationStock
stock
The stock header recordStockAssignment
stockAssignment
For use with stock assignment-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description StockLocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(StockLocation o)
java.lang.Double
getAdjustmentValue()
java.lang.Double
getAssignedQuantity()
java.lang.String
getBulkQuantity()
java.lang.String
getExternalId()
java.lang.Integer
getInDepositor()
CycleCountRun
getLastCycleCountRun()
Location
getLocation()
java.lang.String
getLpn()
Location
getOldLocation()
java.lang.Double
getQty()
java.lang.Double
getQtyInContainers()
Stock
getStock()
StockAssignment
getStockAssignment()
java.lang.Double
getTotalValue()
void
setAdjustmentValue(java.lang.Double adjustmentValue)
void
setExternalId(java.lang.String externalId)
void
setInDepositor(java.lang.Integer inDepositor)
void
setLastCycleCountRun(CycleCountRun lastCycleCountRun)
void
setLocation(Location location)
void
setLpn(java.lang.String lpn)
void
setOldLocation(Location oldLocation)
void
setQty(java.lang.Double qty)
void
setStock(Stock stock)
void
setStockAssignment(StockAssignment stockAssignment)
java.lang.String
toString()
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
stock
public Stock stock
The stock header record
-
location
public Location location
The location that this part of the stock resides
-
qty
public java.lang.Double qty
The quantity that resides in this location
-
lpn
public java.lang.String lpn
The LPN for this item
-
lastCycleCountRun
public CycleCountRun lastCycleCountRun
A reference to the last Cycle Count that was performed
-
adjustmentValue
public java.lang.Double adjustmentValue
Used internally
-
inDepositor
public java.lang.Integer inDepositor
-
externalId
public java.lang.String externalId
The spare field to store identifier used in external ERP systems for example
-
stockAssignment
public StockAssignment stockAssignment
For use with stock assignment
-
-
Method Detail
-
getStock
public Stock getStock()
-
setStock
public void setStock(Stock stock)
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
getQty
public java.lang.Double getQty()
-
setQty
public void setQty(java.lang.Double qty)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getTotalValue
public java.lang.Double getTotalValue()
-
getOldLocation
public Location getOldLocation()
-
setOldLocation
public void setOldLocation(Location oldLocation)
-
compareTo
public int compareTo(StockLocation o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<StockLocation>
-
getLpn
public java.lang.String getLpn()
-
setLpn
public void setLpn(java.lang.String lpn)
-
getLastCycleCountRun
public CycleCountRun getLastCycleCountRun()
-
setLastCycleCountRun
public void setLastCycleCountRun(CycleCountRun lastCycleCountRun)
-
getAdjustmentValue
public java.lang.Double getAdjustmentValue()
-
setAdjustmentValue
public void setAdjustmentValue(java.lang.Double adjustmentValue)
-
getQtyInContainers
public java.lang.Double getQtyInContainers()
-
getInDepositor
public java.lang.Integer getInDepositor()
-
setInDepositor
public void setInDepositor(java.lang.Integer inDepositor)
-
getBulkQuantity
public java.lang.String getBulkQuantity()
-
getExternalId
public java.lang.String getExternalId()
-
setExternalId
public void setExternalId(java.lang.String externalId)
-
getAssignedQuantity
public java.lang.Double getAssignedQuantity()
-
getStockAssignment
public StockAssignment getStockAssignment()
-
setStockAssignment
public void setStockAssignment(StockAssignment stockAssignment)
-
-