{{* -*- brindille -*- *}} {{:admin_header title="Liste des amortissements" custom_css="./style.css" current="module_amortissement"}} {{* barre de navigation *}} {{:include file="_nav.html" current="index" subcurrent="amortization"}} {{if $_GET.ok}} {{if $_GET.msg|match:"attach"}} {{:assign msg="Attachement effectué (écriture %s)"|args:$_GET.trans_id}} {{elseif $_GET.msg|match:"detach"}} {{:assign msg="Attachement supprimé (écriture %s)"|args:$_GET.trans_id}} {{elseif $_GET.msg|match:"amortissement"}} {{:assign msg="Amortissement enregistré"}} {{/if}}
{{$msg}}
{{elseif $_GET.err}} {{if $_GET.msg|match:"attach"}} {{:assign msg="Échec attachement"}} {{elseif $_GET.msg|match:"amortissement"}} {{:assign msg="Échec enregistrement amortissement"}} {{/if}}{{$msg}}
{{/if}} {{* récupérer les infos de l'immobilisation *}} {{#load type="immo" assign="info_immo" where="$$.line = :line_id" :line_id=$_GET.immo_id|intval}} {{else}} {{:error message="Pas d'info concernant l'immobilisation %s"|args:$_GET.immo_id}} {{/load}} {{:assign var="duree" from="info_immo.duration"|args:$_GET.immo_id}} {{:assign date_debut=$info_immo.date|date_short}} {{#select line.id as immo_id, line.id_account as account_id, line.id_project as project_id, line.debit as montant, trans.id as trans_id, trans.label as label, y.id as year_id, y.end_date as date_amort, project.label as project_label from acc_transactions_lines as line inner join acc_transactions as trans on line.id_transaction = trans.id inner join acc_years as y on trans.id_year = y.id left join acc_projects AS project ON line.id_project = project.id where line.id = :line_id; :line_id = $_GET.immo_id|intval assign=ligne_immo }}N° | Date | Montant | Solde | Libellé | N° compte | Compte | |
---|---|---|---|---|---|---|---|
#{{$line.amort_trans_id}} | {{$line.amort_date|date_short}} | {{"%f"|math:$line.amort_amount|money}} | {{"%f"|math:$solde|money}} | {{if $line.amort_label == null}} {{$line.trans_label}} {{else}} {{$line.amort_label}} {{/if}} | {{$line.account_code}} | {{$line.account_name}} | {{:linkbutton label="Détacher" href="detach_amort.html?amort_id=%d&immo_id=%d"|args:$line.amort_line:$ligne_immo.immo_id shape="plus"}} |
N° | Date | Montant | Solde | Libellé | |
---|---|---|---|---|---|
{{"%d+1"|math:$num}} | {{$date_amort}} | {{"%f"|math:$annuite_courante|money}} | {{if $solde == 0}}0,00{{else}}{{"%f"|math:$solde|money}}{{/if}} | {{if $libelle == null}} {{:assign libelle="Amortissement "|cat:$ligne_immo.label}} {{/if}} {{$libelle}} | {{if $enregistrer == 1}} {{:linkbutton label="Créer l'écriture" href="save_amort.html?amount=%d&account=%s&year=%s&trans_id=%d&immo_id=%s&project_id=%d&label=%s&solde=%d"|args:$annuite_courante:$ligne_immo.account_id:$current_year:$ligne_immo.trans_id:$_GET.immo_id:$project_id:$libelle:$solde_prec shape="right" target="_dialog" }} {{/if}} |
N° | Date | Montant | Libellé | N° compte | Compte | |
---|---|---|---|---|---|---|
#{{$line.t_id}} | {{$line.t_date|date_short}} | {{"%f"|math:$line.montant|money}} | {{if $line.l_label == null}} {{$line.t_label}} {{else}} {{$line.l_label}} {{/if}} | {{$line.a_code}} | {{$line.a_label}} | {{:linkbutton label="Attacher" href="attach_amort.html?amort_id=%d&immo_id=%d"|args:$line.l_id:$ligne_immo.immo_id shape="plus"}} |