max contact id in indeeljob
This commit is contained in:
parent
a3ed7dc958
commit
67ac293063
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue