admin/tickets: correct ticket_purchase quantity

This commit is contained in:
Rishabh Saxena 2016-08-18 23:27:30 +05:30
parent c6be0999b9
commit 54ad0628b4

View file

@ -26,7 +26,7 @@
%td
= buyer.name
%span.label.label-success
= buyer.ticket_purchases.find_by(ticket_id: @ticket.id).quantity
= buyer.ticket_purchases.where(ticket_id: @ticket.id).sum('quantity')
%td
= buyer.email
%td