Example #1
0
 /**
  * Get the total purchases
  *
  */
 public function purchases()
 {
     return Stock::dateRange($this->from, $this->to)->sum('cost');
 }