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 CommoditycommodityThe commodity to be received on this purchase order lineContainercontainerThe container in which this line is receivedjava.lang.IntegercontainerCountThe number of containers for this linejava.lang.DoublecostThe cost of this linejava.util.DatedeletedA deletion timestampjava.util.DateexpectedDeliveryAn expected delivery date for this linejava.lang.StringlineIdFor 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.StringlineReferenceA custom reference that can be set against the line itemjava.util.List<SystemLog>logsA list of system logs associated with this lineContainerpalletThe pallet on which this line is receivedjava.lang.DoublepalletTareThe tare of thepalletPurchaseOrderpurchaseOrderThe purchase order that this line belongs tojava.lang.DoublequantityThe quantity to be received for this lineSitesiteThe Site that the Purchase Order Line is going to.java.lang.StringsupplierPartNoThe supplier part number for the goods to be receivedWeightUnitunitThe unit to whichquantityrefers-
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 voidaddLogs(java.util.List<SystemLog> logs)java.lang.StringgetBulkQuantity()CommoditygetCommodity()ContainergetContainer()java.lang.IntegergetContainerCount()java.lang.DoublegetCost()java.util.DategetDeleted()java.util.DategetExpectedDelivery()java.lang.StringgetLineId()java.lang.StringgetLineReference()java.util.List<SystemLog>getLogs()ContainergetPallet()java.lang.DoublegetPalletTare()PurchaseOrdergetPurchaseOrder()java.lang.DoublegetQuantity()java.lang.DoublegetQuantityAllocated()SitegetSite()java.lang.StringgetSupplierPartNo()java.lang.DoublegetTotalCost()WeightUnitgetUnit()voidsetBulkQuantity(java.lang.Double bulkQty)voidsetCommodity(Commodity commodity)voidsetContainer(Container container)voidsetContainerCount(java.lang.Integer containerCount)voidsetCost(java.lang.Double cost)voidsetDeleted(java.util.Date deleted)voidsetExpectedDelivery(java.util.Date expectedDelivery)voidsetLineId(java.lang.String lineId)voidsetLineReference(java.lang.String lineReference)voidsetLogs(java.util.List<SystemLog> poLogs)voidsetPallet(Container pallet)voidsetPalletTare(java.lang.Double palletTare)voidsetPurchaseOrder(PurchaseOrder purchaseOrder)voidsetQuantity(java.lang.Double quantity)voidsetSite(Site site)voidsetSupplierPartNo(java.lang.String supplierPartNo)voidsetUnit(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 whichquantityrefers
-
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)
-
-