Package com.sgs.common.database
Class Stock
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.Stock
-
public class Stock extends HibernateObject
This class represents a Stock header object. This class contains location-less stock data- Author:
- SGSystems
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.IntegerbatchIdA link to theBatchID that may have produced this stockjava.lang.DoublebulkWeightThe orignal bulk pack size weight received for this stock itemintcoaPerformedBoolean value indicating whether the Certificate of Analysis has been received/generated for this itemCommoditycommodityThe commodity of this piece of inventoryjava.lang.DoublecostThe cost of this itemjava.lang.StringcustomField1java.lang.StringcustomField2java.util.DatedateReceivedThe date the item was receivedjava.lang.StringdeliveryIdNumberDelivery Identification Numberjava.util.DateexpiryThe stock's expiry datejava.lang.StringexternalIdThe spare field to store identifier used in external ERP systems for examplejava.lang.StringlotNoThe internal lot numberjava.util.DatemanufactureDateThe date of manufacture for this itemjava.lang.StringoriginThe origin of this itemjava.lang.DoublepackCostThe cost of a pack of this itemjava.lang.IntegerpurchaseOrderIdThe purchase order this item was received onPurchaseOrderClientsupplierThe supplier who provided this inventoryjava.lang.StringsupplierLotNoThe external supplier lot/batch number for this itemjava.lang.DoubletareThe tare weight used when this was receivedjava.lang.DoubleweightReceivedThe quantity received-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description Stock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAssociatedPONo()java.lang.IntegergetBatchId()java.lang.DoublegetBulkWeight()intgetCoaPerformed()CommoditygetCommodity()java.lang.DoublegetCost()java.lang.StringgetCustomField1()java.lang.StringgetCustomField2()java.util.DategetDateReceived()java.lang.StringgetDaysUntilExpiry()java.util.DategetDeleted()java.lang.StringgetDeliveryIdNumber()java.util.DategetExpiry()java.lang.StringgetExternalId()java.lang.StringgetLotNo()java.util.DategetManufactureDate()java.lang.StringgetOrigin()java.lang.DoublegetPackCost()PurchaseOrderLinegetPoLine()java.lang.IntegergetPurchaseOrderId()ClientgetSupplier()java.lang.StringgetSupplierLotNo()java.lang.DoublegetTare()java.lang.DoublegetWeightReceived()voidsetAssociatedPONo(java.lang.String associatedPONo)voidsetBatchId(java.lang.Integer batchId)voidsetBulkWeight(java.lang.Double bulkWeight)voidsetCoaPerformed(int coaPerformed)voidsetCommodity(Commodity commodity)voidsetCost(java.lang.Double cost)voidsetCustomField1(java.lang.String customField1)voidsetCustomField2(java.lang.String customField2)voidsetDateReceived(java.util.Date dateReceived)voidsetDeleted(java.util.Date deleted)voidsetDeliveryIdNumber(java.lang.String deliveryIdNumber)voidsetExpiry(java.util.Date expiry)voidsetExternalId(java.lang.String externalId)voidsetLotNo(java.lang.String lotNo)voidsetManufactureDate(java.util.Date manufactureDate)voidsetOrigin(java.lang.String origin)voidsetPackCost(java.lang.Double packCost)voidsetPoLine(PurchaseOrderLine poLine)voidsetPurchaseOrderId(java.lang.Integer purchaseOrderId)voidsetSupplier(Client supplier)voidsetSupplierLotNo(java.lang.String supplierLotNo)voidsetTare(java.lang.Double tare)voidsetWeightReceived(java.lang.Double weightReceived)java.lang.StringtoString()-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
commodity
public Commodity commodity
The commodity of this piece of inventory
-
supplier
public Client supplier
The supplier who provided this inventory
-
lotNo
public java.lang.String lotNo
The internal lot number
-
expiry
public java.util.Date expiry
The stock's expiry date
-
cost
public java.lang.Double cost
The cost of this item
-
weightReceived
public java.lang.Double weightReceived
The quantity received
-
dateReceived
public java.util.Date dateReceived
The date the item was received
-
supplierLotNo
public java.lang.String supplierLotNo
The external supplier lot/batch number for this item
-
tare
public java.lang.Double tare
The tare weight used when this was received
-
packCost
public java.lang.Double packCost
The cost of a pack of this item
-
manufactureDate
public java.util.Date manufactureDate
The date of manufacture for this item
-
origin
public java.lang.String origin
The origin of this item
-
coaPerformed
public int coaPerformed
Boolean value indicating whether the Certificate of Analysis has been received/generated for this item
-
batchId
public java.lang.Integer batchId
A link to theBatchID that may have produced this stock
-
bulkWeight
public java.lang.Double bulkWeight
The orignal bulk pack size weight received for this stock item
-
purchaseOrderId
public java.lang.Integer purchaseOrderId
The purchase order this item was received onPurchaseOrder
-
externalId
public java.lang.String externalId
The spare field to store identifier used in external ERP systems for example
-
deliveryIdNumber
public java.lang.String deliveryIdNumber
Delivery Identification Number
-
customField1
public java.lang.String customField1
-
customField2
public java.lang.String customField2
-
-
Method Detail
-
getLotNo
public java.lang.String getLotNo()
-
setLotNo
public void setLotNo(java.lang.String lotNo)
-
getExpiry
public java.util.Date getExpiry()
-
setExpiry
public void setExpiry(java.util.Date expiry)
-
getCost
public java.lang.Double getCost()
-
setCost
public void setCost(java.lang.Double cost)
-
getCommodity
public Commodity getCommodity()
-
setCommodity
public void setCommodity(Commodity commodity)
-
getWeightReceived
public java.lang.Double getWeightReceived()
-
setWeightReceived
public void setWeightReceived(java.lang.Double weightReceived)
-
getDateReceived
public java.util.Date getDateReceived()
-
setDateReceived
public void setDateReceived(java.util.Date dateReceived)
-
getSupplier
public Client getSupplier()
-
setSupplier
public void setSupplier(Client supplier)
-
getSupplierLotNo
public java.lang.String getSupplierLotNo()
-
setSupplierLotNo
public void setSupplierLotNo(java.lang.String supplierLotNo)
-
getDeleted
public java.util.Date getDeleted()
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
getPoLine
public PurchaseOrderLine getPoLine()
-
setPoLine
public void setPoLine(PurchaseOrderLine poLine)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getTare
public java.lang.Double getTare()
-
setTare
public void setTare(java.lang.Double tare)
-
getPackCost
public java.lang.Double getPackCost()
-
setPackCost
public void setPackCost(java.lang.Double packCost)
-
getDaysUntilExpiry
public java.lang.String getDaysUntilExpiry()
-
getAssociatedPONo
public java.lang.String getAssociatedPONo()
-
setAssociatedPONo
public void setAssociatedPONo(java.lang.String associatedPONo)
-
getManufactureDate
public java.util.Date getManufactureDate()
-
setManufactureDate
public void setManufactureDate(java.util.Date manufactureDate)
-
getOrigin
public java.lang.String getOrigin()
-
setOrigin
public void setOrigin(java.lang.String origin)
-
getCoaPerformed
public int getCoaPerformed()
-
setCoaPerformed
public void setCoaPerformed(int coaPerformed)
-
getBatchId
public java.lang.Integer getBatchId()
-
setBatchId
public void setBatchId(java.lang.Integer batchId)
-
getBulkWeight
public java.lang.Double getBulkWeight()
-
setBulkWeight
public void setBulkWeight(java.lang.Double bulkWeight)
-
getPurchaseOrderId
public java.lang.Integer getPurchaseOrderId()
-
setPurchaseOrderId
public void setPurchaseOrderId(java.lang.Integer purchaseOrderId)
-
getExternalId
public java.lang.String getExternalId()
-
setExternalId
public void setExternalId(java.lang.String externalId)
-
getDeliveryIdNumber
public java.lang.String getDeliveryIdNumber()
-
setDeliveryIdNumber
public void setDeliveryIdNumber(java.lang.String deliveryIdNumber)
-
getCustomField1
public java.lang.String getCustomField1()
-
setCustomField1
public void setCustomField1(java.lang.String customField1)
-
getCustomField2
public java.lang.String getCustomField2()
-
setCustomField2
public void setCustomField2(java.lang.String customField2)
-
-