mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-23 01:03:23 -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("");
|
amount.val("");
|
||||||
|
|
||||||
//make an exception for an actual member
|
//make an exception for an actual member
|
||||||
|
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) {
|
if (d < expiration_date) {
|
||||||
membership_transaction = true;
|
membership_transaction = true;
|
||||||
|
amount.attr("readonly", "readonly");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user