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;