function propertiesColumnsValue($name) { global $post; if ($name == "holding_deposit") { $txn_id = get_post_meta($post->ID, "ipn_txn_id", true); if ($txn_id != "") { if ($txn_id != "Cash") { echo "Refund transaction: " . makePayPalLink($txn_id); } else { echo "Refund transaction: Cash"; } } else { echo "no transaction"; } } }
} else { if ($lead_tenant) { ?> <a class="reset_property button red left margintopsmall">Reset Property</a> <div class="reset_property clearboth"> <p>At the moment, we cannot refund PayPal payments automatically. The transaction references are noted below for your convenience: </p> <ul> <?php $security_deposits = 0; $group = $lead_tenant->user_login; foreach ($persons as $person) { if ($person->group == $group && $person->paid_security_deposit) { $security_deposit = $person->paid_security_deposit; $security_deposits++; $link = makePayPalLink($security_deposit); echo "<li>{$link}</li>"; } } if ($security_deposits == 0) { echo "<li>No security deposits to show</li>"; } ?> </ul> <form method="post"> <label for="reset_property">By clicking the button below, you will put <?php echo $address; ?> back on to the market. Any tenants participating in the moving-in process will be notified by email.</label> <input type="submit" class="red button" name="reset_property" id="reset_property" value="Reset <?php echo $address;
function display_reset_panel() { global $post; $txn_id = get_post_meta($post->ID, "ipn_txn_id"); echo "<p>Clicking the button below will take you to a page where you can refund a properties's holding deposit. Once the refund has completed, the property's status will be updated to 'on the market'.</p>"; echo makePayPalLink($txn_id[0]); }