28 lines
889 B
C#
28 lines
889 B
C#
using Swarmops.Basic.Types;
|
|
using Swarmops.Database;
|
|
using Swarmops.Logic.Structure;
|
|
using Swarmops.Logic.Support;
|
|
|
|
namespace Swarmops.Logic.Financial
|
|
{
|
|
public class PaymentGroups: PluralBase<PaymentGroups,PaymentGroup,BasicPaymentGroup>
|
|
{
|
|
public static PaymentGroups ForOrganization (Organization organization)
|
|
{
|
|
return ForOrganization(organization, false);
|
|
}
|
|
|
|
public static PaymentGroups ForOrganization (Organization organization, bool includeClosed)
|
|
{
|
|
if (includeClosed)
|
|
{
|
|
return FromArray(SwarmDb.GetDatabaseForReading().GetPaymentGroups(organization));
|
|
}
|
|
else
|
|
{
|
|
return FromArray(SwarmDb.GetDatabaseForReading().GetPaymentGroups(organization, DatabaseCondition.OpenTrue));
|
|
}
|
|
}
|
|
}
|
|
}
|