Work on direct purchases
This commit is contained in:
+1
-1
@@ -619,7 +619,7 @@ namespace Resources.Pages {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Mark Purchase.
|
||||
/// Looks up a localized string similar to Mark as Direct Purchase.
|
||||
/// </summary>
|
||||
internal static string BalanceTransactions_ModalDialog_ButtonPurchase {
|
||||
get {
|
||||
|
||||
@@ -921,7 +921,7 @@
|
||||
<comment>Displayed as description of footer</comment>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_ButtonPurchase" xml:space="preserve">
|
||||
<value>Mark Purchase</value>
|
||||
<value>Mark as Direct Purchase</value>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_DescribePurchaseBudget" xml:space="preserve">
|
||||
<value>Charge purchase to this budget</value>
|
||||
|
||||
@@ -102,6 +102,11 @@
|
||||
|
||||
}
|
||||
|
||||
function <%=this.ClientID%>_clear() {
|
||||
// Note that this only clears the UI -- the uploaded docs must be disassociated elsewhere
|
||||
$('#<%=this.ClientID%>_DivUploadCount').empty();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<div class="stacked-input-control">
|
||||
|
||||
@@ -201,7 +201,22 @@
|
||||
$('#gridTransactions').datagrid('reload');
|
||||
});
|
||||
|
||||
} }
|
||||
}
|
||||
}
|
||||
|
||||
function onCreateDirectPurchase() {
|
||||
var budgetId = <%=this.DropBudgetsPurchase%>_val();
|
||||
var vatAmount = <%=this.CurrencyPurchaseVat.ClientID%>_val();
|
||||
var txDescription = $("#inputTextPurchaseDescription").val();
|
||||
|
||||
alert("BudgetId: " + budgetId + "\r\nVAT amount: " + vatAmount + "\r\nDescription: " + txDescription);
|
||||
|
||||
// TODO HERE: AJAX CALL
|
||||
|
||||
<%=this.UploadPurchase.ClientID%>_clear();
|
||||
<%=this.CurrencyPurchaseVat.ClientID%>_val("");
|
||||
// Keep the budget selection
|
||||
}
|
||||
|
||||
var buttonBalanceValue = SwarmopsJS.unescape('<%=this.Localized_ButtonBalance%>');
|
||||
var buttonPayoutValue = SwarmopsJS.unescape('<%=this.Localized_ButtonPayout%>');
|
||||
|
||||
Reference in New Issue
Block a user