diff --git a/api/v3/Lid/Indelen.php b/api/v3/Lid/Indelen.php index 9bc17b6..1fb0d76 100644 --- a/api/v3/Lid/Indelen.php +++ b/api/v3/Lid/Indelen.php @@ -47,6 +47,7 @@ function civicrm_api3_lid_Indelen($params) { $returnValues = []; $lid = CRM_Core_DAO::executeQuery("SELECT DISTINCT(contact_id) FROM civicrm_contribution WHERE contact_id >= %1 ORDER BY contact_id LIMIT 1000", [1 => [$min, "Integer"]]); while ($lid->fetch()) { + $maxContactId = $lid->contact_id; $inschrijvingsDatum = $contact->haalInschrijvingsDatum((int) $lid->contact_id); if ($contact->heeftBasisBetaald((int) $lid->contact_id, $vanDatum, $totDatum)) { $groep->plaatsInGroep((int) $lid->contact_id, Civi::service('bij1Algemeen')->getStandaardLedenGroepId(), $vanDatum); @@ -67,6 +68,6 @@ function civicrm_api3_lid_Indelen($params) { $groep->verwijderUitGroep((int) $lid->contact_id, Civi::service('bij1Algemeen')->getNieuweLedenGroepId(), TRUE); } } - $returnValues[] = ", de rest in standaard of nog in te delen"; + $returnValues[] = ", de rest in standaard of nog in te delen. Laatste verwerkte contact is " . $maxContactId; return civicrm_api3_create_success($returnValues, $params, 'Lid', 'Indelen'); }