Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascripting Installment Schedules

Status
Not open for further replies.

lm1340

Technical User
Apr 27, 2015
29
US
Can someone help me build out a limit for payment terms on our website. I'd like to limit the number of installments that you can pay your balance in, depending on the date. Our year goes from 9/1/20XX - 8/31/20XX. If you sign up pre-September, you can choose UP TO 12 installments, anytime in September UP TO 11 installments, etc.
 
Code:
if (month > 7) // month numbers are from 0 to 11
    maxinstallments = 11
else
    maxinstallments = 12
end if



Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top