Skip to content

fix: ticket sales value #5686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 18, 2020
Merged
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
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