Disabling set-bitcoin-address notification
This commit is contained in:
@@ -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));*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user