Package com.sgs.common.database
Class PurchaseOrderLine
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.PurchaseOrderLine
-
public class PurchaseOrderLine extends HibernateObject
This class represents a line of a purchase order- Author:
- SGSystems
-
-
Field Summary
Fields Modifier and Type Field Description Commodity
commodity
The commodity to be received on this purchase order lineContainer
container
The container in which this line is receivedjava.lang.Integer
containerCount
The number of containers for this linejava.lang.Double
cost
The cost of this linejava.util.Date
deleted
A deletion timestampjava.util.Date
expectedDelivery
An expected delivery date for this linejava.lang.String
lineId
For advanced purposes where the same commodity may appear on multiple lines, you can specify a LineID as a unique identifier instead of SalesOrder+Commodity Codejava.lang.String
lineReference
A custom reference that can be set against the line itemjava.util.List<SystemLog>
logs
A list of system logs associated with this lineContainer
pallet
The pallet on which this line is receivedjava.lang.Double
palletTare
The tare of thepallet
PurchaseOrder
purchaseOrder
The purchase order that this line belongs tojava.lang.Double
quantity
The quantity to be received for this lineSite
site
The Site that the Purchase Order Line is going to.java.lang.String
supplierPartNo
The supplier part number for the goods to be receivedWeightUnit
unit
The unit to whichquantity
refers-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description PurchaseOrderLine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLogs(java.util.List<SystemLog> logs)
java.lang.String
getBulkQuantity()
Commodity
getCommodity()
Container
getContainer()
java.lang.Integer
getContainerCount()
java.lang.Double
getCost()
java.util.Date
getDeleted()
java.util.Date
getExpectedDelivery()
java.lang.String
getLineId()
java.lang.String
getLineReference()
java.util.List<SystemLog>
getLogs()
Container
getPallet()
java.lang.Double
getPalletTare()
PurchaseOrder
getPurchaseOrder()
java.lang.Double
getQuantity()
java.lang.Double
getQuantityAllocated()
Site
getSite()
java.lang.String
getSupplierPartNo()
java.lang.Double
getTotalCost()
WeightUnit
getUnit()
void
setBulkQuantity(java.lang.Double bulkQty)
void
setCommodity(Commodity commodity)
void
setContainer(Container container)
void
setContainerCount(java.lang.Integer containerCount)
void
setCost(java.lang.Double cost)
void
setDeleted(java.util.Date deleted)
void
setExpectedDelivery(java.util.Date expectedDelivery)
void
setLineId(java.lang.String lineId)
void
setLineReference(java.lang.String lineReference)
void
setLogs(java.util.List<SystemLog> poLogs)
void
setPallet(Container pallet)
void
setPalletTare(java.lang.Double palletTare)
void
setPurchaseOrder(PurchaseOrder purchaseOrder)
void
setQuantity(java.lang.Double quantity)
void
setSite(Site site)
void
setSupplierPartNo(java.lang.String supplierPartNo)
void
setUnit(WeightUnit unit)
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
purchaseOrder
public PurchaseOrder purchaseOrder
The purchase order that this line belongs to
-
commodity
public Commodity commodity
The commodity to be received on this purchase order line
-
quantity
public java.lang.Double quantity
The quantity to be received for this line
-
deleted
public java.util.Date deleted
A deletion timestamp
-
cost
public java.lang.Double cost
The cost of this line
-
unit
public WeightUnit unit
The unit to whichquantity
refers
-
logs
public java.util.List<SystemLog> logs
A list of system logs associated with this line
-
pallet
public Container pallet
The pallet on which this line is received
-
container
public Container container
The container in which this line is received
-
containerCount
public java.lang.Integer containerCount
The number of containers for this line
-
palletTare
public java.lang.Double palletTare
The tare of thepallet
-
lineId
public java.lang.String lineId
For advanced purposes where the same commodity may appear on multiple lines, you can specify a LineID as a unique identifier instead of SalesOrder+Commodity Code
-
supplierPartNo
public java.lang.String supplierPartNo
The supplier part number for the goods to be received
-
expectedDelivery
public java.util.Date expectedDelivery
An expected delivery date for this line
-
lineReference
public java.lang.String lineReference
A custom reference that can be set against the line item
-
site
public Site site
The Site that the Purchase Order Line is going to.
-
-
Method Detail
-
getPurchaseOrder
public PurchaseOrder getPurchaseOrder()
-
getCommodity
public Commodity getCommodity()
-
getQuantity
public java.lang.Double getQuantity()
-
getDeleted
public java.util.Date getDeleted()
-
getCost
public java.lang.Double getCost()
-
getUnit
public WeightUnit getUnit()
-
setPurchaseOrder
public void setPurchaseOrder(PurchaseOrder purchaseOrder)
-
setCommodity
public void setCommodity(Commodity commodity)
-
setQuantity
public void setQuantity(java.lang.Double quantity)
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
setCost
public void setCost(java.lang.Double cost)
-
setUnit
public void setUnit(WeightUnit unit)
-
setLogs
public void setLogs(java.util.List<SystemLog> poLogs)
-
getLogs
public java.util.List<SystemLog> getLogs()
-
getQuantityAllocated
public java.lang.Double getQuantityAllocated()
-
addLogs
public void addLogs(java.util.List<SystemLog> logs)
-
getPallet
public Container getPallet()
-
getContainer
public Container getContainer()
-
getContainerCount
public java.lang.Integer getContainerCount()
-
setPallet
public void setPallet(Container pallet)
-
setContainer
public void setContainer(Container container)
-
setContainerCount
public void setContainerCount(java.lang.Integer containerCount)
-
getPalletTare
public java.lang.Double getPalletTare()
-
setPalletTare
public void setPalletTare(java.lang.Double palletTare)
-
getTotalCost
public java.lang.Double getTotalCost()
-
getLineId
public java.lang.String getLineId()
-
setLineId
public void setLineId(java.lang.String lineId)
-
getSupplierPartNo
public java.lang.String getSupplierPartNo()
-
setSupplierPartNo
public void setSupplierPartNo(java.lang.String supplierPartNo)
-
getExpectedDelivery
public java.util.Date getExpectedDelivery()
-
setExpectedDelivery
public void setExpectedDelivery(java.util.Date expectedDelivery)
-
getLineReference
public java.lang.String getLineReference()
-
setLineReference
public void setLineReference(java.lang.String lineReference)
-
getSite
public Site getSite()
-
setSite
public void setSite(Site site)
-
getBulkQuantity
public java.lang.String getBulkQuantity()
-
setBulkQuantity
public void setBulkQuantity(java.lang.Double bulkQty)
-
-