{{* -*- brindille -*- *}} {{:admin_header title="Liste des amortissements" custom_css="./style.css" current="module_amortissement"}} {{* barre de navigation *}} {{:include file="_nav.html" current="amortization"}} {{if $_GET.ok}} {{if $_GET.msg|match:"attach"}} {{:assign msg="Attachement effectué"}} {{elseif $_GET.msg|match:"detach"}} {{:assign msg="Attachement supprimé"}} {{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}} {{:assign message="Pas d'info concernant l'immobilisation %s"|args:$_GET.immo_id}} {{:error message=$message}} {{/load}} {{:assign var="duree" from="info_immo.duration"|args:$_GET.immo_id}} {{#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, trans.date as date_achat, 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}} | {{if $line.linked == null}} {{:linkbutton label="Détacher" href="detach_amort.html?amort_id=%d&immo_id=%d"|args:$line.amort_line:$ligne_immo.immo_id shape="plus"}} {{else}} {{:linkbutton label="Détacher" href="" shape="lock" class="disabled"}} {{/if}} |
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="Enregistrer" 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 shape="right" target="_dialog" }} {{else}} {{:linkbutton label="Enregistrer" href="" shape="lock" class="disabled"}} {{/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}} | {{if $linked != "true"}} {{:linkbutton label="Attacher" href="attach_amort.html?amort_id=%d&immo_id=%d"|args:$line.l_id:$ligne_immo.immo_id shape="plus"}} {{else}} {{:linkbutton label="Attacher" href="" shape="lock" class="disabled"}} {{/if}} |