Class WeightUnit


  • public class WeightUnit
    extends HibernateObject
    This class stores the units by which measurements are taken in the SG v5 System Inventory is stored in a base stocking unit set by 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
    Author:
    SGSystems
    • Field Detail

      • code

        public java.lang.String code
        *Primary Key* The unique code for this weighment unit
      • description

        public java.lang.String description
        A description of the unit
      • conversionRate

        public double conversionRate
        A conversion rate for this unit to the unit at ID 1
      • notes

        public java.lang.String notes
    • Constructor Detail

      • WeightUnit

        public WeightUnit()
    • Method Detail

      • getCode

        public java.lang.String getCode()
      • setCode

        public void setCode​(java.lang.String code)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • getNotes

        public java.lang.String getNotes()
      • setNotes

        public void setNotes​(java.lang.String notes)
      • getConversionRate

        public double getConversionRate()
      • setConversionRate

        public void setConversionRate​(double conversionRate)
      • getDeleted

        public java.util.Date getDeleted()
      • setDeleted

        public void setDeleted​(java.util.Date deleted)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object