Overview
Comment:Désactiver la possibilité de modifier les écritures de report à nouveau
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 0c1b75c44c6c3603f5d538b7734b592ae6dbbc26
User & Date: bohwaz on 2018-02-09 01:20:03
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2018-02-09
01:33
Affichage numéro membre et non ID (signalé par @Fabrice) check-in: da6a237093 user: bohwaz tags: trunk, stable
01:20
Désactiver la possibilité de modifier les écritures de report à nouveau check-in: 0c1b75c44c user: bohwaz tags: trunk, stable
01:13
Correction typo check-in: 6ccbb8a8e2 user: bohwaz tags: trunk
Changes

Modified src/templates/admin/compta/operations/voir.tpl from [02afdb29f1] to [1a3a9051ba].

1
2
3
4
5
6
7
8
9
10
{include file="admin/_head.tpl" title="Opération n°%d"|args:$operation.id current="compta/gestion"}

{if $session->canAccess('compta', Garradin\Membres::DROIT_ADMIN)}
<ul class="actions">
    <li class="edit"><a href="{$admin_url}compta/operations/modifier.php?id={$operation.id}">Modifier cette opération</a></li>
    <li class="delete"><a href="{$admin_url}compta/operations/supprimer.php?id={$operation.id}">Supprimer cette opération</a></li>
</ul>
{/if}

<dl class="describe">


|







1
2
3
4
5
6
7
8
9
10
{include file="admin/_head.tpl" title="Opération n°%d"|args:$operation.id current="compta/gestion"}

{if $session->canAccess('compta', Garradin\Membres::DROIT_ADMIN) && $operation.compte_credit !== null && $operation.compte_debit !== null}
<ul class="actions">
    <li class="edit"><a href="{$admin_url}compta/operations/modifier.php?id={$operation.id}">Modifier cette opération</a></li>
    <li class="delete"><a href="{$admin_url}compta/operations/supprimer.php?id={$operation.id}">Supprimer cette opération</a></li>
</ul>
{/if}

<dl class="describe">

Modified src/www/admin/compta/operations/modifier.php from [6e0e877ba5] to [dcffa78b60].

11
12
13
14
15
16
17





18
19
20
21
22
23
24

$operation = $journal->get(qg('id'));

if (!$operation)
{
    throw new UserException("L'opération demandée n'existe pas.");
}






if ($operation->id_categorie)
{
    $categorie = $cats->get($operation->id_categorie);
}
else
{







>
>
>
>
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

$operation = $journal->get(qg('id'));

if (!$operation)
{
    throw new UserException("L'opération demandée n'existe pas.");
}

if ($operation->compte_credit === null)
{
    throw new UserException('Impossible de modifier une écriture de report.');
}

if ($operation->id_categorie)
{
    $categorie = $cats->get($operation->id_categorie);
}
else
{