func (VS *Server) isStockAvailableForAssignment(c *gin.Context, stockID bson.ObjectId, class string, method string, operation string) bool {
	var as []Assignment
	VS.DataBase.Find(&as, bolthold.Where("IDStock").Eq(stockID).And("IsBack").Eq(false))
	if len(as) > 0 {
		return false
	}
	return true
}
// This method returns true is the item is available for assignment and false if not
This method returns true is the item is available for assignment and false if not
// This method returns true is the item is available for assignment and false if not
func (VS *Server) isStockAvailableForAssignment(c *gin.Context, stockID bson.ObjectId, class string, method string, operation string) bool {
	var as []Assignment
	VS.DataBase.Find(&as, bolthold.Where("IDStock").Eq(stockID).And("IsBack").Eq(false))
	if len(as) > 0 {
		return false
	}
	return true
}
func ( VS * Server ) isStockAvailableForAssignment ( c * gin . Context , stockID bson . ObjectId , class string , method string , operation string ) bool { var as [ ] Assignment VS . DataBase . Find ( & as , bolthold . Where ( " " ) . Eq ( stockID ) . And ( " " ) . Eq ( false ) ) if len ( as ) > 0 { return false } return true }
This method returns true is the item is available for assignment and false if not
This method returns true is the item is available for assignment and false if not