Changed to OrgSeqId in a few places

This commit is contained in:
Rick Falkvinge
2017-11-30 08:04:38 +01:00
parent c84a5f9fec
commit 0957fb60da
2 changed files with 3 additions and 3 deletions
@@ -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
@@ -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