From 838871a82791e46c0fe3b1a58f09c86bf5e6a90a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 26 Sep 2017 14:18:44 +0200 Subject: [PATCH] Fixed lack of OutboundInvoice item --- Common/Enums/DocumentType.cs | 5 +++++ Logic/Support/Document.cs | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/Common/Enums/DocumentType.cs b/Common/Enums/DocumentType.cs index 69fd9ae2..03369727 100644 --- a/Common/Enums/DocumentType.cs +++ b/Common/Enums/DocumentType.cs @@ -29,6 +29,11 @@ namespace Swarmops.Common.Enums /// InboundInvoice, + /// + /// An outbound invoice, going into accounts receivable. + /// + OutboundInvoice, + /// /// Something physical received in the mail /// diff --git a/Logic/Support/Document.cs b/Logic/Support/Document.cs index bb2f4d0d..b92b5c5b 100644 --- a/Logic/Support/Document.cs +++ b/Logic/Support/Document.cs @@ -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;