Overview
Comment:Correction bug clôture exercice avec résultat en déficit
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7a0b1fb57b54b1d3fa097094c6db4ca995fecd6a
User & Date: bohwaz on 2014-04-19 02:38:43
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2014-04-19
03:55
Design handheld plus agréable check-in: 15fe42805b user: bohwaz tags: trunk
02:38
Correction bug clôture exercice avec résultat en déficit check-in: 7a0b1fb57b user: bohwaz tags: trunk
2014-04-18
15:40
bug dans le nom de fichier quand il contient des points (bug de Phar) check-in: 957c81ad65 user: bohwaz tags: trunk
Changes

Modified src/include/class.compta_exercices.php from [d9eb4897cf] to [e093553e7a].

200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

        if ($resultat != 0)
        {
            $journal = new Compta_Journal;
            $journal->add([
                'libelle'   =>  'Résultat de l\'exercice précédent',
                'date'      =>  $date,
                'montant'   =>  $resultat,
                'compte_debit'  =>  $resultat < 0 ? 129 : NULL,
                'compte_credit' =>  $resultat > 0 ? 120 : NULL,
            ]);
        }

        return true;
    }







|







200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

        if ($resultat != 0)
        {
            $journal = new Compta_Journal;
            $journal->add([
                'libelle'   =>  'Résultat de l\'exercice précédent',
                'date'      =>  $date,
                'montant'   =>  abs($resultat),
                'compte_debit'  =>  $resultat < 0 ? 129 : NULL,
                'compte_credit' =>  $resultat > 0 ? 120 : NULL,
            ]);
        }

        return true;
    }

Modified src/include/data/plan_comptable.json from [ebb1665985] to [11c2e3c591].

581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
        "parent": 411,
        "position": 2
    },
    "419": {
        "code": 419,
        "nom": "Avances aux usagers",
        "parent": 41,
        "position": 2
    },
    "42": {
        "code": 42,
        "nom": "PERSONNEL ET COMPTES RATTACH\u00c9S",
        "parent": 4,
        "position": 1
    },







|







581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
        "parent": 411,
        "position": 2
    },
    "419": {
        "code": 419,
        "nom": "Avances aux usagers",
        "parent": 41,
        "position": 1
    },
    "42": {
        "code": 42,
        "nom": "PERSONNEL ET COMPTES RATTACH\u00c9S",
        "parent": 4,
        "position": 1
    },