Package com.sgs.common.database
Class BatchConsumption
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.BatchConsumption
-
public class BatchConsumption extends HibernateObject
This class represents inventory consumption in the batching process. When something is weighed or input into the system, a consumption object is created to log progress.- Author:
- SGSystems
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
answer
The answer that was provided if the formula step was a questionBatch
batch
The batch that the consumption was part ofjava.lang.Integer
bulksComplete
Indicator as to whether bulks or remainder were completed on this item should the system be split into bagging zonesBag
collatedBag
When using Bagging Mode 3, the collated bag is the bag which is scanned into the mix.Batch
collationBatch
The batch that was collated for this step, should the step be collationjava.lang.String
commodityCode
The commodity code of the stock consumedjava.lang.String
commodityDescription
The commodity description of the stock consumedjava.util.Date
completed
The datetime that this was transactedjava.lang.Integer
containerLabelPrinted
Boolean indicator to state whether container labels have been printed for this item or notContainerLink
containerLink
The specific Container/Stock combination used in the consumption of this item.java.util.Date
dateProduced
The date of production for this itemjava.lang.Double
initRemainingQty
An stock threshold for zeroing stock for this item should the item have had it's stock initializedjava.lang.String
jobNumber
The job number this applies tojava.lang.String
locationCode
The location code for where the stock was consumedLotContainer
lotContainer
The LotContaner consumed if using lot containerization.java.lang.String
lotNumber
The lot number of the stock consumeddouble
quantity
The quantity that was deductedjava.lang.Integer
sampleNo
The next sample number for performing batch revisionsStockLocation
stock
The inventory that was consumedjava.lang.String
supplierLot
The supplier lot number associated with the stock that was consumedjava.lang.Double
tare
The tare weight at the point of weighing, quantity does not include this value.java.lang.Double
targetQuantity
The target quantity requested at the terminalTerminal
terminal
The terminal this consumption was performed onint
time
The time it took in seconds to complete this stepUser
user
The user that performed this consumption-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description BatchConsumption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAnswer()
Batch
getBatch()
java.lang.Integer
getBulksComplete()
Bag
getCollatedBag()
Batch
getCollationBatch()
java.util.Date
getCompleted()
java.lang.Integer
getContainerLabelPrinted()
ContainerLink
getContainerLink()
java.util.Date
getDateProduced()
FormulaStep
getFormulaStep()
java.lang.Double
getInitRemainingQty()
java.lang.String
getJobNumber()
java.lang.String
getLocationCode()
LotContainer
getLotContainer()
double
getQuantity()
java.lang.Integer
getSampleNo()
StockLocation
getStock()
java.lang.Double
getTare()
java.lang.Double
getTargetQuantity()
Terminal
getTerminal()
int
getTime()
User
getUser()
void
setAnswer(java.lang.String answer)
void
setBatch(Batch batch)
void
setBulksComplete(java.lang.Integer bulksComplete)
void
setCollatedBag(Bag collatedBag)
void
setCollationBatch(Batch collationBatch)
void
setCommodityCode(java.lang.String commodityCode)
void
setCommodityDescription(java.lang.String commodityDescription)
void
setCompleted(java.util.Date completed)
void
setContainerLabelPrinted(java.lang.Integer containerLabelPrinted)
void
setContainerLink(ContainerLink containerLink)
void
setDateProduced(java.util.Date dateProduced)
void
setFormulaStep(FormulaStep formulaStep)
void
setInitRemainingQty(java.lang.Double initRemainingQty)
void
setJobNumber(java.lang.String jobNumber)
void
setLocationCode(java.lang.String locationCode)
void
setLotContainer(LotContainer lotContainer)
void
setLotNumber(java.lang.String lotNumber)
void
setQuantity(double quantity)
void
setSampleNo(java.lang.Integer sampleNo)
void
setStock(StockLocation stock)
void
setSupplierLot(java.lang.String supplierLot)
void
setTare(java.lang.Double tare)
void
setTargetQuantity(java.lang.Double targetQuantity)
void
setTerminal(Terminal terminal)
void
setTime(int time)
void
setUser(User user)
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
batch
public Batch batch
The batch that the consumption was part of
-
quantity
public double quantity
The quantity that was deducted
-
stock
public StockLocation stock
The inventory that was consumed
-
answer
public java.lang.String answer
The answer that was provided if the formula step was a question
-
tare
public java.lang.Double tare
The tare weight at the point of weighing, quantity does not include this value.
-
time
public int time
The time it took in seconds to complete this step
-
completed
public java.util.Date completed
The datetime that this was transacted
-
collationBatch
public Batch collationBatch
The batch that was collated for this step, should the step be collation
-
jobNumber
public java.lang.String jobNumber
The job number this applies to
-
lotNumber
public java.lang.String lotNumber
The lot number of the stock consumed
-
commodityCode
public java.lang.String commodityCode
The commodity code of the stock consumed
-
commodityDescription
public java.lang.String commodityDescription
The commodity description of the stock consumed
-
locationCode
public java.lang.String locationCode
The location code for where the stock was consumed
-
targetQuantity
public java.lang.Double targetQuantity
The target quantity requested at the terminal
-
supplierLot
public java.lang.String supplierLot
The supplier lot number associated with the stock that was consumed
-
lotContainer
public LotContainer lotContainer
The LotContaner consumed if using lot containerization.- See Also:
LotContainer
-
terminal
public Terminal terminal
The terminal this consumption was performed on
-
user
public User user
The user that performed this consumption
-
dateProduced
public java.util.Date dateProduced
The date of production for this item
-
containerLabelPrinted
public java.lang.Integer containerLabelPrinted
Boolean indicator to state whether container labels have been printed for this item or not
-
bulksComplete
public java.lang.Integer bulksComplete
Indicator as to whether bulks or remainder were completed on this item should the system be split into bagging zones
-
initRemainingQty
public java.lang.Double initRemainingQty
An stock threshold for zeroing stock for this item should the item have had it's stock initialized
-
containerLink
public ContainerLink containerLink
The specific Container/Stock combination used in the consumption of this item. This could be a pallet.
-
sampleNo
public java.lang.Integer sampleNo
The next sample number for performing batch revisions
-
collatedBag
public Bag collatedBag
When using Bagging Mode 3, the collated bag is the bag which is scanned into the mix.
-
-
Method Detail
-
getBatch
public Batch getBatch()
-
setBatch
public void setBatch(Batch batch)
-
getFormulaStep
public FormulaStep getFormulaStep()
-
setFormulaStep
public void setFormulaStep(FormulaStep formulaStep)
-
getTargetQuantity
public java.lang.Double getTargetQuantity()
-
getQuantity
public double getQuantity()
-
setQuantity
public void setQuantity(double quantity)
-
getStock
public StockLocation getStock()
-
setStock
public void setStock(StockLocation stock)
-
getAnswer
public java.lang.String getAnswer()
-
setAnswer
public void setAnswer(java.lang.String answer)
-
getTare
public java.lang.Double getTare()
-
setTare
public void setTare(java.lang.Double tare)
-
getTime
public int getTime()
-
setTime
public void setTime(int time)
-
getCompleted
public java.util.Date getCompleted()
-
setCompleted
public void setCompleted(java.util.Date completed)
-
getCollationBatch
public Batch getCollationBatch()
-
setCollationBatch
public void setCollationBatch(Batch collationBatch)
-
setJobNumber
public void setJobNumber(java.lang.String jobNumber)
-
getJobNumber
public java.lang.String getJobNumber()
-
setLotNumber
public void setLotNumber(java.lang.String lotNumber)
-
setCommodityCode
public void setCommodityCode(java.lang.String commodityCode)
-
setCommodityDescription
public void setCommodityDescription(java.lang.String commodityDescription)
-
setLocationCode
public void setLocationCode(java.lang.String locationCode)
-
getLocationCode
public java.lang.String getLocationCode()
-
setTargetQuantity
public void setTargetQuantity(java.lang.Double targetQuantity)
-
setSupplierLot
public void setSupplierLot(java.lang.String supplierLot)
-
getLotContainer
public LotContainer getLotContainer()
-
setLotContainer
public void setLotContainer(LotContainer lotContainer)
-
getTerminal
public Terminal getTerminal()
-
getUser
public User getUser()
-
setTerminal
public void setTerminal(Terminal terminal)
-
setUser
public void setUser(User user)
-
getDateProduced
public java.util.Date getDateProduced()
-
setDateProduced
public void setDateProduced(java.util.Date dateProduced)
-
getContainerLabelPrinted
public java.lang.Integer getContainerLabelPrinted()
-
setContainerLabelPrinted
public void setContainerLabelPrinted(java.lang.Integer containerLabelPrinted)
-
getBulksComplete
public java.lang.Integer getBulksComplete()
-
setBulksComplete
public void setBulksComplete(java.lang.Integer bulksComplete)
-
getInitRemainingQty
public java.lang.Double getInitRemainingQty()
-
setInitRemainingQty
public void setInitRemainingQty(java.lang.Double initRemainingQty)
-
getContainerLink
public ContainerLink getContainerLink()
-
setContainerLink
public void setContainerLink(ContainerLink containerLink)
-
getSampleNo
public java.lang.Integer getSampleNo()
-
setSampleNo
public void setSampleNo(java.lang.Integer sampleNo)
-
getCollatedBag
public Bag getCollatedBag()
-
setCollatedBag
public void setCollatedBag(Bag collatedBag)
-
-