public void round(int precision){
  boolean dirty=false;
  m_precision=precision;
  BigDecimal min=getMinQty();
  if (min.scale() > m_precision) {
    setMinQty(min.setScale(m_precision,BigDecimal.ROUND_HALF_UP));
    dirty=true;
  }
  BigDecimal qty=getQty();
  if (qty.scale() > m_precision) {
    setQty(qty.setScale(m_precision,BigDecimal.ROUND_HALF_UP));
    dirty=true;
  }
  if (dirty)   save();
}

public void round ( int precision ) { boolean dirty = false ; m_precision = precision ; BigDecimal min = getMinQty ( ) ; if ( min . scale ( ) > m_precision ) { setMinQty ( min . setScale ( m_precision , BigDecimal . ROUND_HALF_UP ) ) ; dirty = true ; } BigDecimal qty = getQty ( ) ; if ( qty . scale ( ) > m_precision ) { setQty ( qty . setScale ( m_precision , BigDecimal . ROUND_HALF_UP ) ) ; dirty = true ; } if ( dirty ) save ( ) ; }
round minqty & qty
