Terrycy/jigoshop — comment on commit 1fdf0fd66236bc7d251265a11477bfed3cf21d66
File:  line 0
By Terrycy:

Sorry Jeff, I've pasted it in the wrong place, I was rushing to get it done before work. You are right, it should be:

function reduce_stock( $by = 1 ) {
if ($this->managing_stock()) {
$reduce_to = $this->stock - $by;
$amount_sold = $this->stock_sold + $by;
update_post_meta($this->id, 'stock', $reduce_to);
update_post_meta($this->id, 'stock_sold', $amount_sold);
return $reduce_to;
}
}

Very sorry, I will double check before posting in future