From 496151efdcfa252771acdeac91462a3a6539cd45 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 7 Oct 2017 10:23:24 +0200 Subject: [PATCH] Added legacy comment --- Logic/Financial/InboundInvoice.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Logic/Financial/InboundInvoice.cs b/Logic/Financial/InboundInvoice.cs index 62372313..c205acd5 100644 --- a/Logic/Financial/InboundInvoice.cs +++ b/Logic/Financial/InboundInvoice.cs @@ -52,6 +52,9 @@ namespace Swarmops.Logic.Financial { if (this.OrganizationSequenceId == 0) { + // This case is for legacy installations before DbVersion 41, when + // OrganizationSequenceId was added for each new invoice + SwarmDb db = SwarmDb.GetDatabaseForWriting(); base.OrganizationSequenceId = db.SetInboundInvoiceSequence(this.Identity); return base.OrganizationSequenceId;