Ejemplo n.º 1
0
    public static void RemoveItemAtLocation(string Locations_Id)
    {
        ProductLocation item = ProductLocation.Get(Locations_Id);

        item.Product_Code = "Empty";

        item.Save();
    }
Ejemplo n.º 2
0
    /// <summary>
    /// Function to update the quantity of the item at the location
    /// </summary>
    /// <param name="Locations_Id"></param>
    /// <param name="Product_Quantity"></param>
    public static void UpdateQuantity(string Locations_Id, int Product_Quantity)
    {
        ProductLocation item = ProductLocation.Get(Locations_Id);

        item.Product_Quantity = Product_Quantity;

        item.Save();
    }
Ejemplo n.º 3
0
    /// <summary>
    /// Function to update what item is at a specific location
    /// </summary>
    /// <param name="Locations_Id">value to find the location in the database</param>
    /// <param name="Product_Code">new value for the item at the location</param>
    /// <param name="Product_Quantity">Quantity of the new item at the location</param>
    public static void ChangeItemAtLocation(string Locations_Id, string Product_Code, int Product_Quantity)
    {
        ProductLocation item = ProductLocation.Get(Locations_Id);

        item.Product_Code     = Product_Code;
        item.Product_Quantity = Product_Quantity;

        item.Save();
    }