From bef109968793741398db3cb50e8f5ccb05282f65 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 27 Aug 2015 15:13:18 +0200 Subject: [PATCH] Small convenience addition to PayrollItem --- Logic/Financial/PayrollItem.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Logic/Financial/PayrollItem.cs b/Logic/Financial/PayrollItem.cs index 577d1acf..eb3d0d44 100644 --- a/Logic/Financial/PayrollItem.cs +++ b/Logic/Financial/PayrollItem.cs @@ -43,6 +43,13 @@ namespace Swarmops.Logic.Financial return FromIdentityAggressive (payrollItemId); } + + public void CreateAdjustment (PayrollAdjustmentType type, double amount, string description) + { + PayrollAdjustment.Create (this, type, amount, description); + } + + private new int PersonId { get { return base.PersonId; // hides base's personId