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.DoubleadjustmentValueUsed internallyjava.lang.StringexternalIdThe spare field to store identifier used in external ERP systems for examplejava.lang.IntegerinDepositorCycleCountRunlastCycleCountRunA reference to the last Cycle Count that was performedLocationlocationThe location that this part of the stock residesjava.lang.StringlpnThe LPN for this itemjava.lang.DoubleqtyThe quantity that resides in this locationStockstockThe stock header recordStockAssignmentstockAssignmentFor 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 intcompareTo(StockLocation o)java.lang.DoublegetAdjustmentValue()java.lang.DoublegetAssignedQuantity()java.lang.StringgetBulkQuantity()java.lang.StringgetExternalId()java.lang.IntegergetInDepositor()CycleCountRungetLastCycleCountRun()LocationgetLocation()java.lang.StringgetLpn()LocationgetOldLocation()java.lang.DoublegetQty()java.lang.DoublegetQtyInContainers()StockgetStock()StockAssignmentgetStockAssignment()java.lang.DoublegetTotalValue()voidsetAdjustmentValue(java.lang.Double adjustmentValue)voidsetExternalId(java.lang.String externalId)voidsetInDepositor(java.lang.Integer inDepositor)voidsetLastCycleCountRun(CycleCountRun lastCycleCountRun)voidsetLocation(Location location)voidsetLpn(java.lang.String lpn)voidsetOldLocation(Location oldLocation)voidsetQty(java.lang.Double qty)voidsetStock(Stock stock)voidsetStockAssignment(StockAssignment stockAssignment)java.lang.StringtoString()-
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:
toStringin 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:
compareToin 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)
-
-