Overview
SHA1:ecd6f7e5a40b05898398b3df98e772662d8635e9
Date: 2017-10-23 09:18:40
User: bohwaz
Comment:Le compte peut parfois ne pas exister
Timelines: family | ancestors | descendants | both | trunk | stable | 0.8.0
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2017-10-24
00:06
[1406738596] Fix erreur #1xreio1p typo méthode (user: bohwaz, tags: trunk, stable)
2017-10-23
09:18
[ecd6f7e5a4] Le compte peut parfois ne pas exister (user: bohwaz, tags: trunk, stable, 0.8.0)
09:17
[24b0ea5ff3] Fix erreur #ryprcty Undefined property: stdClass::$title (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;