Correction erreur solde immo
This commit is contained in:
parent
a1ce03a7b4
commit
c07b77e942
1 changed files with 5 additions and 6 deletions
|
|
@ -63,15 +63,14 @@
|
||||||
{{:assign total_credits="%d+%d"|math:$total_credits:$amount}}
|
{{:assign total_credits="%d+%d"|math:$total_credits:$amount}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/load}}
|
{{/load}}
|
||||||
{{:assign var="ligne_immo.montant" value="%d-%d"|math:$ligne_immo.montant:$total_credits}}
|
{{:assign solde="%d-%d"|math:$ligne_immo.montant:$total_credits}}
|
||||||
{{:assign solde=$ligne_immo.montant}}
|
|
||||||
{{*:debug info_immo=$info_immo ligne_immo=$ligne_immo total_credits=$total_credits solde=$solde*}}
|
{{*:debug info_immo=$info_immo ligne_immo=$ligne_immo total_credits=$total_credits solde=$solde*}}
|
||||||
|
|
||||||
{{if $info_immo.status == "amortized"}}
|
{{if $info_immo.status == "amortized"}}
|
||||||
{{:assign amort_amount=$ligne_immo.montant}}
|
{{:assign amort_amount=$solde}}
|
||||||
{{:assign valeur_residuelle=0}}
|
{{:assign valeur_residuelle=0}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{:assign valeur_residuelle=$ligne_immo.montant}}
|
{{:assign valeur_residuelle=$solde}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{* lister les lignes des écritures d'amortissement liées à l'immobilisation *}}
|
{{* lister les lignes des écritures d'amortissement liées à l'immobilisation *}}
|
||||||
|
|
@ -208,13 +207,13 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $valeur_residuelle > 0}}
|
{{if $valeur_residuelle > 0}}
|
||||||
<dt>Montant des amortissements</dt>
|
<dt>Montant des amortissements</dt>
|
||||||
<dd>{{"%d-%d"|math:$ligne_immo.montant:$valeur_residuelle|money_currency_html:false|raw}}</dd>
|
<dd>{{"%d-%d"|math:$solde:$valeur_residuelle|money_currency_html:false|raw}}</dd>
|
||||||
<dt>Valeur nette comptable</dt>
|
<dt>Valeur nette comptable</dt>
|
||||||
<dd>{{$valeur_residuelle|money_currency_html:false|raw}}</dd>
|
<dd>{{$valeur_residuelle|money_currency_html:false|raw}}</dd>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $info_immo.duration != null && $valeur_residuelle > 0}}
|
{{if $info_immo.duration != null && $valeur_residuelle > 0}}
|
||||||
<dt>Annuité estimée</dt>
|
<dt>Annuité estimée</dt>
|
||||||
<dd>{{"min(%d, %f/%d)"|math:$valeur_residuelle:$ligne_immo.montant:$info_immo.duration|money_currency_html:false|raw}}</dd>
|
<dd>{{"min(%d, %f/%d)"|math:$valeur_residuelle:solde:$info_immo.duration|money_currency_html:false|raw}}</dd>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue