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.StringbolNumberNot usedContainerLinkcontainerLinkThe link to the stock/pallet combination that was picked/shipped for this logjava.lang.StringdescriptorA 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.StringdriverIdThe Id/Licence of the diver for the transactionjava.lang.StringdriverNameThe name of the diver for the transactionjava.lang.DoublefulfilledThe quantity of the sales order line fulfilledSalesOrderLinelineThe SalesOrderLine to which this log pertainsLocationlocationThe production location of the actionPackpackIf a serialized pack was shipped, it will be recorded hereContainerpalletThe pallet which was picked onto/shippedjava.lang.DoublepriceThe price for the itemjava.lang.DoublequantityThe quantity of the transactionjava.lang.StringreasonAny associated reason with the action being performedSalesLogreferencedLogThe log to which this log referencesSalesOrdersalesOrderThe SalesOrder to which this log pertainsjava.util.DateshippedThe date that the item was shippedStockLocationstockThe stock which was affected by this actionTerminalterminalThe terminal where this action was performedjava.util.DatetimestampA timestamp for when this transaction was performedTrailertrailerThe trailer that this event may have ended up onUseruserThe 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 intcompareTo(java.lang.Object o)java.lang.StringgetBolNumber()ContainerLinkgetContainerLink()java.lang.StringgetDescriptor()java.lang.StringgetDriverId()java.lang.StringgetDriverName()java.lang.DoublegetFulfilled()SalesOrderLinegetLine()LocationgetLocation()PackgetPack()ContainergetPallet()java.lang.DoublegetPrice()java.lang.DoublegetQuantity()java.lang.StringgetReason()SalesLoggetReferencedLog()SalesOrdergetSalesOrder()java.util.DategetShipped()StockLocationgetStock()TerminalgetTerminal()java.util.DategetTimestamp()TrailergetTrailer()UsergetUser()booleanisProcessed()voidsetBolNumber(java.lang.String bolNumber)voidsetContainerLink(ContainerLink containerLink)voidsetDescriptor(java.lang.String descriptor)voidsetDriverId(java.lang.String driverId)voidsetDriverName(java.lang.String driverName)voidsetFulfilled(java.lang.Double fulfilled)voidsetLine(SalesOrderLine line)voidsetLocation(Location location)voidsetPack(Pack pack)voidsetPallet(Container pallet)voidsetPrice(java.lang.Double price)voidsetProcessed(boolean processed)voidsetQuantity(java.lang.Double quantity)voidsetReason(java.lang.String reason)voidsetReferencedLog(SalesLog referencedLog)voidsetSalesOrder(SalesOrder salesOrder)voidsetShipped(java.util.Date shipped)voidsetStock(StockLocation stock)voidsetTerminal(Terminal terminal)voidsetTimestamp(java.util.Date timestamp)voidsetTrailer(Trailer trailer)voidsetUser(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:
compareToin 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)
-
-