Committing deletion of a one-off priming

This commit is contained in:
Rick Falkvinge
2012-11-24 12:30:00 +00:00
parent 2babebf7a9
commit 3e6cfa7eb1
3 changed files with 2 additions and 5 deletions
@@ -14,6 +14,7 @@ namespace Activizr.Logic.Financial
{
public static void PrimePiratpartietSE() // One-off. Once this has been run once, delete it.
{
/* -- this was a one-time one-off
if (PirateDb.GetDatabaseForReading().GetOrganizationFinancialAccountId(1, OrganizationFinancialAccountType.AssetsBankAccountMain) != 0)
{
return;
@@ -53,6 +54,7 @@ namespace Activizr.Logic.Financial
FinancialAccount.FromIdentity(27).IsConferenceParent = true;
Organization.PPSE.IsEconomyEnabled = true; // Kill this function in base, too
*/
}
public OrganizationFinancialAccounts (int organizationId)
-1
View File
@@ -149,7 +149,6 @@ namespace Activizr.Logic.Structure
public bool IsEconomyEnabled
{
get { return OptionalData.GetOptionalDataBool(ObjectOptionalDataType.OrgEconomyEnabled); }
set { OptionalData.SetOptionalDataBool(ObjectOptionalDataType.OrgEconomyEnabled, value);}
}
public void EnableEconomy()
-4
View File
@@ -28,9 +28,5 @@ public partial class Default : PageV5Base
this.LabelDashboardTemporaryContent.Text = Resources.Global.Dashboard_Main_Temporary;
this.LabelDashboardInfo.Text = Resources.Global.Dashboard_Info_Temporary;
this.LabelGoThere2.Text = Resources.Global.Global_GoThere;
// THIS IS A ONE-OFF, DELETE:
OrganizationFinancialAccounts.PrimePiratpartietSE();
}
}