Overview
SHA1:93147add8cb6ae4b880877be2904245246222763
Date: 2015-01-06 15:17:00
User: bohwaz
Comment:Correction appel namespace
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2015-01-07
17:50
[d4f28a592b] Débuts version 0.7.0 : possibilité pour les plugins de gérer des nouveaux types de boucles (user: bohwaz, tags: trunk)
2015-01-06
15:17
[93147add8c] Correction appel namespace (user: bohwaz, tags: trunk, stable)
2015-01-05
03:43
[32aadc8ed0] UserException, pas User_Exception (user: bohwaz, tags: trunk)
Changes

Modified src/include/lib/Garradin/Compta/Categories.php from [a1074d89b7] to [387c950f70].

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    const DEPENSES = -1;
    const RECETTES = 1;
    const AUTRES = 0;

    public function importCategories()
    {
        $db = DB::getInstance();
        $db->exec(file_get_contents(ROOT . '/include/data/categories_comptables.sql'));
    }

    public function add($data)
    {
        $this->_checkFields($data);

        $db = DB::getInstance();







|







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    const DEPENSES = -1;
    const RECETTES = 1;
    const AUTRES = 0;

    public function importCategories()
    {
        $db = DB::getInstance();
        $db->exec(file_get_contents(\Garradin\ROOT . '/include/data/categories_comptables.sql'));
    }

    public function add($data)
    {
        $this->_checkFields($data);

        $db = DB::getInstance();

Modified src/include/lib/Garradin/Compta/Comptes.php from [09fade04d2] to [a07343345f].

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    const PASSIF = 0x01;
    const ACTIF = 0x02;
    const PRODUIT = 0x04;
    const CHARGE = 0x08;

    public function importPlan()
    {
        $plan = json_decode(file_get_contents(ROOT . '/include/data/plan_comptable.json'), true);

        $db = DB::getInstance();
        $db->exec('BEGIN;');
        $ids = [];

        foreach ($plan as $id=>$compte)
        {







|







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    const PASSIF = 0x01;
    const ACTIF = 0x02;
    const PRODUIT = 0x04;
    const CHARGE = 0x08;

    public function importPlan()
    {
        $plan = json_decode(file_get_contents(\Garradin\ROOT . '/include/data/plan_comptable.json'), true);

        $db = DB::getInstance();
        $db->exec('BEGIN;');
        $ids = [];

        foreach ($plan as $id=>$compte)
        {