Formatage de prix

This commit is contained in:
Vincent Vandemeulebrouck 2023-01-03 01:03:05 +01:00
parent d4ddc4e940
commit aa5d175027
3 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@
{{/if}}
{{#if (ne prixLot 0)}}
<span><strong>Prix {{#if (gt tailleLot 1)}}du lot {{else}}unitaire{{/if}}:
<span class="prixLot">{{prixLot}}</span> Sols</strong></span><br>
<span class="prixLot">{{numberFormat prixLot decimals=2 sign=false}}</span> Sols</strong></span><br>
{{/if}}
</p>
{{#if (or (gt quantiteNbLots 0) quantiteIllimite)}}

View File

@ -83,12 +83,12 @@
{{#if isVente}}
<div class="flexrow flex-group-left">
<label>Prix {{#if (gt tailleLot 1)}}du lot{{else}}unitaire{{/if}}</label>
<label>{{prixLot}} Sols</label>
<label>{{numberFormat prixLot decimals=2 sign=false}} Sols</label>
</div>
<div class="flexrow flex-group-left">
<label>Prix total</label>
<span>
<span class="prixTotal">{{prixTotal}}</span>
<span class="prixTotal">{{numberFormat prixTotal decimals=2 sign=false}}</span>
Sols
</span>
</div>

View File

@ -26,13 +26,13 @@
max="{{quantiteMax}}" value="{{tailleLot}}" data-dtype="Number" />
</div>
<div class="flexrow flex-group-left">
<label>Valeur unitaire</label>
<label>{{prixOrigine}} Sols</label>
<label>Prix unitaire</label>
<label>{{numberFormat prixOrigine decimals=2 sign=false}} Sols</label>
</div>
<div class="flexrow flex-group-left">
<label for="prixLot">Prix du lot</label>
<span class="flexrow">
<input name="prixLot" class="prixLot flex-shrink" type="number" value="{{prixLot}}"
<input name="prixLot" class="prixLot flex-shrink" type="number" value="{{numberFormat prixLot decimals=2 sign=false}}"
data-dtype="Number" />
<label>Sols</label>
</span>