{{* -*- brindille -*- *}} {{:admin_header title="Gestion des amortissements" custom_css=$custom_css current="module_amortissement"}} {{* barre de navigation *}} {{:include file="_nav.html" current="amortization"}} {{* récupérer les infos de l'immobilisation *}} {{#load type="immo" assign="info_immo" where="$$.line = :line_id" :line_id=$_GET.line|intval}} {{else}} {{:assign message="Immobilisation %s non trouvée"|args:$_GET.line}} {{:error message=$message}} {{/load}} {{#select line.id as line_id, line.id_account as account_id, line.id_project as project_id, trans.id as trans_id, line.debit as montant, trans.label as label, trans.date as date_achat, y.id as year_id, y.end_date as date_fin, 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.line|intval assign=ligne_immo }}
N° | Date | Montant | Solde | Libellé | N° compte | Compte | Projet | |
---|---|---|---|---|---|---|---|---|
#{{$line.t_amort}} | {{$line.date_immo|date_short}} | {{"%f"|math:$line.montant|money}} | {{"%f"|math:$solde|money}} | {{$line.libelle}} | {{$line.account_code}} | {{$line.nom_compte}} | {{$line.project_label}} | |
{{"%d+1"|math:$num}} | {{$date_immo}} | {{"%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}} | {{$project_label}} | {{if $all_years|keys|has:$current_year}} {{:linkbutton label="Enregistrer" href="save_amort.html?amount=%d&account=%s&year=%s&trans_id=%d&line_id=%s&project_id=%d&label=%s"|args:$annuite_courante:$ligne_immo.account_id:$current_year:$ligne_immo.trans_id:$_GET.line:$project_id:$libelle shape="right" }} {{else}} {{:linkbutton label="Enregistrer" href="" shape="alert"}} {{/if}} |