示例#1
0
 /// <summary>
 /// Set Movement Qty - enforce UOM
 /// </summary>
 /// <param name="movementQty">qty</param>
 public new void SetMovementQty(Decimal?movementQty)
 {
     if (movementQty != null)
     {
         VAdvantage.Model.MProduct product = GetProduct();
         if (product != null)
         {
             int precision = product.GetUOMPrecision();
             movementQty = Decimal.Round(movementQty.Value, precision, MidpointRounding.AwayFromZero);
         }
     }
     base.SetMovementQty(movementQty);
 }