Overview
Comment:Le compte peut parfois ne pas exister
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable | 0.8.0
Files: files | file ages | folders
SHA1: ecd6f7e5a40b05898398b3df98e772662d8635e9
User & Date: bohwaz on 2017-10-23 09:18:40
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2017-10-24
00:06
Fix erreur #1xreio1p typo méthode check-in: 1406738596 user: bohwaz tags: trunk, stable
2017-10-23
09:18
Le compte peut parfois ne pas exister check-in: ecd6f7e5a4 user: bohwaz tags: trunk, stable, 0.8.0
09:17
Fix erreur #ryprcty Undefined property: stdClass::$title check-in: 24b0ea5ff3 user: bohwaz tags: trunk
Changes

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

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    throw new UserException("L'opération demandée n'existe pas.");
}
$exercices = new Compta\Exercices;

$tpl->assign('operation', $operation);

$credit = $comptes->get($operation->compte_credit);
$tpl->assign('nom_compte_credit', $credit->libelle);

$debit = $comptes->get($operation->compte_debit);
$tpl->assign('nom_compte_debit', $debit->libelle);

$tpl->assign('exercice', $exercices->get($operation->id_exercice));

if ($operation->id_categorie)
{
    $cats = new Compta\Categories;








|


|







12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    throw new UserException("L'opération demandée n'existe pas.");
}
$exercices = new Compta\Exercices;

$tpl->assign('operation', $operation);

$credit = $comptes->get($operation->compte_credit);
$tpl->assign('nom_compte_credit', $credit ? $credit->libelle : null);

$debit = $comptes->get($operation->compte_debit);
$tpl->assign('nom_compte_debit', $debit ? $debit->libelle : null);

$tpl->assign('exercice', $exercices->get($operation->id_exercice));

if ($operation->id_categorie)
{
    $cats = new Compta\Categories;