Resync Ajax call function names with new terminology
This commit is contained in:
@@ -403,7 +403,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
function onAttestCorrectedAmount() {
|
||||
function onApproveCorrectedAmount() {
|
||||
if (recordId[0] == 'S') // Salary - cannot change amount this way
|
||||
{
|
||||
alertify.error(decodeURIComponent('<asp:Literal ID="LiteralCannotCorrectSalary" runat="server" />'));
|
||||
@@ -470,7 +470,7 @@
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
|
||||
<h2><asp:Label runat="server" ID="LabelAttestCostsHeader" Text="XYZ Costs Awaiting Your Approval" /></h2>
|
||||
<table id="tableApprovableCosts" class="easyui-datagrid" style="width:680px;height:400px"
|
||||
data-options="rownumbers:false,singleSelect:false,fit:false,loading:false,selectOnCheck:true,checkOnSelect:true,url:'Json-AttestableCosts.aspx'"
|
||||
data-options="rownumbers:false,singleSelect:false,fit:false,loading:false,selectOnCheck:true,checkOnSelect:true,url:'Json-ApprovableCosts.aspx'"
|
||||
idField="itemId">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -504,7 +504,7 @@
|
||||
<div id="radioOptionCorrect" class="radioOption">
|
||||
<div class="entryFields">
|
||||
<Swarmops5:CurrencyTextBox ID="TextCorrectAmount" runat="server" />
|
||||
<input type="button" value='#Correct#' class="buttonAccentColor" onclick="onAttestCorrectedAmount(); return false;" id="buttonExecuteCorrectedAmount"/>
|
||||
<input type="button" value='#Correct#' class="buttonAccentColor" onclick=" onApproveCorrectedAmount(); return false;" id="buttonExecuteCorrectedAmount"/>
|
||||
</div>
|
||||
<div class="entryLabels">
|
||||
<asp:Label runat="server" ID="LabelDescribeCorrect" Text="What amount are you attesting instead (SEK)? XYZ" /><br/>
|
||||
|
||||
@@ -221,7 +221,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public static AjaxCallResult AttestCorrectedItem(string recordId, string amountString)
|
||||
public static AjaxCallResult ApproveCorrectedItem(string recordId, string amountString)
|
||||
{
|
||||
AuthenticationData authData = GetAuthenticationDataAndCulture();
|
||||
Int64 amountCents = 0;
|
||||
@@ -339,7 +339,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
|
||||
|
||||
|
||||
[WebMethod]
|
||||
public static AjaxCallResult Attest (string identifier)
|
||||
public static AjaxCallResult ApproveItem (string identifier)
|
||||
{
|
||||
identifier = HttpUtility.UrlDecode (identifier);
|
||||
|
||||
@@ -347,7 +347,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public static AjaxCallResult Deattest (string identifier)
|
||||
public static AjaxCallResult RetractApproval (string identifier)
|
||||
{
|
||||
identifier = HttpUtility.UrlDecode (identifier);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user