Add Payment Method to UI and switch Add Payment modals to use the new table

This commit is contained in:
johnnyq
2025-07-07 16:37:51 -04:00
parent 7c558ff842
commit c76da10747
18 changed files with 474 additions and 41 deletions

View File

@@ -166,11 +166,11 @@ ob_start();
<option value="">- Method of Transfer -</option>
<?php
$sql_transfer_method_select = mysqli_query($mysqli, "SELECT * FROM categories WHERE category_type = 'Payment Method' AND category_archived_at IS NULL ORDER BY category_name ASC");
$sql_transfer_method_select = mysqli_query($mysqli, "SELECT * FROM payment_methods WHERE payment_method_provider_id = 0 ORDER BY payment_method_name ASC");
while ($row = mysqli_fetch_array($sql_transfer_method_select)) {
$category_name_select = nullable_htmlentities($row['category_name']);
$payment_method_name_select = nullable_htmlentities($row['payment_method_name']);
?>
<option <?php if($transfer_method == $category_name_select) { echo "selected"; } ?> ><?php echo $category_name_select; ?></option>
<option <?php if($transfer_method == $payment_method_name_select) { echo "selected"; } ?> ><?php echo $payment_method_name_select; ?></option>
<?php
}