use locale to format currency

This commit is contained in:
2020-10-17 08:25:56 +02:00
parent 71305e8002
commit 6bc9d34fde
4 changed files with 17 additions and 18 deletions

View File

@@ -69,9 +69,9 @@
<th class="text-right">TVA</th>
</tr>
<tr>
<td class="text-right">${layout.to_decz(dossier.TOTALHT)}</td>
<td class="text-right">${layout.to_euroz(dossier.TOTALTVA)}</td>
<td class="text-right">${layout.to_euroz(dossier.TOTALTTC)}</td>
<td class="text-right">${layout.to_euro(dossier.TOTALHT)}</td>
<td class="text-right">${layout.to_euro(dossier.TOTALTVA)}</td>
<td class="text-right">${layout.to_euro(dossier.TOTALTTC)}</td>
<td class="text-right">${dossier.TAUXTVA} %</td>
</tr>
</table>
@@ -88,7 +88,7 @@
<tr tal:repeat="detail details">
<td>${detail.REF}</td>
<td>${detail.LIB}</td>
<td class="text-right">${layout.to_decz(detail.QTE)}</td>
<td class="text-right">${layout.to_euro(detail.QTE)}</td>
<td class="text-right">${layout.to_euroz(detail.PRIXHT)}</td>
<td class="text-right">${layout.to_euroz(detail.MTHT)}</td>
<td class="text-center">${detail.USERMAJ}</td>

View File

@@ -44,9 +44,9 @@
<th class="text-right">TVA</th>
</tr>
<tr>
<td class="text-right">${layout.to_decz(dossier.TOTALHT)}</td>
<td class="text-right">${layout.to_euroz(dossier.TOTALTVA)}</td>
<td class="text-right">${layout.to_euroz(dossier.TOTALTTC)}</td>
<td class="text-right">${layout.to_euro(dossier.TOTALHT)}</td>
<td class="text-right">${layout.to_euro(dossier.TOTALTVA)}</td>
<td class="text-right">${layout.to_euro(dossier.TOTALTTC)}</td>
<td class="text-right">${dossier.TAUXTVA} %</td>
</tr>
</table>