Class SalesLog

  • All Implemented Interfaces:
    java.lang.Comparable<java.lang.Object>

    public class SalesLog
    extends HibernateObject
    implements java.lang.Comparable<java.lang.Object>
    This class represents actions which have occurred during shipping When items are picked/shipped, a log is generated here
    Author:
    SGSystems
    • Field Detail

      • line

        public SalesOrderLine line
        The SalesOrderLine to which this log pertains
      • stock

        public StockLocation stock
        The stock which was affected by this action
      • quantity

        public java.lang.Double quantity
        The quantity of the transaction
      • timestamp

        public java.util.Date timestamp
        A timestamp for when this transaction was performed
      • user

        public User user
        The user who performed this action
      • terminal

        public Terminal terminal
        The terminal where this action was performed
      • price

        public java.lang.Double price
        The price for the item
      • shipped

        public java.util.Date shipped
        The date that the item was shipped
      • pack

        public Pack pack
        If a serialized pack was shipped, it will be recorded here
      • pallet

        public Container pallet
        The pallet which was picked onto/shipped
      • location

        public Location location
        The production location of the action
      • descriptor

        public java.lang.String descriptor
        A descriptive field which informs what action the log refers to
        ALLOCATED - This item has been assigned to an order but not picked
        PICKED - This item has been picked to an order and removed from inventory
        UNALLOCATED - This item has been unassigned from the order
        UNPICKED - This item has been unpicked from the order
        BACKORDERED - This item was backordered
        DRIVER SIGNATURE - Denotes a driver signature event
      • fulfilled

        public java.lang.Double fulfilled
        The quantity of the sales order line fulfilled
      • containerLink

        public ContainerLink containerLink
        The link to the stock/pallet combination that was picked/shipped for this log
      • trailer

        public Trailer trailer
        The trailer that this event may have ended up on
      • bolNumber

        public java.lang.String bolNumber
        Not used
      • referencedLog

        public SalesLog referencedLog
        The log to which this log references
      • salesOrder

        public SalesOrder salesOrder
        The SalesOrder to which this log pertains
      • driverName

        public java.lang.String driverName
        The name of the diver for the transaction
      • driverId

        public java.lang.String driverId
        The Id/Licence of the diver for the transaction
      • reason

        public java.lang.String reason
        Any associated reason with the action being performed
    • Constructor Detail

      • SalesLog

        public SalesLog()
    • Method Detail

      • getQuantity

        public java.lang.Double getQuantity()
      • setQuantity

        public void setQuantity​(java.lang.Double quantity)
      • getTimestamp

        public java.util.Date getTimestamp()
      • getUser

        public User getUser()
      • setTimestamp

        public void setTimestamp​(java.util.Date timestamp)
      • setUser

        public void setUser​(User user)
      • getTerminal

        public Terminal getTerminal()
      • setTerminal

        public void setTerminal​(Terminal terminal)
      • getPrice

        public java.lang.Double getPrice()
      • setPrice

        public void setPrice​(java.lang.Double price)
      • getShipped

        public java.util.Date getShipped()
      • setShipped

        public void setShipped​(java.util.Date shipped)
      • getPack

        public Pack getPack()
      • setPack

        public void setPack​(Pack pack)
      • setPallet

        public void setPallet​(Container pallet)
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.Object>
      • getLocation

        public Location getLocation()
      • setLocation

        public void setLocation​(Location location)
      • getDescriptor

        public java.lang.String getDescriptor()
      • setDescriptor

        public void setDescriptor​(java.lang.String descriptor)
      • getFulfilled

        public java.lang.Double getFulfilled()
      • setFulfilled

        public void setFulfilled​(java.lang.Double fulfilled)
      • setContainerLink

        public void setContainerLink​(ContainerLink containerLink)
      • getTrailer

        public Trailer getTrailer()
      • setTrailer

        public void setTrailer​(Trailer trailer)
      • getBolNumber

        public java.lang.String getBolNumber()
      • setBolNumber

        public void setBolNumber​(java.lang.String bolNumber)
      • isProcessed

        public boolean isProcessed()
      • setProcessed

        public void setProcessed​(boolean processed)
      • getReferencedLog

        public SalesLog getReferencedLog()
      • setReferencedLog

        public void setReferencedLog​(SalesLog referencedLog)
      • getSalesOrder

        public SalesOrder getSalesOrder()
      • setSalesOrder

        public void setSalesOrder​(SalesOrder salesOrder)
      • getDriverName

        public java.lang.String getDriverName()
      • setDriverName

        public void setDriverName​(java.lang.String driverName)
      • getDriverId

        public java.lang.String getDriverId()
      • setDriverId

        public void setDriverId​(java.lang.String driverId)
      • getReason

        public java.lang.String getReason()
      • setReason

        public void setReason​(java.lang.String reason)