public function getByOrganizationByPeriodAndByStatus($organizationId, $periodIds, $status, $databaseConnectionName = null)
  {
    if(empty($databaseConnectionName))
    {
      $databaseConnectionName = $this->databaseConnectionName;
    }

    return $this->JournalVoucher->setConnection($databaseConnectionName)
      ->where('organization_id', '=', $organizationId)
      ->whereIn('period_id', $periodIds)
      ->where('status', '=', $status)
      ->get();
  }