Misc small work
This commit is contained in:
@@ -417,4 +417,7 @@
|
||||
<data name="Menu5_Financial_DonateFunds" xml:space="preserve">
|
||||
<value>Donate Funds</value>
|
||||
</data>
|
||||
<data name="Menu5_Ledgers_BudgetVsActual" xml:space="preserve">
|
||||
<value>Budget vs Actual</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -5,22 +5,32 @@
|
||||
|
||||
<MainMenuItem>
|
||||
<ResourceKey>Ledgers_BalanceSheet</ResourceKey>
|
||||
<UserLevel>3</UserLevel>
|
||||
<UserLevel>0</UserLevel>
|
||||
<Permissions />
|
||||
<ImageUrl />
|
||||
<NavigateUrl>/Pages/v5/Ledgers/BalanceSheet.aspx</NavigateUrl>
|
||||
<Type>Link</Type>
|
||||
<Children />
|
||||
</MainMenuItem>
|
||||
|
||||
|
||||
<MainMenuItem>
|
||||
<ResourceKey>Ledgers_ProfitLossStatement</ResourceKey>
|
||||
<UserLevel>3</UserLevel>
|
||||
<Permissions />
|
||||
<ImageUrl />
|
||||
<NavigateUrl>/Pages/v5/Ledgers/ProfitLossStatement.aspx</NavigateUrl>
|
||||
<Type>Link</Type>
|
||||
<Children />
|
||||
<ResourceKey>Ledgers_ProfitLossStatement</ResourceKey>
|
||||
<UserLevel>0</UserLevel>
|
||||
<Permissions />
|
||||
<ImageUrl />
|
||||
<NavigateUrl>/Pages/v5/Ledgers/ProfitLossStatement.aspx</NavigateUrl>
|
||||
<Type>Link</Type>
|
||||
<Children />
|
||||
</MainMenuItem>
|
||||
|
||||
<MainMenuItem>
|
||||
<ResourceKey>Ledgers_BudgetVsActual</ResourceKey>
|
||||
<UserLevel>0</UserLevel>
|
||||
<Permissions />
|
||||
<ImageUrl />
|
||||
<NavigateUrl>/Pages/v5/Ledgers/BudgetVsActual.aspx</NavigateUrl>
|
||||
<Type>Link</Type>
|
||||
<Children />
|
||||
</MainMenuItem>
|
||||
|
||||
<MainMenuItem>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user