Browse Source

Fixes another introduced bug so that readonly is only on for paid members for Memberships transactions.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
2b5c07665b
  1. 8
      js/transaction.js

8
js/transaction.js

@ -867,12 +867,14 @@ $(function() {
$("#membership_discount_price").empty();
amount.val("");
//make an exception for an actual member
amount.removeAttr("readonly");
//make an exception for an actual member for a Membership transaction
if ($("#transaction_type").val() === "Memberships") {
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) {
if (d < expiration_date && $("#transaction_type").val() === "Memberships") {
membership_transaction = true;
amount.attr("readonly", "readonly");
}

Loading…
Cancel
Save