Overview
Comment:Fix [eedb396118] Signe des soldes dans les reports à nouveau
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a8872bfc2d694ad0c4be38d7dd1c6a18e3e53d19
User & Date: bohwaz on 2014-10-14 15:41:35
Other Links: manifest | tags
References
2014-10-14
15:42 Fixed ticket [eedb396118]: Conserver le solde lors des reports à nouveau plus 5 other changes artifact: 4e71c4ad5a user: bohwaz
Context
2014-10-22
13:38
unification recherche sql check-in: 0acf969b8d user: bohwaz tags: trunk
2014-10-14
15:41
Fix [eedb396118] Signe des soldes dans les reports à nouveau check-in: a8872bfc2d user: bohwaz tags: trunk
2014-10-10
15:17
Possibilité d'ajouter ses propres filtres check-in: 89a224e3b0 user: bohwaz tags: trunk
Changes

Modified src/include/class.compta_exercices.php from [9511658484] to [0b1ea1bb50].

149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
            GROUP BY compta_comptes.id;', ['id' => $old_id]);

        $diff = 0;
        $journal = new Compta_Journal;

        while ($row = $statement->fetchArray(SQLITE3_ASSOC))
        {
            $solde = ($row['position'] & Compta_Comptes::ACTIF) ? abs($row['solde']) : -abs($row['solde']);
            $solde = round($solde, 2);

            $diff += $solde;

            if (empty($solde))
            {
                continue;







|







149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
            GROUP BY compta_comptes.id;', ['id' => $old_id]);

        $diff = 0;
        $journal = new Compta_Journal;

        while ($row = $statement->fetchArray(SQLITE3_ASSOC))
        {
            $solde = abs($row['solde']);
            $solde = round($solde, 2);

            $diff += $solde;

            if (empty($solde))
            {
                continue;