Browse Source

Realized that having readonly on membership may prevent a patron from renewing slightly earlier, so reverted.

* Could allow renewal perhaps 2 months before, and turn off readonly, as a feature.
devel
Jonathan Rosenbaum 7 years ago
parent
commit
f95febd851
  1. 4
      js/transaction.js

4
js/transaction.js

@ -869,14 +869,14 @@ $(function() {
//make an exception for an actual member for a Membership transaction
if ($("#transaction_type").val() === "Memberships") {
amount.removeAttr("readonly");
//amount.removeAttr("readonly");
}
if (membership_obj.expiration_date) {
var exp = membership_obj.expiration_date;
expiration_date = new Date(exp.split("-").toString());
if (d < expiration_date && $("#transaction_type").val() === "Memberships") {
membership_transaction = true;
amount.attr("readonly", "readonly");
//amount.attr("readonly", "readonly");
}
}

Loading…
Cancel
Save