Commit d9258859 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix : Récupération des comptes utilisés via les dépenses

parent 04dac96b
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -68,11 +68,15 @@ class SpentService implements UseLoggerService, UseOscarConfigurationService, Us
    {
        $out = [];

        $sql = 'SELECT DISTINCT comptegeneral FROM spentline ORDER BY comptegeneral::varchar ';
        // On test si il y'a des comptes

        $sql = 'SELECT DISTINCT comptegeneral FROM spentline ORDER BY comptegeneral';
        $stmt = $this->getEntityManager()->getConnection()->prepare($sql);
        $stmt->execute();
        $used = $stmt->fetchAll();



        $masses = $this->getMasses();
        $i = 0;
        foreach ($used as $compte) {