mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 08:53:23 -05:00
Realized that having readonly on membership may prevent a patron from renewing slightly earlier, so reverted.
* Could allow renewal perhaps 2 months before, and turn off readonly, as a feature.
This commit is contained in:
parent
2b5c07665b
commit
f95febd851
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user