Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<span>
US$ {{number-format record.amount}}
</span>
</span>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{number-format (mult record.orderQuantity record.price)}}
{{currency-symbol paymentCurrency}} {{number-format (mult record.orderQuantity record.price)}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{{#if (eq record.type 'percent')}}
{{number-format record.value}}{{t '%'}}
{{else if (eq record.type 'amount')}}
{{t 'US$ '}}{{number-format record.value}}
{{t currency-symbol record.event.paymentCurrency }}{{number-format record.value}}
{{/if}}
</span>
6 changes: 3 additions & 3 deletions app/templates/events/view/tickets/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@
<td>{{ticket.name}}</td>
<td>{{ticket.quantity}}</td>
<td class="right aligned">{{ticket.orderStatistics.tickets.completed}}</td>
<td class="right aligned">{{number-format ticket.orderStatistics.sales.completed}}</td>
<td class="right aligned">{{currency-symbol model.eventDetail.paymentCurrency}} {{number-format ticket.orderStatistics.sales.completed}}</td>
<td class="right aligned">{{ticket.orderStatistics.tickets.placed}}</td>
<td class="right aligned">{{number-format ticket.orderStatistics.sales.placed}}</td>
<td class="right aligned">{{currency-symbol model.eventDetail.paymentCurrency}} {{number-format ticket.orderStatistics.sales.placed}}</td>
<td class="right aligned">{{ticket.orderStatistics.tickets.pending}}</td>
<td class="right aligned">{{number-format ticket.orderStatistics.sales.pending}}</td>
<td class="right aligned">{{currency-symbol model.eventDetail.paymentCurrency}} {{number-format ticket.orderStatistics.sales.pending}}</td>
</tr>
{{/each}}
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ module('Integration | Component | events/view/overview/event tickets', function(
assert.ok(this.element.innerHTML.trim().includes('Tickets'));
});
});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CosmicCoder96 @iamareebjamal , A little help needed, Travis says not able read the 'property symbol' , Is something wrong with the test i added or i am completely on a wrong path.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shreyanshdwivedi If you could see some possible error in this , Why travis is failing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kushthedude Just a question, after removing this test, does the build passes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uds5501 nope even after removing the test it tells unknown attribute ‘symbol’