Added remaining dynamic content on payout modal box

This commit is contained in:
jouls 2024-03-26 18:15:52 +08:00
parent 424dfd8ca4
commit 55affaa372
1 changed files with 10 additions and 7 deletions

View File

@ -645,21 +645,24 @@ $vendorPayoutData = json_decode($response, true);
var transactionLogsHtml = ''; // Initialize empty string to store HTML for transaction logs
// Inside the success callback function
var transactionLogsHtml = ''; // Initialize empty string to store HTML for transaction logs
response.transaction_logs.forEach(function(log) {
var paymentType = log.Type; // Assuming Transaction field holds the date
var grossAmount = log.Gross; // Assuming Gross field holds the gross amount
response.transaction_logs.forEach(function(log)
{
var paymentType = log.Type;
var transDate = log?.Transaction_date;
var transGrossAmount = log?.Gross_Amount;
var transFee = log.Fee;
var netAmount = log.Net;
var transNetAmount = log?.Net_Amount;
var transDesc = log.Description;
// Append HTML for current transaction log to the transactionLogsHtml string
transactionLogsHtml += `
<tr>
<td>${paymentType}</td>
<td>Wala Muna</td>
<td> Wala muna</td>
<td>${transDate}</td>
<td> ${transGrossAmount}</td>
<td>- ${transFee}</td>
<td> Wala Muna</td>
<td> ${transNetAmount}</td>
<td>${transDesc}</td>
</tr>`;
});