Merge pull request #1115 from rishabhs95/admin-tickets-quantity
Display correct quantity of tickets in admin views
This commit is contained in:
commit
85fcd4e1b7
1 changed files with 3 additions and 2 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
%thead
|
%thead
|
||||||
%th #
|
%th #
|
||||||
%th Name
|
%th Name
|
||||||
|
%th Quantity
|
||||||
%th E-Mail
|
%th E-Mail
|
||||||
%th Affiliation
|
%th Affiliation
|
||||||
%th Paid
|
%th Paid
|
||||||
|
|
@ -25,8 +26,8 @@
|
||||||
= index + 1
|
= index + 1
|
||||||
%td
|
%td
|
||||||
= buyer.name
|
= buyer.name
|
||||||
%span.label.label-success
|
%td
|
||||||
= buyer.ticket_purchases.find_by(ticket_id: @ticket.id).quantity
|
= buyer.ticket_purchases.where(ticket_id: @ticket.id).sum('quantity')
|
||||||
%td
|
%td
|
||||||
= buyer.email
|
= buyer.email
|
||||||
%td
|
%td
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue