public class WeightUnit extends HibernateObject
Commodity.units
.\
Formula Steps, Purchase Order Lines, SPC Runs, Sales Order Lines and many more aspects of the system are allowed to select their own WeightUnits to reference the quantity fields of each respective object
Conversions can be performed to change values between these units via conversionRate
or on a commodity specific basis through UnitCommodity
Modifier and Type | Field and Description |
---|---|
java.lang.String |
code
*Primary Key*
The unique code for this weighment unit
|
double |
conversionRate
A conversion rate for this unit to the unit at ID 1
|
java.lang.String |
description
A description of the unit
|
java.lang.String |
notes |
ID
Constructor and Description |
---|
WeightUnit() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode() |
double |
getConversionRate() |
java.util.Date |
getDeleted() |
java.lang.String |
getDescription() |
java.lang.String |
getNotes() |
void |
setCode(java.lang.String code) |
void |
setConversionRate(double conversionRate) |
void |
setDeleted(java.util.Date deleted) |
void |
setDescription(java.lang.String description) |
void |
setNotes(java.lang.String notes) |
java.lang.String |
toString() |
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
public java.lang.String code
public java.lang.String description
public double conversionRate
public java.lang.String notes
public java.lang.String getCode()
public void setCode(java.lang.String code)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getNotes()
public void setNotes(java.lang.String notes)
public double getConversionRate()
public void setConversionRate(double conversionRate)
public java.util.Date getDeleted()
public void setDeleted(java.util.Date deleted)
public java.lang.String toString()
toString
in class java.lang.Object