diff --git a/Site5/App_GlobalResources/Menu5.resx b/Site5/App_GlobalResources/Menu5.resx index 1fc6b9bb..818bfda8 100644 --- a/Site5/App_GlobalResources/Menu5.resx +++ b/Site5/App_GlobalResources/Menu5.resx @@ -417,4 +417,7 @@ Donate Funds + + Budget vs Actual + \ No newline at end of file diff --git a/Site5/MainMenu-v5-OpenLedgers.xml b/Site5/MainMenu-v5-OpenLedgers.xml index bfeca3ab..39f62c35 100644 --- a/Site5/MainMenu-v5-OpenLedgers.xml +++ b/Site5/MainMenu-v5-OpenLedgers.xml @@ -5,22 +5,32 @@ Ledgers_BalanceSheet - 3 + 0 /Pages/v5/Ledgers/BalanceSheet.aspx Link - + - Ledgers_ProfitLossStatement - 3 - - - /Pages/v5/Ledgers/ProfitLossStatement.aspx - Link - + Ledgers_ProfitLossStatement + 0 + + + /Pages/v5/Ledgers/ProfitLossStatement.aspx + Link + + + + + Ledgers_BudgetVsActual + 0 + + + /Pages/v5/Ledgers/BudgetVsActual.aspx + Link + diff --git a/Site5/Pages/v5/Admin/OrgSettings.aspx b/Site5/Pages/v5/Admin/OrgSettings.aspx index 56202021..9cb99772 100644 --- a/Site5/Pages/v5/Admin/OrgSettings.aspx +++ b/Site5/Pages/v5/Admin/OrgSettings.aspx @@ -106,6 +106,9 @@ if (orgSettings.AccountPaypal) { $('.paypalAccountField').show(); } + + $('#<%=this.TextOpenLedgersDomain.ClientID%>_TextInput').val(orgSettings.OpenLedgersDomain); + $('#<%=this.TextVanityDomain.ClientID%>_TextInput').val(orgSettings.VanityDomain); } var suppressSwitchResponse = false; diff --git a/Site5/Pages/v5/Admin/OrgSettings.aspx.cs b/Site5/Pages/v5/Admin/OrgSettings.aspx.cs index 7d75ce08..b09a2d52 100644 --- a/Site5/Pages/v5/Admin/OrgSettings.aspx.cs +++ b/Site5/Pages/v5/Admin/OrgSettings.aspx.cs @@ -135,6 +135,9 @@ namespace Swarmops.Frontend.Pages.v5.Admin result.ParticipantFinancials = org.ParticipantFinancialsEnabled; result.PaypalAccountAddress = org.PaypalAccountMailAddress; + result.OpenLedgersDomain = org.OpenLedgersDomain; + result.VanityDomain = org.VanityDomain; + // TODO: Add all the other fields return result; @@ -443,6 +446,9 @@ namespace Swarmops.Frontend.Pages.v5.Admin public bool AccountsVat; public bool ParticipantFinancials; public string PaypalAccountAddress; + + public string OpenLedgersDomain; + public string VanityDomain; } } } \ No newline at end of file diff --git a/Site5/Pages/v5/Financial/AttestCosts.aspx b/Site5/Pages/v5/Financial/AttestCosts.aspx index 1f381376..a415673d 100644 --- a/Site5/Pages/v5/Financial/AttestCosts.aspx +++ b/Site5/Pages/v5/Financial/AttestCosts.aspx @@ -32,7 +32,21 @@ '/Images/Icons/iconshock-balloon-undo-128x96px-hot.png' ]); - loadUninitializedBudgets(); // no need to wait for doc.ready + loadUninitializedBudgets(); // no need to wait for doc.ready to load operating params + + SwarmopsJS.ajaxCall("/Pages/v5/Financial/AttestCosts.aspx/GetRemainingBudgets", {}, function(data) { + data.forEach(function(accountData, dummy1, dummy2) { + budgetRemainingLookup[accountData.AccountId] = accountData.Remaining; + }); + + if (budgetRemainingLookup.rowsLoaded == true) { + setAttestability(); + } + + budgetRemainingLookup.budgetsLoaded = true; + }); + + // Doc.ready: $(document).ready(function () { $('#TableAttestableCosts').datagrid( @@ -248,18 +262,6 @@ }); - SwarmopsJS.ajaxCall("/Pages/v5/Financial/AttestCosts.aspx/GetRemainingBudgets", {}, function(data) { - data.forEach(function(accountData, dummy1, dummy2) { - budgetRemainingLookup[accountData.AccountId] = accountData.Remaining; - }); - - if (budgetRemainingLookup.rowsLoaded == true) { - setAttestability(); - } - - budgetRemainingLookup.budgetsLoaded = true; - }); - // If we're running with admin privileges, allow overdraft override if (canOverdraftBudgets) {