Skip to content

Commit

Permalink
fix: ticket sales value (#5686)
Browse files Browse the repository at this point in the history
  • Loading branch information
maze-runnar committed Nov 18, 2020
1 parent 1d2518e commit f766fc4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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'}}{{#if this.totalAmount}}({{currency-symbol this.model.eventDetail.paymentCurrency}}){{/if}}</div></div>
<div class="statistic"><div class="value">{{round this.totalAmount decimals=2}}</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 @@ -31,7 +31,7 @@
</LinkTo>
<td class="right aligned">{{this.model.orderStats.tickets.cancelled}}</td>
<td class="right aligned">{{this.model.orderStats.orders.cancelled}}</td>
<td class="right aligned">{{this.model.orderStats.sales.cancelled}}</td>
<td class="right aligned">{{round this.model.orderStats.sales.cancelled decimals=2}}</td>
<td>
<LinkTo @route="events.view.tickets.orders.list" @model="cancelled">
{{t 'View orders'}}
Expand All @@ -48,7 +48,7 @@
</LinkTo>
<td class="right aligned">{{this.model.orderStats.tickets.pending}}</td>
<td class="right aligned">{{this.model.orderStats.orders.pending}}</td>
<td class="right aligned">{{this.model.orderStats.sales.pending}}</td>
<td class="right aligned">{{round this.model.orderStats.sales.pending decimals=2}}</td>
<td>
<LinkTo @route="events.view.tickets.orders.list" @model="pending">
{{t 'View orders'}}
Expand All @@ -65,7 +65,7 @@
</LinkTo>
<td class="right aligned">{{this.model.orderStats.tickets.expired}}</td>
<td class="right aligned">{{this.model.orderStats.orders.expired}}</td>
<td class="right aligned">{{this.model.orderStats.sales.expired}}</td>
<td class="right aligned">{{round this.model.orderStats.sales.expired decimals=2}}</td>
<td>
<LinkTo @route="events.view.tickets.orders.list" @model="expired">
{{t 'View orders'}}
Expand All @@ -82,7 +82,7 @@
</LinkTo>
<td class="right aligned">{{this.model.orderStats.tickets.placed}}</td>
<td class="right aligned">{{this.model.orderStats.orders.placed}}</td>
<td class="right aligned">{{this.model.orderStats.sales.placed}}</td>
<td class="right aligned">{{round this.model.orderStats.sales.placed decimals=2}}</td>
<td>
<LinkTo @route="events.view.tickets.orders.list" @model="placed">
{{t 'View orders'}}
Expand All @@ -99,7 +99,7 @@
</LinkTo>
<td class="right aligned">{{this.model.orderStats.tickets.completed}}</td>
<td class="right aligned">{{this.model.orderStats.orders.completed}}</td>
<td class="right aligned">{{this.model.orderStats.sales.completed}}</td>
<td class="right aligned">{{round this.model.orderStats.sales.completed decimals=2}}</td>
<td>
<LinkTo @route="events.view.tickets.orders.index">
{{t 'View orders'}}
Expand Down

1 comment on commit f766fc4

@vercel
Copy link

@vercel vercel bot commented on f766fc4 Nov 18, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.