Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
Expand Up @@ -15,7 +15,7 @@
</tr>
<tr>
<td>{{t 'Sales (amount)'}}</td>
<td>{{currency-symbol this.data.event.paymentCurrency}} {{format-money this.sales}}</td>
<td>{{#if this.sales}}{{currency-symbol this.data.event.paymentCurrency}}{{/if}} {{format-money this.sales}}</td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/components/orders/ticket-price.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if (eq @ticket.type 'free')}}
{{t "Free"}}
{{else}}
{{currency-symbol @currency}} {{format-money @amount}}
{{#if @amount}}{{currency-symbol @currency}}{{/if}} {{format-money @amount}}
{{/if}}
4 changes: 2 additions & 2 deletions app/templates/components/public/ticket-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@
{{/if}}
<tr><td>{{t 'Total'}}</td>
{{#if this.amountEditable}}
<td>{{currency-symbol this.eventCurrency}}</td> <td><Input @value={{this.overridenAmount}} placeholder="Total" /></td>
{{#if this.overridenAmount}}<td>{{currency-symbol this.eventCurrency}}</td>{{/if}} <td><Input @value={{this.overridenAmount}} placeholder="Total" /></td>
{{else}}
<td>{{currency-symbol this.eventCurrency}} {{format-money this.orderAmount.total}}</td>
<td>{{#if this.orderAmount.total}}{{currency-symbol this.eventCurrency}}{{/if}} {{format-money this.orderAmount.total}}</td>
{{/if}}
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="weight-400">
{{currency-symbol this.extraRecords.event.paymentCurrency}} {{format-money this.record}}
{{#if this.record}}{{currency-symbol this.extraRecords.event.paymentCurrency}}{{/if}} {{format-money this.record}}
</div>
{{#if this.extraRecords.discountCode.code}}
<div class="ui mini yellow label">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{{#if (eq this.extraRecords.type 'percent')}}
{{this.record}} %
{{else if (eq this.extraRecords.type 'amount')}}
{{this.currency-symbol this.extraRecords.event.paymentCurrency}}{{this.record}}
{{currency-symbol this.extraRecords.event.paymentCurrency}} {{this.record}}
{{/if}}
</span>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="weight-400">
{{currency-symbol this.extraRecords.event.paymentCurrency}} {{format-money this.record}}
{{#if this.record}}{{currency-symbol this.extraRecords.event.paymentCurrency}}{{/if}} {{format-money this.record}}
</div>
{{#if this.extraRecords.discountCode.code}}
<div class="ui mini yellow label">
Expand Down
10 changes: 5 additions & 5 deletions app/templates/events/view/tickets/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
<div class="ui {{if this.device.isMobile 'horizontal'}} three statistics">
<div class="statistic"><div class="value">{{this.totalOrders}}</div><div class="label">{{t 'Orders'}}</div></div>
<div class="statistic"><div class="value">{{this.totalAmount}}</div><div class="label">{{t 'Sales'}}({{currency-symbol this.model.eventDetail.paymentCurrency}})</div></div>
<div class="statistic"><div class="value">{{this.totalAmount}}</div><div class="label">{{t 'Sales'}}{{#if this.totalAmount}}({{currency-symbol this.model.eventDetail.paymentCurrency}}){{/if}}</div></div>
<div class="statistic"><div class="value">{{this.totalSales}}</div><div class="label">{{t 'Tickets sold'}}</div></div>
</div>
</div>
Expand All @@ -22,7 +22,7 @@
<th>{{t 'Order Status'}}</th>
<th class="right aligned">{{t 'Total Tickets'}}</th>
<th class="right aligned">{{t 'Total Orders'}}</th>
<th class="right aligned">{{t 'Total Sales' }}({{currency-symbol this.model.eventDetail.paymentCurrency}}) </th>
<th class="right aligned">{{t 'Total Sales' }}{{#if this.totalAmount}}({{currency-symbol this.model.eventDetail.paymentCurrency}}){{/if}} </th>
<th>{{t 'View Reports'}}</th>
</tr>
<tr>
Expand Down Expand Up @@ -144,15 +144,15 @@
{{#unless this.device.isMobile}}
<td class="right aligned">{{ticket.orderStatistics.tickets.completed}}</td>
{{/unless}}
<td class="right aligned">{{currency-symbol this.model.eventDetail.paymentCurrency}} {{mult ticket.orderStatistics.tickets.completed ticket.price}}</td>
<td class="right aligned">{{#if (mult ticket.orderStatistics.tickets.completed ticket.price)}}{{currency-symbol this.model.eventDetail.paymentCurrency}}{{/if}} {{mult ticket.orderStatistics.tickets.completed ticket.price}}</td>
{{#unless this.device.isMobile}}
<td class="right aligned">{{ticket.orderStatistics.tickets.placed}}</td>
{{/unless}}
<td class="right aligned">{{currency-symbol this.model.eventDetail.paymentCurrency}} {{mult ticket.orderStatistics.tickets.placed ticket.price}}</td>
<td class="right aligned">{{#if (mult ticket.orderStatistics.tickets.placed ticket.price)}}{{currency-symbol this.model.eventDetail.paymentCurrency}}{{/if}} {{mult ticket.orderStatistics.tickets.placed ticket.price}}</td>
{{#unless this.device.isMobile}}
<td class="right aligned">{{ticket.orderStatistics.tickets.pending}}</td>
{{/unless}}
<td class="right aligned">{{currency-symbol this.model.eventDetail.paymentCurrency}} {{mult ticket.orderStatistics.tickets.pending ticket.price}}</td>
<td class="right aligned">{{#if (mult ticket.orderStatistics.tickets.pending ticket.price)}}{{currency-symbol this.model.eventDetail.paymentCurrency}}{{/if}} {{mult ticket.orderStatistics.tickets.pending ticket.price}}</td>
</tr>
{{/each}}
</tbody>
Expand Down