diff --git a/Logic/Financial/Payouts.cs b/Logic/Financial/Payouts.cs index 0265e118..5bbf5e82 100644 --- a/Logic/Financial/Payouts.cs +++ b/Logic/Financial/Payouts.cs @@ -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));*/ } } diff --git a/Logic/Financial/Salaries.cs b/Logic/Financial/Salaries.cs index a9103dc9..7b7a7431 100644 --- a/Logic/Financial/Salaries.cs +++ b/Logic/Financial/Salaries.cs @@ -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)); } } } diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index 1212e84c..3297d7c6 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -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))