Overview
Comment:Corriger bug lorsque le compte n'existe plus
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: aae43faabdee0871f936abbd9e8d2f8b94ce11e3
User & Date: bohwaz on 2018-12-18 15:04:34
Other Links: manifest | tags
Context
2018-12-20
11:37
Fix: colonne menu_condition non existante lorsqu'on restaure un plugin après restauration DB ancienne check-in: b9274fb412 user: bohwaz tags: trunk, stable
2018-12-18
15:04
Corriger bug lorsque le compte n'existe plus check-in: aae43faabd user: bohwaz tags: trunk, stable
13:49
Utiliser DB::userSelect* pour les requêtes en lecture check-in: 836495093b user: bohwaz tags: trunk, stable
Changes

Modified src/www/admin/compta/operations/voir.php from [de1f15d934] to [c847e11f88].

28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
    $cats = new Compta\Categories;

    $categorie = $cats->get($operation->id_categorie);
    $tpl->assign('categorie', $categorie);

    if ($categorie->type == Compta\Categories::RECETTES)
    {
        $tpl->assign('compte', $debit->libelle);
    }
    else
    {
        $tpl->assign('compte', $credit->libelle);
    }

    $tpl->assign('moyen_paiement', $cats->getMoyenPaiement($operation->moyen_paiement));
}

if ($operation->id_projet)
{







|



|







28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
    $cats = new Compta\Categories;

    $categorie = $cats->get($operation->id_categorie);
    $tpl->assign('categorie', $categorie);

    if ($categorie->type == Compta\Categories::RECETTES)
    {
        $tpl->assign('compte', $debit ? $debit->libelle : null);
    }
    else
    {
        $tpl->assign('compte', $credit ? $credit->libelle : null);
    }

    $tpl->assign('moyen_paiement', $cats->getMoyenPaiement($operation->moyen_paiement));
}

if ($operation->id_projet)
{