diff --git a/CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs b/CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs index 418efb8..d426301 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs +++ b/CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs @@ -93,6 +93,19 @@ namespace CustomerOnlineV2.Controllers } return View(_response); } + [Authorization("SendMoney")] + public async Task ReceiptTran([FromQuery] string id) + { + TransactionDetailModel _response = new TransactionDetailModel(); + var loginDetails = HttpContext.GetLoginDetails(); + using (LogContext.PushProperty("DebugId", id)) + { + _logger.LogInformation($"TRANSACTIONSERVICE | GETRECEIPTDATA | REQUEST | {id}"); + _response = await _transactionBusiness.GetReceiptData(id, loginDetails); + _logger.LogInformation($"TRANSACTIONSERVICE | GETRECEIPTDATA | RESPONSE | {JsonConvert.SerializeObject(_response)}"); + } + return View(_response); + } [Authorization("Payment")] // [Authorization("SendMoney")] diff --git a/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerProfile.cshtml b/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerProfile.cshtml index d802261..992926f 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerProfile.cshtml +++ b/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerProfile.cshtml @@ -534,34 +534,10 @@ $(document).ready(function () { getData(); - // if ('@ViewBag.ResponseCode' == '0') { - // iziToast.success({ - // title: 'OK', - // message: '@ViewBag.ResponseMessage' - // }); - // } - // else if ('@ViewBag.ResponseCode' == '103') { - // iziToast.info({ - // title: 'Info', - // message: '@ViewBag.ResponseMessage' - // }); - // } - // else if ('@ViewBag.ResponseCode' == '1') { - // iziToast.error({ - // title: 'Error', - // message: '@ViewBag.ResponseMessage' - // }); - // } + }); - // function pageLoad() { - - // getData(); - // } - // $(document).ready(function () { - - // // getData(); - // }); + $(document).on('click', '#btnSearch',function (e) { e.preventDefault(); var postalCode = $('#postalCode').val(); diff --git a/CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml b/CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml new file mode 100644 index 0000000..4477d60 --- /dev/null +++ b/CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml @@ -0,0 +1,194 @@ +@model CustomerOnlineV2.Common.Models.TransactionModel.TransactionDetailModel +@using CustomerOnlineV2.Common.Helper + +@{ + Layout = "_Layout2"; +} + +
+
+ +
+
+

Transaction Details

+

Refer us to your friends and become one of IME London Remit's Preferred Clients!

+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+ @* Status: *@ + + @Model.Status +
+ @* + Amount : + *@ + @Model.PayoutCurr +
+ Send To: + @Model.ReceiverName +
+
+ Reference Number: + @Model.ControlNo +
+ Transaction ID: + @Model.TransactionId +
+
+
+ + To: + + + @Model.PCountry + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @* + + + *@ + + + + + + + + + +
+ Transaction Date: + + @Model.CreatedDate +
Receiver Name: + @Model.ReceiverName +
Address: + @Model.ReceiverAddress +
Collected Amount : + @Model.CollectionCurrency +
Service Fee : + @Model.TotalToPay, @Model.CollectionCurrency +
Reward Amount Used : + @Model.PromotionDiscount +
Total Sent Amount : + @Model.SendAmount @Model.CollectionCurrency +
Exchange Rate : + @Model.ExRate +
Total Payout Amount : + @Model.PayoutAmount @Model.PayoutCurr +
Delivery Method : + @Model.DeliveryMethod +
Bank Name : + @Model.BankName +
Bank Branch : + @Model.BankBranch +
Bank Account No : + @Model.AccountNumber +
Purpose of Remittance : + @Model.PurposeOfRemit +
+ Promotion Premium Rate* : + + @Model.PromotionPremiumRate +
Paid by : + @Model.PaidBy +
+
+
+
+
+
+
\ No newline at end of file diff --git a/CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml b/CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml index 44db999..e9a7e0d 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml +++ b/CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml @@ -80,7 +80,7 @@
-
+
@*
*@ @@ -165,7 +165,7 @@ @section scripts{