You are here

function uc_stock_increment_product_stock in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_stock/uc_stock.module \uc_stock_increment_product_stock()

Increment a product's stock.

1 string reference to 'uc_stock_increment_product_stock'
uc_stock_action_increment_stock in uc_stock/uc_stock.rules.inc
Increase the stock of ordered products.

File

uc_stock/uc_stock.module, line 292
Allow ubercart products to have stock levels associated with their SKU

Code

function uc_stock_increment_product_stock($product, $key, $order) {
  $product->qty = -$product->qty;
  return uc_stock_adjust_product_stock($product, $key, $order);
}