From 0f33a049d23db83e860b35acde658284fdb12401 Mon Sep 17 00:00:00 2001 From: Dinesh Date: Tue, 7 Nov 2023 11:02:18 +0545 Subject: [PATCH] transaction report view --- .../Controllers/TransactionController.cs | 15 +- .../Views/Transaction/ReceiptTran.cshtml | 194 ------------------ .../Views/TransactionReport/TranReport.cshtml | 9 +- 3 files changed, 7 insertions(+), 211 deletions(-) delete mode 100644 CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml diff --git a/CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs b/CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs index d426301..6686957 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs +++ b/CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionController.cs @@ -93,19 +93,8 @@ 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/Transaction/ReceiptTran.cshtml b/CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml deleted file mode 100644 index 4477d60..0000000 --- a/CustomerOnlineV2/CustomerOnlineV2/Views/Transaction/ReceiptTran.cshtml +++ /dev/null @@ -1,194 +0,0 @@ -@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 e9a7e0d..4b9167a 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml +++ b/CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml @@ -80,9 +80,9 @@
-
- - +
+ + @*
*@ @*
*@ @*
*@ @*
*@ @@ -219,7 +219,7 @@
${d.collAmt}
${d.payoutAmt}
${d.payoutMode}
-
+
`; @@ -228,6 +228,7 @@ } } + // // function PopulateTransactionReportData(response) { // debugger; // var result = response.customerTransaction;