public function byAccountIds($ids, $databaseConnectionName = null)
  {
    if(empty($databaseConnectionName))
    {
      $databaseConnectionName = $this->databaseConnectionName;
    }

    return $this->JournalEntry->setConnection($databaseConnectionName)->whereIn('account_id', $ids)->get();
  }
public function byAccountIds($ids, $databaseConnectionName = null)
  {
    if(empty($databaseConnectionName))
    {
      $databaseConnectionName = $this->databaseConnectionName;
    }

    return $this->JournalEntry->setConnection($databaseConnectionName)->whereIn('account_id', $ids)->get();
  }
public function byAccountIds ( $ ids , $ databaseConnectionName = null ) { if ( empty ( $ databaseConnectionName ) ) { $ databaseConnectionName = $ this -> databaseConnectionName ; } return $ this -> JournalEntry -> setConnection ( $ databaseConnectionName ) -> whereIn ( 'account_id' , $ ids ) -> get ( ) ; }
Get journal entries by account ids

@param  int $id Journal Voucher id

@return integer
Get journal entries by account ids