diff --git a/Common/Enums/DocumentType.cs b/Common/Enums/DocumentType.cs index 0c33f969..e844d989 100644 --- a/Common/Enums/DocumentType.cs +++ b/Common/Enums/DocumentType.cs @@ -67,6 +67,16 @@ namespace Swarmops.Common.Enums /// /// There really isn't a standalone doctype for this but still /// - Payout + Payout, + + /// + /// Nor for this + /// + PaymentGroup, + + /// + /// Nor this + /// + Salary } } \ No newline at end of file diff --git a/Logic/Support/Document.cs b/Logic/Support/Document.cs index 6faa87cb..0d180cf3 100644 --- a/Logic/Support/Document.cs +++ b/Logic/Support/Document.cs @@ -181,6 +181,14 @@ namespace Swarmops.Logic.Support { return DocumentType.Payout; } + else if (foreignObject is PaymentGroup) + { + return DocumentType.PaymentGroup; + } + else if (foreignObject is Salary) + { + return DocumentType.Salary; + } else { throw new ArgumentException ("Unrecognized foreign object type:" + foreignObject.GetType().ToString());