2024-02-29 19:07:52 +01:00
|
|
|
{{* -*- 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
|
|
|
|
}}
|
2024-03-14 11:03:54 +01:00
|
|
|
{{:redirect to="amortization.html?immo_id=%s&ok=1&msg=detach"|args:$_GET.immo_id}}
|