Class StockLocationManager
- Namespace
- Dynamicweb.Ecommerce.Stocks
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a stock location manager. Provides prepares and finds stock locations.
public class StockLocationManager
- Inheritance
-
StockLocationManager
- Inherited Members
Methods
FindStocks(OrderLine)
Find stocks for order line
[Obsolete("Use GetStockLocations instead.")]
public static StockLocationCollection FindStocks(OrderLine orderLine)
Parameters
orderLineOrderLine
Returns
GetStockLocations(OrderLine)
Find stocks for order line
public static IEnumerable<StockLocation> GetStockLocations(OrderLine orderLine)
Parameters
orderLineOrderLine
Returns
UpdateStock(OrderLine, ProductOrderStockOperator)
Updates the stock.
public bool UpdateStock(OrderLine orderLine, ProductOrderStockOperator stockOperator)
Parameters
orderLineOrderLine- The order line.
stockOperatorProductOrderStockOperator- The operator.
Returns
- bool
- Whether stock was updated or not.
UpdateStock(OrderLine, ProductOrderStockOperator, StockLocation)
Updates the stock.
public static bool UpdateStock(OrderLine orderLine, ProductOrderStockOperator stockOperator, StockLocation stockLocation)
Parameters
orderLineOrderLine- The order line.
stockOperatorProductOrderStockOperator- The operator.
stockLocationStockLocation- The stock location.
Returns
- bool
- Whether stock was updated or not.