{{: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, 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 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 where line.id = :line_id; :line_id = $_GET.line|intval assign=ligne_immo }}
N° | Date | Montant | Solde | Libellé | ligne amort | Compte | Nom compte | |
---|---|---|---|---|---|---|---|---|
#{{$line.t_amort}} | {{$line.date_immo|date_short}} | {{"%f"|math:$line.montant|money}} | {{"%f"|math:$solde|money}} | {{$line.libelle}} | {{$line.l_amort}} | {{$line.account_code}} | {{$line.nom_compte}} | |
{{"%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}} | {{if $all_years|keys|has:$current_year}} {{:linkbutton label="Enregistrer" href="save_amort.html?amount=%d&account=%s&year=%s&label=%s"|args:$annuite_courante:$ligne_immo.account_id:$current_year:$libelle shape="right" }} {{/if}} |