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.StringanswerThe answer that was provided if the formula step was a questionBatchbatchThe batch that the consumption was part ofjava.lang.IntegerbulksCompleteIndicator as to whether bulks or remainder were completed on this item should the system be split into bagging zonesBagcollatedBagWhen using Bagging Mode 3, the collated bag is the bag which is scanned into the mix.BatchcollationBatchThe batch that was collated for this step, should the step be collationjava.lang.StringcommodityCodeThe commodity code of the stock consumedjava.lang.StringcommodityDescriptionThe commodity description of the stock consumedjava.util.DatecompletedThe datetime that this was transactedjava.lang.IntegercontainerLabelPrintedBoolean indicator to state whether container labels have been printed for this item or notContainerLinkcontainerLinkThe specific Container/Stock combination used in the consumption of this item.java.util.DatedateProducedThe date of production for this itemjava.lang.DoubleinitRemainingQtyAn stock threshold for zeroing stock for this item should the item have had it's stock initializedjava.lang.StringjobNumberThe job number this applies tojava.lang.StringlocationCodeThe location code for where the stock was consumedLotContainerlotContainerThe LotContaner consumed if using lot containerization.java.lang.StringlotNumberThe lot number of the stock consumeddoublequantityThe quantity that was deductedjava.lang.IntegersampleNoThe next sample number for performing batch revisionsStockLocationstockThe inventory that was consumedjava.lang.StringsupplierLotThe supplier lot number associated with the stock that was consumedjava.lang.DoubletareThe tare weight at the point of weighing, quantity does not include this value.java.lang.DoubletargetQuantityThe target quantity requested at the terminalTerminalterminalThe terminal this consumption was performed oninttimeThe time it took in seconds to complete this stepUseruserThe 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.StringgetAnswer()BatchgetBatch()java.lang.IntegergetBulksComplete()BaggetCollatedBag()BatchgetCollationBatch()java.util.DategetCompleted()java.lang.IntegergetContainerLabelPrinted()ContainerLinkgetContainerLink()java.util.DategetDateProduced()FormulaStepgetFormulaStep()java.lang.DoublegetInitRemainingQty()java.lang.StringgetJobNumber()java.lang.StringgetLocationCode()LotContainergetLotContainer()doublegetQuantity()java.lang.IntegergetSampleNo()StockLocationgetStock()java.lang.DoublegetTare()java.lang.DoublegetTargetQuantity()TerminalgetTerminal()intgetTime()UsergetUser()voidsetAnswer(java.lang.String answer)voidsetBatch(Batch batch)voidsetBulksComplete(java.lang.Integer bulksComplete)voidsetCollatedBag(Bag collatedBag)voidsetCollationBatch(Batch collationBatch)voidsetCommodityCode(java.lang.String commodityCode)voidsetCommodityDescription(java.lang.String commodityDescription)voidsetCompleted(java.util.Date completed)voidsetContainerLabelPrinted(java.lang.Integer containerLabelPrinted)voidsetContainerLink(ContainerLink containerLink)voidsetDateProduced(java.util.Date dateProduced)voidsetFormulaStep(FormulaStep formulaStep)voidsetInitRemainingQty(java.lang.Double initRemainingQty)voidsetJobNumber(java.lang.String jobNumber)voidsetLocationCode(java.lang.String locationCode)voidsetLotContainer(LotContainer lotContainer)voidsetLotNumber(java.lang.String lotNumber)voidsetQuantity(double quantity)voidsetSampleNo(java.lang.Integer sampleNo)voidsetStock(StockLocation stock)voidsetSupplierLot(java.lang.String supplierLot)voidsetTare(java.lang.Double tare)voidsetTargetQuantity(java.lang.Double targetQuantity)voidsetTerminal(Terminal terminal)voidsetTime(int time)voidsetUser(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)
-
-