Skip to content

Commit

Permalink
fix: Show sales amount with currency and remove symbol after text (#5805
Browse files Browse the repository at this point in the history
)
  • Loading branch information
DIVYAM TAYAL authored Nov 28, 2020
1 parent 5e2603b commit e8e1d7d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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"><CurrencyAmount @currency={{this.model.eventDetail.paymentCurrency}} @amount={{this.totalAmount}}/></div><div class="label">{{t 'Sales'}}</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' }}{{#if this.totalAmount}}({{currency-symbol this.model.eventDetail.paymentCurrency}}){{/if}} </th>
<th class="right aligned">{{t 'Total Sales' }}</th>
<th>{{t 'View Reports'}}</th>
</tr>
<tr>
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">{{round this.model.orderStats.sales.cancelled decimals=2}}</td>
<td class="right aligned"><CurrencyAmount @currency={{this.model.eventDetail.paymentCurrency}} @amount={{this.model.orderStats.sales.cancelled}}/></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">{{round this.model.orderStats.sales.pending decimals=2}}</td>
<td class="right aligned"><CurrencyAmount @currency={{this.model.eventDetail.paymentCurrency}} @amount={{this.model.orderStats.sales.pending}}/></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">{{round this.model.orderStats.sales.expired decimals=2}}</td>
<td class="right aligned"><CurrencyAmount @currency={{this.model.eventDetail.paymentCurrency}} @amount={{this.model.orderStats.sales.expired}}/></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">{{round this.model.orderStats.sales.placed decimals=2}}</td>
<td class="right aligned"><CurrencyAmount @currency={{this.model.eventDetail.paymentCurrency}} @amount={{this.model.orderStats.sales.placed}}/></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">{{round this.model.orderStats.sales.completed decimals=2}}</td>
<td class="right aligned"><CurrencyAmount @currency={{this.model.eventDetail.paymentCurrency}} @amount={{this.model.orderStats.sales.completed}}/></td>
<td>
<LinkTo @route="events.view.tickets.orders.index">
{{t 'View orders'}}
Expand Down

1 comment on commit e8e1d7d

@vercel
Copy link

@vercel vercel bot commented on e8e1d7d Nov 28, 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.