Member: Use current calendar year to retrieve ActiveAreaCommitments

This commit is contained in:
2023-12-21 22:20:24 +01:00
parent 781077e5e3
commit 69e6b6a713

View File

@ -163,7 +163,7 @@ namespace Elwig.Models.Entities {
[NotMapped]
public IEnumerable<AreaCom> ActiveAreaCommitments => AreaCommitments
.Where(c => c.YearFrom <= Utils.CurrentNextSeason && (c.YearTo ?? int.MaxValue) >= Utils.CurrentNextSeason);
.Where(c => c.YearFrom <= Utils.CurrentYear && (c.YearTo ?? int.MaxValue) >= Utils.CurrentYear);
[InverseProperty("Member")]
public virtual BillingAddr? BillingAddress { get; private set; }