public function returned($quantity = 0, $reason = '', $cost = 0)
{
if ($quantity) {
/*
* Quantity was specified, we must be
* returning a partial amount of quantity
*/
return $this->returnedPartial($quantity, $reason, $cost);
} else {
/*
* Looks like we're returning all of the stock
*/
return $this->returnedAll($reason, $cost);
}
}