From 0957fb60da8df5d10e7f5fb982204b2ca51f6878 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 30 Nov 2017 08:04:38 +0100 Subject: [PATCH] Changed to OrgSeqId in a few places --- Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs | 2 +- Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs b/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs index ebbd757e..687dd325 100644 --- a/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs +++ b/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs @@ -194,7 +194,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial // Display success message - this._invoiceId = invoice.Identity; // a property returns the localized string + this._invoiceId = invoice.OrganizationSequenceId; // a property returns the localized string // Reset all fields for next invoice diff --git a/Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs b/Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs index e24caec3..c4df1c0d 100644 --- a/Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs +++ b/Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs @@ -171,7 +171,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial // Create financial transaction in the ledger (this logic should not be in the presentation layer at all, move it to a better OutboundInvoice.Create that takes OutboundInvoiceItems as parameter) FinancialTransaction txOut = FinancialTransaction.Create(CurrentOrganization, DateTime.UtcNow, - "Outbound Invoice #" + newInvoice.Identity.ToString("N0")); + "Outbound Invoice #" + newInvoice.OrganizationSequenceId.ToString("N0")); txOut.AddRow(CurrentOrganization.FinancialAccounts.AssetsOutboundInvoices, amountCents, CurrentUser); if (amountVatCents > 0) @@ -200,7 +200,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial // Display success message - this._invoiceId = newInvoice.Identity; // a property returns the localized string + this._invoiceId = newInvoice.OrganizationSequenceId; // a property returns the localized string // Reset all fields for next invoice