Projet

Général

Profil

Anomalie #1558 » 0001-Adjust-members-state-due-chart-counts-refs-1558.patch

Guillaume AGNIERAY, 20/09/2021 00:10

Voir les différences:

galette/lib/Galette/IO/Charts.php
array(
'cnt' => new Expression('COUNT(a.' . Adherent::PK . ')')
)
)->where(array('bool_exempt_adh' => new Expression('true')));
)
->where(array('activite_adh' => new Expression('true')))
->where(array('bool_exempt_adh' => new Expression('true')));
$results = $zdb->execute($select);
$result = $results->current();
......
array(
'cnt' => new Expression('COUNT(a.' . Adherent::PK . ')')
)
)->where('date_echeance IS NULL');
)
->where(array('activite_adh' => new Expression('true')))
->where(array('bool_exempt_adh' => new Expression('false')))
->where('date_echeance IS NULL');
$results = $zdb->execute($select);
$result = $results->current();
......
'cnt' => new Expression('COUNT(a.' . Adherent::PK . ')')
)
)
->where(array('activite_adh' => new Expression('true')))
->where(array('bool_exempt_adh' => new Expression('false')))
->where->lessThanOrEqualTo('date_echeance', $soon_date->format('Y-m-d'))
->where->greaterThanOrEqualTo('date_echeance', $now->format('Y-m-d'));
......
array(
'cnt' => new Expression('COUNT(a.' . Adherent::PK . ')')
)
)->where->greaterThan('date_echeance', $now->format('Y-m-d'));
)
->where(array('activite_adh' => new Expression('true')))
->where(array('bool_exempt_adh' => new Expression('false')))
->where->greaterThan('date_echeance', $now->format('Y-m-d'));
$results = $zdb->execute($select);
$result = $results->current();
......
array(
'cnt' => new Expression('COUNT(a.' . Adherent::PK . ')')
)
)->where->lessThan('date_echeance', $now->format('Y-m-d'));
)
->where(array('activite_adh' => new Expression('true')))
->where(array('bool_exempt_adh' => new Expression('false')))
->where->lessThan('date_echeance', $now->format('Y-m-d'));
$results = $zdb->execute($select);
$result = $results->current();
(1-1/2)