Unverified Commit 0c83f2e6 authored by konadave's avatar konadave
Browse files

Pledges are also recurring

parent 4cf86391
......@@ -212,6 +212,11 @@
isRecur = Boolean($('input[name="auto_renew"]').checked);
}
}
if (!isRecur) {
// multi-installment pledges are also recurring....
const is_pledge = $('input[name="is_pledge"]:checked');
isRecur = is_pledge.length === 1 && parseInt(is_pledge.val()) !== 0 && parseInt($('#pledge_installments').val()) > 1;
}
this.debugging(this.name, 'isRecur is ' + isRecur);
return isRecur;
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment