mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
Fixes another introduced bug so that readonly is only on for paid members for Memberships transactions.
This commit is contained in:
parent
7b84256a39
commit
2b5c07665b
@ -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…
x
Reference in New Issue
Block a user