Beispiel #1
0
 /**
  * Set Qty Entered - enforce entered UOM
  *
  * @param QtyEntered
  */
 @Override
 public void setQtyEntered(BigDecimal QtyEntered) {
   if (QtyEntered != null && getC_UOM_ID() != 0) {
     int precision = MUOM.getPrecision(getCtx(), getC_UOM_ID());
     QtyEntered = QtyEntered.setScale(precision, BigDecimal.ROUND_HALF_UP);
   }
   super.setQtyEntered(QtyEntered);
 } // setQtyEntered
Beispiel #2
0
 /**
  * Set Qty Entered/Ordered. Use this Method if the Line UOM is the Product UOM
  *
  * @param Qty QtyOrdered/Entered
  */
 public void setQty(BigDecimal Qty) {
   super.setQtyEntered(Qty);
   super.setQtyOrdered(getQtyEntered());
 } // setQty