Class 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 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.
    • Constructor Detail

      • BatchConsumption

        public BatchConsumption()
    • Method Detail

      • getBatch

        public Batch getBatch()
      • setBatch

        public void setBatch​(Batch batch)
      • setFormulaStep

        public void setFormulaStep​(FormulaStep formulaStep)
      • getTargetQuantity

        public java.lang.Double getTargetQuantity()
      • getQuantity

        public double getQuantity()
      • setQuantity

        public void setQuantity​(double quantity)
      • 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)
      • 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)
      • 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)