Package org.compiere.model

Examples of org.compiere.model.MUOM


    //  toString

  //  ListItem
 
  private String productSummary(MProduct product, boolean isLeaf) {
    MUOM uom = MUOM.get(getCtx(), product.getC_UOM_ID());
    String value = product.getValue();
    String name = product.get_Translation(MProduct.COLUMNNAME_Name);
    //
    StringBuffer sb = new StringBuffer(value);
    if (name != null && !value.equals(name))
      sb.append("_").append(product.getName());
    sb.append(" [").append(uom.get_Translation(MUOM.COLUMNNAME_UOMSymbol)).append("]");
    //
    return sb.toString();
  }
View Full Code Here

TOP

Related Classes of org.compiere.model.MUOM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.