Skip to content

Commit

Permalink
Fix incorrect money format being used
Browse files Browse the repository at this point in the history
Only format accept currency as argument. 
Fix #11941.
  • Loading branch information
kayue committed Feb 24, 2021
1 parent d39b31e commit 33f91d8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
</div>
<div class="sf-toolbar-info-piece">
<b>Subtotal</b>
<span>{{ money.convertAndFormat(collector.subtotal, collector.currency) }}</span>
<span>{{ money.format(collector.subtotal, collector.currency) }}</span>
</div>
<div class="sf-toolbar-info-piece">
<b>Total</b>
<span>{{ money.convertAndFormat(collector.total, collector.currency) }}</span>
<span>{{ money.format(collector.total, collector.currency) }}</span>
</div>
</div>
<div class="sf-toolbar-info-group">
Expand Down Expand Up @@ -64,8 +64,8 @@
<td>{{ collector.id }}</td>
<td>{{ collector.currency }}</td>
<td>{{ collector.locale }}</td>
<td>{{ money.convertAndFormat(collector.subtotal, collector.currency) }}</td>
<td>{{ money.convertAndFormat(collector.total, collector.currency) }}</td>
<td>{{ money.format(collector.subtotal, collector.currency) }}</td>
<td>{{ money.format(collector.total, collector.currency) }}</td>
</tr>
</table>

Expand Down

0 comments on commit 33f91d8

Please sign in to comment.