Skip to content

Commit

Permalink
Bugfix: now uses a single location guid for all persons
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNeuroth committed Dec 12, 2022
1 parent 12638bf commit bf8b000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CalculationEngine/HouseholdElements/CalcPerson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ public CalcPerson([JetBrains.Annotations.NotNull] CalcPersonDto calcPerson,
IsOnVacation = isOnVacation;
CurrentLocation = startingLocation;
_vacationAffordanceGuid = System.Guid.NewGuid().ToStrGuid();
_vacationLocationGuid = System.Guid.NewGuid().ToStrGuid();
}

//guid for all vacations of this person
private readonly StrGuid _vacationAffordanceGuid;
private readonly StrGuid _vacationLocationGuid;
// use one vacation location guid for all persons
private static readonly StrGuid _vacationLocationGuid = System.Guid.NewGuid().ToStrGuid();
[JetBrains.Annotations.NotNull]
private CalcLocation CurrentLocation { get; set; }

Expand Down

0 comments on commit bf8b000

Please sign in to comment.