ajout histo_edit.pt et calcul de l'évolution de la valeur de la part

This commit is contained in:
2017-07-30 22:07:50 +02:00
parent 294a23b042
commit 91e82c4831
11 changed files with 218 additions and 31 deletions

View File

@@ -28,6 +28,34 @@
</tbody>
</table>
</div>
<div class="col-md-5">
<table id="portfolio" class="table table-condensed table-bordered">
<thead>
<tr>
<th>Porteffeuille</th>
<th class="text-right">Montant</th>
<th class="text-right">%</th>
</tr>
</thead>
<tbody>
<tr>
<td>Valorisation</td>
<td class="text-right">${layout.to_euro(member.pf_valeur)}</td>
<td></td>
</tr>
<tr>
<td>Plus value</td>
<td class="text-right">${layout.to_euro(member.pf_plusvalue)}</td>
<td class="text-right">${layout.to_percent(member.pf_plusvalue_pc, 1)}</td>
</tr>
<tr>
<td>Rendemant brut</td>
<td class="text-right">${layout.to_euro(member.pf_rendement)}</td>
<td class="text-right">${layout.to_percent(member.pf_rdt_pc, 1)}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
@@ -55,8 +83,8 @@
<th class="text-right">% de +/-</th>
<th class="text-right">% PF</th>
<th class="text-right">TER</th>
<th class="text-right">% Rdt</th>
<th class="text-right">Rdt brut</th>
<th class="text-right">% Rdt</th>
</tr>
</thead>
<tbody>
@@ -70,8 +98,8 @@
<td tal:condition="ligne.pc_plusvalue <0" class="text-right" style="color: red;">${layout.to_percent(ligne.pc_plusvalue,1)}</td>
<td class="text-right">${ligne.pc_allocation} %</td>
<td class="text-right">${layout.to_percent(ligne.ter,2)}</td>
<td class="text-right">${layout.to_percent(ligne.rdt,1)}</td>
<td class="text-right">${u'%.0f €' % (ligne.valeur * ligne.rdt / 100)}</td>
<td class="text-right">${u'%.0f €' % (ligne.rendement)}</td>
<td class="text-right">${layout.to_percent(ligne.pc_rdt,1)}</td>
</tr>
<tr>
<td class="text-right" colspan="2"><b>Total</b></td>