indelen per 1000

This commit is contained in:
ErikHommel 2022-02-07 11:37:01 +01:00
parent b38cfe13c5
commit fffbab9858
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function civicrm_api3_lid_Indelen($params) {
}
$nogInTeDelenGroepId = CRM_Core_DAO::singleValueQuery("SELECT id FROM civicrm_group WHERE name = %1", [1 => ["bij1_nog_in_te_delen", "String"]]);
$returnValues = [];
$lid = CRM_Core_DAO::executeQuery("SELECT DISTINCT(contact_id) FROM civicrm_contribution WHERE contact_id >= %1 ORDER BY contact_id", [1 => [$min, "Integer"]]);
$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()) {
$inschrijvingsDatum = $contact->haalInschrijvingsDatum((int) $lid->contact_id);
if ($contact->heeftBasisBetaald((int) $lid->contact_id, $vanDatum, $totDatum)) {