mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fixed ticket_sold method of ticket model
This commit is contained in:
parent
3d4adb5683
commit
6b3a6fa967
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class Ticket < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def tickets_sold
|
||||
ticket_purchases.sum(:quantity)
|
||||
ticket_purchases.paid.sum(:quantity)
|
||||
end
|
||||
|
||||
def tickets_turnover
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue