Package com.sgs.common.database
Class StockAssignment
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.StockAssignment
-
public class StockAssignment extends HibernateObject
This class represents a reservation of a quantity of a particular stock item for a particular job. This can be specified as aStockLocation
or aContainer
. The reservation can be limited to a productionLocation
- Author:
- Maver
-
-
Field Summary
Fields Modifier and Type Field Description Job
job
The job to assign the stock item toContainer
pallet
A pallet can be assigned to a jobLocation
productionLocation
An optional production location can be specified for filteringjava.lang.Double
quantity
The quantity of the stock lot or pallet that is assigned to thisJob
StockLocation
stock
The stock item to assign-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description StockAssignment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Job
getJob()
Container
getPallet()
Location
getProductionLocation()
java.lang.Double
getQuantity()
StockLocation
getStock()
void
setJob(Job job)
void
setPallet(Container pallet)
void
setProductionLocation(Location productionLocation)
void
setQuantity(java.lang.Double quantity)
void
setStock(StockLocation stock)
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
stock
public StockLocation stock
The stock item to assign
-
job
public Job job
The job to assign the stock item to
-
productionLocation
public Location productionLocation
An optional production location can be specified for filtering
-
pallet
public Container pallet
A pallet can be assigned to a job
-
quantity
public java.lang.Double quantity
The quantity of the stock lot or pallet that is assigned to thisJob
-
-
Method Detail
-
getStock
public StockLocation getStock()
-
getJob
public Job getJob()
-
setStock
public void setStock(StockLocation stock)
-
setJob
public void setJob(Job job)
-
getProductionLocation
public Location getProductionLocation()
-
setProductionLocation
public void setProductionLocation(Location productionLocation)
-
getPallet
public Container getPallet()
-
setPallet
public void setPallet(Container pallet)
-
getQuantity
public java.lang.Double getQuantity()
-
setQuantity
public void setQuantity(java.lang.Double quantity)
-
-