10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{/if}
<form method="post" action="{$self_url}">
<fieldset>
<legend>Exercice : « {$year.label} » du {$year.start_date|date_short} au {$year.end_date|date_short}</legend>
{if null === $previous_year}
<dl>
<dt><label for="f_from_year">Reprendre les soldes de fermeture d'un exercice clôturé</label></dt>
<dd>
<select id="f_from_year" name="from_year">
<option value="">-- Aucun</option>
{foreach from=$years item="year"}
<option value="{$year.id}">{$year.label} — {$year.start_date|date_short} au {$year.end_date|date_short}</option>
|
|
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{/if}
<form method="post" action="{$self_url}">
<fieldset>
<legend>Exercice : « {$year.label} » du {$year.start_date|date_short} au {$year.end_date|date_short}</legend>
{if !$year_selected}
<dl>
<dt><label for="f_from_year">Reprendre les soldes de fermeture d'un exercice clôturé</label></dt>
<dd>
<select id="f_from_year" name="from_year">
<option value="">-- Aucun</option>
{foreach from=$years item="year"}
<option value="{$year.id}">{$year.label} — {$year.start_date|date_short} au {$year.end_date|date_short}</option>
|
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<td>Crédit</td>
<td></td>
</tr>
</thead>
<tbody>
{foreach from=$lines key="k" item="line"}
<tr>
{if $chart_change}
<td>{$line.code} — {$line.label}</td>
{/if}
<th>
{input type="list" target="acc/charts/accounts/selector.php?chart=%d"|args:$year.id_chart name="lines[account][]" default=$line.account_selected}
{if !empty($line.missing)}
<em>({$line.label})</em>
{/if}
</th>
<td>{input type="money" name="lines[debit][]" default=$line.debit size=5}</td>
<td>{input type="money" name="lines[credit][]" default=$line.credit size=5}</td>
<td>{button label="Enlever la ligne" shape="minus" min="1" name="remove_line"}</td>
</tr>
{/foreach}
</tbody>
|
|
>
|
>
>
>
|
<
<
<
|
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<td>Crédit</td>
<td></td>
</tr>
</thead>
<tbody>
{foreach from=$lines key="k" item="line"}
<tr>
{if $chart_change || isset($line->code, $line->label)}
<td>
{$line.code} — {$line.label}
<input type="hidden" name="lines[code][]" value="{$line.code}" />
<input type="hidden" name="lines[label][]" value="{$line.label}" />
</td>
{/if}
<th>
{input type="list" target="acc/charts/accounts/selector.php?chart=%d"|args:$year.id_chart name="lines[account][]" default=$line.account}
</th>
<td>{input type="money" name="lines[debit][]" default=$line.debit size=5}</td>
<td>{input type="money" name="lines[credit][]" default=$line.credit size=5}</td>
<td>{button label="Enlever la ligne" shape="minus" min="1" name="remove_line"}</td>
</tr>
{/foreach}
</tbody>
|
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{if null === $previous_year}
{button type="submit" name="next" label="Continuer" shape="right" class="main"}
- ou -
{linkbutton shape="reset" href="!acc/years/" label="Passer cet étape"} <i class="help">(Il sera toujours possible de reprendre la balance d'ouverture plus tard.)</i>
{else}
{csrf_field key="acc_years_balance_%s"|args:$year.id}
{if $previous_year}
<input type="hidden" name="from_year" value="{$previous_year.id}" />
{/if}
{button type="submit" name="save" label="Enregistrer" shape="right" class="main"}
{literal}
<script type="text/javascript" defer="defer" async="async">
g.script('scripts/accounting.js', () => { initTransactionForm(); });
</script>
|
|
>
>
|
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
{if null === $previous_year}
{button type="submit" name="next" label="Continuer" shape="right" class="main"}
- ou -
{linkbutton shape="reset" href="!acc/years/" label="Passer cet étape"} <i class="help">(Il sera toujours possible de reprendre la balance d'ouverture plus tard.)</i>
{else}
{csrf_field key="acc_years_balance_%s"|args:$year.id}
{if $previous_year}
<input type="hidden" name="from_year" value="{$previous_year.id}" />
{else}
<input type="hidden" name="from_year" value="" />
{/if}
{button type="submit" name="save" label="Enregistrer" shape="right" class="main"}
{literal}
<script type="text/javascript" defer="defer" async="async">
g.script('scripts/accounting.js', () => { initTransactionForm(); });
</script>
|