private bool CheckStock() { ProductInfo producto = ProductInfo.Get(_entity.OidProducto); if (producto.AvisarStock) { BatchInfo partida = BatchInfo.Get(_entity.OidPartida, false); if (!partida.CheckStock(_entity, producto)) { DialogResult result = PgMng.ShowWarningException(Resources.Messages.AVISO_STOCK_MINIMO); if (result == DialogResult.Yes) { return(true); } else { return(false); } } else { return(true); } } else { return(true); } }