Added more DocumentTypes
This commit is contained in:
@@ -67,6 +67,16 @@ namespace Swarmops.Common.Enums
|
||||
/// <summary>
|
||||
/// There really isn't a standalone doctype for this but still
|
||||
/// </summary>
|
||||
Payout
|
||||
Payout,
|
||||
|
||||
/// <summary>
|
||||
/// Nor for this
|
||||
/// </summary>
|
||||
PaymentGroup,
|
||||
|
||||
/// <summary>
|
||||
/// Nor this
|
||||
/// </summary>
|
||||
Salary
|
||||
}
|
||||
}
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user