mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
Turns off input for membership transaction if patron is a paid member.
This commit is contained in:
parent
79e8baf0b7
commit
7b84256a39
@ -868,11 +868,13 @@ $(function() {
|
||||
amount.val("");
|
||||
|
||||
//make an exception for an actual member
|
||||
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) {
|
||||
membership_transaction = true;
|
||||
amount.attr("readonly", "readonly");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user