diff --git a/Site/Pages/v5/Financial/PayOutMoney.aspx b/Site/Pages/v5/Financial/PayOutMoney.aspx index e3bbf03e..94f87c87 100644 --- a/Site/Pages/v5/Financial/PayOutMoney.aspx +++ b/Site/Pages/v5/Financial/PayOutMoney.aspx @@ -102,10 +102,12 @@ modalPrototypeId = $(this).attr("protoid"); modalItemId = $(this).attr("baseid"); - $('#idModalInputRecipient').val(loadingBreadcrumb); - $('#idModalInputCurrencyAmount').val(loadingBreadcrumb); - $('#idModalReference').val(loadingBreadcrumb); - $('#idModalTransferMethod').val(loadingBreadcrumb); + console.log(result); + + $('#idModalInputRecipient').val(result.Recipient); + $('#idModalInputCurrencyAmount').val(result.CurrencyAmount); + $('#idModalReference').val(loadingBreadcrumb); // TODO: load reference from JSON data + $('#idModalTransferMethod').val(result.LocalizedPaymentMethodName); $('#idModalClearing').val(loadingBreadcrumb); $('#idModalAccountNumber').val(loadingBreadcrumb); @@ -243,7 +245,6 @@ function onConfirmModal() { - alert(modalItemId); var approvalIcon = $('#IconApproval' + modalItemId); confirmExpenseApproved(approvalIcon); @@ -259,10 +260,8 @@ var itemId = $(approvalIcon).attr("baseid"); var prototypeId = $(approvalIcon).attr("protoid"); - alert(prototypeId); - if (prototypeId === undefined || prototypeId === null || prototypeId.Length < 2) { - alert("Aborting"); + alert("PrototypeId is empty. Aborting operation. This should not happen."); return; } diff --git a/Site/Pages/v5/Financial/PayOutMoney.aspx.cs b/Site/Pages/v5/Financial/PayOutMoney.aspx.cs index 8ea8cf69..8d94a1ca 100644 --- a/Site/Pages/v5/Financial/PayOutMoney.aspx.cs +++ b/Site/Pages/v5/Financial/PayOutMoney.aspx.cs @@ -119,7 +119,7 @@ namespace Swarmops.Frontend.Pages.Financial } [WebMethod] - public static PaymentTransferInfoResult GetPayoutTransferInfo(string prototypeId) + public static PaymentTransferInfoResult GetPaymentTransferInfo(string prototypeId) { AuthenticationData authData = GetAuthenticationDataAndCulture();