Update Payments to only show Asset Accts

This commit is contained in:
o-psi
2023-10-20 08:33:28 -05:00
parent de91afe1a0
commit 987944f992
3 changed files with 352 additions and 322 deletions

View File

@@ -51,16 +51,19 @@ require_once("inc_all_settings.php");
<?php
$sql_accounts = mysqli_query($mysqli, "SELECT * FROM accounts WHERE account_archived_at IS NULL ORDER BY account_name ASC");
while ($row = mysqli_fetch_array($sql_accounts)) {
$account_id = intval($row['account_id']);
$account_name = nullable_htmlentities($row['account_name']);
?>
<option value="<?php echo $account_id ?>" <?php if ($account_id == $config_stripe_account) { echo "selected"; } ?>><?php echo $account_name ?></option>
<?php
$account_type = nullable_htmlentities($row['account_type']);
if ($account_type < 19 && $account_type > 10) {
$account_id = intval($row['account_id']);
$account_name = nullable_htmlentities($row['account_name']);
?>
<option value="<?php echo $account_id ?>" <?php if ($account_id == $config_stripe_account) { echo "selected"; } ?>><?php echo $account_name ?></option>
<?php }
}
?>
</select>
</div>
</div>