One minor bugfix; preparing for deployment of Payout/Transaction/CashAdvance fixes
This commit is contained in:
@@ -40,6 +40,12 @@ namespace Swarmops.Logic.Swarm
|
||||
ExpenseClaims claims = ExpenseClaims.ForOrganization(organization);
|
||||
claims = claims.WhereUnvalidated;
|
||||
|
||||
if (claims.Count == 0)
|
||||
{
|
||||
// nothing to add
|
||||
return;
|
||||
}
|
||||
|
||||
DashboardTodo todo = new DashboardTodo();
|
||||
|
||||
if (claims.Count > 1)
|
||||
|
||||
@@ -19,6 +19,8 @@ public partial class Pages_v5_Ledgers_DebugLedgers : PageV5Base
|
||||
|
||||
// TODO: If this O(n^2) matching becomes teh suckage, optimize using hashtables over amounts
|
||||
|
||||
Payouts.AutomatchAgainstUnbalancedTransactions(this.CurrentOrganization);
|
||||
|
||||
// Iterate over all open payment groups and try to map them to unbalanced transactions
|
||||
|
||||
FinancialTransactions unbalancedTransactions = FinancialTransactions.GetUnbalanced(this.CurrentOrganization); // TODO: this fn should move to Organization
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace Swarmops.Utility.Communications
|
||||
if (string.IsNullOrEmpty(smtpServer))
|
||||
{
|
||||
smtpServer = "192.168.80.204"; // For development use only - invalidate cache instead of this, forcing re-reload
|
||||
_cacheReloadTime = DateTime.MinValue;
|
||||
}
|
||||
|
||||
SmtpClient mailClient = new SmtpClient(smtpServer);
|
||||
|
||||
Reference in New Issue
Block a user