Project

General

Profile

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

Guillaume Agniéray, 09/20/2021 12:10 AM

View differences:

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)