Fixed lack of OutboundInvoice item

This commit is contained in:
Rick Falkvinge
2017-09-26 14:18:44 +02:00
parent b0f0c58d2f
commit 838871a827
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -29,6 +29,11 @@ namespace Swarmops.Common.Enums
/// </summary>
InboundInvoice,
/// <summary>
/// An outbound invoice, going into accounts receivable.
/// </summary>
OutboundInvoice,
/// <summary>
/// Something physical received in the mail
/// </summary>
+4
View File
@@ -127,6 +127,10 @@ namespace Swarmops.Logic.Support
{
return DocumentType.InboundInvoice;
}
else if (foreignObject is OutboundInvoice)
{
return Common.Enums.DocumentType.OutboundInvoice;
}
else if (foreignObject is PaperLetter)
{
return DocumentType.PaperLetter;