Fix for salary processing bug

This commit is contained in:
Rick Falkvinge
2015-09-02 21:17:33 +02:00
parent bef1099687
commit e560f324ac
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -52,7 +52,9 @@ namespace Swarmops.Logic.Financial
private new int PersonId
{
get { return base.PersonId; // hides base's personId
get
{
return base.PersonId; // hides base's personId
}
}
@@ -23,7 +23,7 @@ namespace Swarmops.Logic.Support.LogEntries
FinancialAccountName = salary.Budget.Name;
OrganizationId = salary.PayrollItem.OrganizationId;
OwnerPersonId = salary.PayrollItem.ReportsToPersonId;
OwnerPersonName = salary.PayrollItem.ReportsToPerson.Canonical;
OwnerPersonName = salary.PayrollItem.ReportsToPersonId != 0? salary.PayrollItem.ReportsToPerson.Canonical: "Nobody";
}
}
}