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