Package com.sgs.common.database
Class SalesLog
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.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 Summary
Fields Modifier and Type Field Description java.lang.String
bolNumber
Not usedContainerLink
containerLink
The link to the stock/pallet combination that was picked/shipped for this logjava.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 eventjava.lang.String
driverId
The Id/Licence of the diver for the transactionjava.lang.String
driverName
The name of the diver for the transactionjava.lang.Double
fulfilled
The quantity of the sales order line fulfilledSalesOrderLine
line
The SalesOrderLine to which this log pertainsLocation
location
The production location of the actionPack
pack
If a serialized pack was shipped, it will be recorded hereContainer
pallet
The pallet which was picked onto/shippedjava.lang.Double
price
The price for the itemjava.lang.Double
quantity
The quantity of the transactionjava.lang.String
reason
Any associated reason with the action being performedSalesLog
referencedLog
The log to which this log referencesSalesOrder
salesOrder
The SalesOrder to which this log pertainsjava.util.Date
shipped
The date that the item was shippedStockLocation
stock
The stock which was affected by this actionTerminal
terminal
The terminal where this action was performedjava.util.Date
timestamp
A timestamp for when this transaction was performedTrailer
trailer
The trailer that this event may have ended up onUser
user
The user who performed this action-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description SalesLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o)
java.lang.String
getBolNumber()
ContainerLink
getContainerLink()
java.lang.String
getDescriptor()
java.lang.String
getDriverId()
java.lang.String
getDriverName()
java.lang.Double
getFulfilled()
SalesOrderLine
getLine()
Location
getLocation()
Pack
getPack()
Container
getPallet()
java.lang.Double
getPrice()
java.lang.Double
getQuantity()
java.lang.String
getReason()
SalesLog
getReferencedLog()
SalesOrder
getSalesOrder()
java.util.Date
getShipped()
StockLocation
getStock()
Terminal
getTerminal()
java.util.Date
getTimestamp()
Trailer
getTrailer()
User
getUser()
boolean
isProcessed()
void
setBolNumber(java.lang.String bolNumber)
void
setContainerLink(ContainerLink containerLink)
void
setDescriptor(java.lang.String descriptor)
void
setDriverId(java.lang.String driverId)
void
setDriverName(java.lang.String driverName)
void
setFulfilled(java.lang.Double fulfilled)
void
setLine(SalesOrderLine line)
void
setLocation(Location location)
void
setPack(Pack pack)
void
setPallet(Container pallet)
void
setPrice(java.lang.Double price)
void
setProcessed(boolean processed)
void
setQuantity(java.lang.Double quantity)
void
setReason(java.lang.String reason)
void
setReferencedLog(SalesLog referencedLog)
void
setSalesOrder(SalesOrder salesOrder)
void
setShipped(java.util.Date shipped)
void
setStock(StockLocation stock)
void
setTerminal(Terminal terminal)
void
setTimestamp(java.util.Date timestamp)
void
setTrailer(Trailer trailer)
void
setUser(User user)
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
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
-
-
Method Detail
-
getLine
public SalesOrderLine getLine()
-
getStock
public StockLocation getStock()
-
getQuantity
public java.lang.Double getQuantity()
-
setLine
public void setLine(SalesOrderLine line)
-
setStock
public void setStock(StockLocation stock)
-
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)
-
getPallet
public Container getPallet()
-
setPallet
public void setPallet(Container pallet)
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.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)
-
getContainerLink
public ContainerLink getContainerLink()
-
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)
-
-