louie_branch #44

Merged
MarkHipe merged 3 commits from louie_branch into main 2024-03-22 09:47:07 +08:00
2 changed files with 7 additions and 4 deletions

View File

@ -243,7 +243,7 @@ if ($_SESSION["userId"] <> "") {
$vendorIdCheck = $val['vendor_details'][0]['vendor_id'];
if ((empty($vendorIdCheck) == false) && ($vendorIdCheck == $vendorId) && ($val['status'] == "DEPOSITED")) {
echo "<tr>";
echo "<td>" . $val['net_amount'] . "</td>";
echo "<td>" . "" . $val['net_amount'] . "</td>";
if (empty($val['bank_information'][0]['bank_name']) == false) {
echo "<td>" . $val['bank_information'][0]['bank_name'] . "</td>";
// echo "<td>" . $val['bank_information'][0]['account_number'] . "</td>";
@ -251,8 +251,11 @@ if ($_SESSION["userId"] <> "") {
echo '<td>N/A</td>';
}
if (empty($val['bank_information'][0]['bank_account_number']) == false) {
echo "<td>" . $val['bank_information'][0]['bank_account_number'] . "</td>";
// echo "<td>" . $val['bank_information'][0]['account_number'] . "</td>";
$accNum = $val['bank_information'][0]['bank_account_number'];
// Replace characters with asterisks for all characters except the last three segments
$maskedAccNum = substr_replace($accNum, str_repeat('*', strlen($accNum) - 3), 0, -3);
echo "<td>" . $maskedAccNum . "</td>";
// echo "<td>" . $val['bank_information'][0]['bank_account_number'] . "</td>";
} else {
echo '<td>N/A</td>';
};

View File

@ -11,7 +11,7 @@ $current_page = basename($_SERVER['PHP_SELF']);
<li <?php if ($current_page == 'vendor-refund-history.php') echo 'class="active"'; ?>><a href="vendor-refund-history.php" id="vendor-refund-history-link">Vendor Refund History</a></li>
<li <?php if ($current_page == 'vendor-payments.php') echo 'class="active"'; ?>><a href="vendor-payments.php" id="vendor-payments-link">Payments</a></li>
<li <?php if ($current_page == 'vendor-payouts.php') echo 'class="active"'; ?>><a href="vendor-payouts.php" id="vendor-payouts-link">Payouts</a></li>
</ul>
</div>