Skip to content

Commit 8abb855

Browse files
kushthedudeabhinavk96
authored andcommitted
Parsing Currency symbol in various places (#2376)
1 parent f8a679e commit 8abb855

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<span>
22
US$ {{number-format record.amount}}
3-
</span>
3+
</span>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{number-format (mult record.orderQuantity record.price)}}
1+
{{currency-symbol paymentCurrency}} {{number-format (mult record.orderQuantity record.price)}}

app/templates/components/ui-table/cell/events/view/tickets/discount-codes/cell-value.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
{{#if (eq record.type 'percent')}}
33
{{number-format record.value}}{{t '%'}}
44
{{else if (eq record.type 'amount')}}
5-
{{t 'US$ '}}{{number-format record.value}}
5+
{{t currency-symbol record.event.paymentCurrency }}{{number-format record.value}}
66
{{/if}}
77
</span>

app/templates/events/view/tickets/index.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@
144144
<td>{{ticket.name}}</td>
145145
<td>{{ticket.quantity}}</td>
146146
<td class="right aligned">{{ticket.orderStatistics.tickets.completed}}</td>
147-
<td class="right aligned">{{number-format ticket.orderStatistics.sales.completed}}</td>
147+
<td class="right aligned">{{currency-symbol model.eventDetail.paymentCurrency}} {{number-format ticket.orderStatistics.sales.completed}}</td>
148148
<td class="right aligned">{{ticket.orderStatistics.tickets.placed}}</td>
149-
<td class="right aligned">{{number-format ticket.orderStatistics.sales.placed}}</td>
149+
<td class="right aligned">{{currency-symbol model.eventDetail.paymentCurrency}} {{number-format ticket.orderStatistics.sales.placed}}</td>
150150
<td class="right aligned">{{ticket.orderStatistics.tickets.pending}}</td>
151-
<td class="right aligned">{{number-format ticket.orderStatistics.sales.pending}}</td>
151+
<td class="right aligned">{{currency-symbol model.eventDetail.paymentCurrency}} {{number-format ticket.orderStatistics.sales.pending}}</td>
152152
</tr>
153153
{{/each}}
154154
</tbody>

tests/integration/components/events/view/overview/event-tickets-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ module('Integration | Component | events/view/overview/event tickets', function(
1111
assert.ok(this.element.innerHTML.trim().includes('Tickets'));
1212
});
1313
});
14+

0 commit comments

Comments
 (0)