Ajout attachement/détachement amortissement
This commit is contained in:
parent
8a4b605e99
commit
a30613e0ee
3 changed files with 345 additions and 109 deletions
31
detach_amort.html
Normal file
31
detach_amort.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{{* -*- brindille -*- *}}
|
||||
|
||||
{{*
|
||||
Supprimer l'association entre une écriture d'amortissement et
|
||||
une écriture d'immobilisation
|
||||
*}}
|
||||
|
||||
{{#load type="immo" assign="info_immo" where="$$.line = :line_id" :line_id=$_GET.immo_id|intval}}
|
||||
{{else}}
|
||||
{{:assign message="Pas d'info concernant l'immobilisation %s"|args:$_GET.immo_id}}
|
||||
{{:error message=$message}}
|
||||
{{/load}}
|
||||
|
||||
{{:assign var="liste_amort" val=$info_immo.amort}}
|
||||
|
||||
{{#foreach from=$info_immo.amort item="amort_id"}}
|
||||
{{if $amort_id != $_GET.amort_id}}
|
||||
{{:assign var="t_amort." value=$amort_id}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
|
||||
{{* Enregistrer les infos *}}
|
||||
{{:save
|
||||
key=$info_immo.key
|
||||
validate_schema="schema.json"
|
||||
type="immo"
|
||||
line=$info_immo.line
|
||||
duration=$info_immo.duration
|
||||
amort=$t_amort
|
||||
}}
|
||||
{{:redirect to="amortization.html?line_id=%s&ok=1&msg=detach"|args:$_GET.immo_id}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue