Disabling set-bitcoin-address notification

This commit is contained in:
Rick Falkvinge
2016-01-03 23:54:59 +01:00
parent cfb2e55141
commit a18ff0c559
3 changed files with 11 additions and 7 deletions
+4 -1
View File
@@ -581,6 +581,9 @@ namespace Swarmops.Logic.Financial
{
// There is a payout for this person, but they don't have a bitcoin payout address set. Send notification to this effect twice a day.
// DISABLE THIS FOR TIME BEING
/*
if (utcNow.Minute != 0)
{
continue;
@@ -592,7 +595,7 @@ namespace Swarmops.Logic.Financial
NotificationStrings primaryStrings = new NotificationStrings();
primaryStrings[NotificationString.OrganizationName] = organization.Name;
OutboundComm.CreateNotification(organization, NotificationResource.BitcoinPayoutAddress_PleaseSet, primaryStrings, People.FromSingle(payout.RecipientPerson));
OutboundComm.CreateNotification(organization, NotificationResource.BitcoinPayoutAddress_PleaseSet, primaryStrings, People.FromSingle(payout.RecipientPerson));*/
}
}
+4 -4
View File
@@ -148,9 +148,9 @@ namespace Swarmops.Logic.Financial
notificationStrings[NotificationString.CurrencyCode] = organization.Currency.DisplayCode;
notificationStrings[NotificationString.EmbeddedPreformattedText] = preFormattedStatement;
customStrings["LastYear"] = year.ToString(CultureInfo.InvariantCulture);
customStrings["GrossSalaryTotal"] = String.Format("{0:10,N2}", grossTotal / 100.0);
customStrings["TaxDeductedTotal"] = String.Format("{0:11,N2}", -subTaxTotal / 100.0);
customStrings["NetSalaryTotal"] = String.Format("{0:10,N2}", netTotal / 100.0);
customStrings["GrossSalaryTotal"] = String.Format("{0,10:N2}", grossTotal / 100.0);
customStrings["TaxDeductedTotal"] = String.Format("{0,11:N2}", -subTaxTotal / 100.0);
customStrings["NetSalaryTotal"] = String.Format("{0,10:N2}", netTotal / 100.0);
customStrings["TaxAdditiveTotalUnpadded"] = String.Format("{0:N2}", addTaxTotal / 100.0);
// Send notification if gross is nonzero
@@ -158,7 +158,7 @@ namespace Swarmops.Logic.Financial
if (grossTotal > 0)
{
OutboundComm.CreateNotification (organization, NotificationResource.Salary_LastYearSummary,
notificationStrings, customStrings, People.FromSingle (Person.FromIdentity (1)));
notificationStrings, customStrings, People.FromSingle (person));
}
}
}
+3 -2
View File
@@ -36,11 +36,12 @@ namespace Swarmops
Response.Redirect("/", true);
}
// Test code
// BEGIN TEST CODE
// Salaries.CreateAnnualStatements (2015);
// Ugly ugly UGLY legacy: Do not allow Sandbox logins on first pilot - it's broken
// END TEST CODE
if (this._authority.Organization.Identity == 3 &&
PilotInstallationIds.IsPilot (PilotInstallationIds.PiratePartySE))