/**
  * Get transaction history for the specified sale
  * @param $result
  * @return mixed
  */
 public function getTransactionHistory($result)
 {
     $histMdl = new TransHistModel();
     $history = $histMdl->get($this->data->id);
     if ($history === false) {
         $result['error'] = "Could not get transaction history: " . $histMdl->errorInfo;
     } else {
         $result['data'] = $history;
     }
     return $result;
 }