Camp and Shop now shows data for actual season only.
This commit is contained in:
@@ -406,7 +406,10 @@ QList<VoucherPtr> ShopService::tempVouchers()
|
||||
|
||||
QList<VoucherPtr> ShopService::paiedVouchers()
|
||||
{
|
||||
return all(QString("status = %1").arg(QString::number(Voucher::PAID)));
|
||||
SeasonService seasonSrv;
|
||||
SeasonPtr season = seasonSrv.active();
|
||||
|
||||
return all(QString("status = %1 AND season = %2").arg(QString::number(Voucher::PAID), QString::number(season->id())));
|
||||
}
|
||||
|
||||
QList<VoucherPtr> ShopService::vouchersForEet()
|
||||
|
||||
Reference in New Issue
Block a user