Jump to content

Welcome to the T3Leads Forum.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, create your account today.
To all the members who previously registered on the old T3Leads forum: your registration data were not transferred from the old forum. To get started on the new T3leads.com forum please register again to get access.


Checking pay_date1, pay_date2 and pay_frequency in Payday Leads

Leads channels

  • Please log in to reply
No replies to this topic

#1 admin



  • Administrators
  • 38 posts

Posted 01 September 2013 - 12:38 PM

Description of Fields:

pay_frequency - Pay frequency: weekly, biweekly, twice a month, monthly

pay_date1 - Next pay date

pay_date2 - The pay date after next


Since the values of these fields should be accordingly appropriate, we  check those with each other for accuracy. If the client selects weekly  pay frequency and there is a timeframe of a month two pay dates chosen,  the lead will not be processed in indicating inaccurate dates or pay  frequency selection.


How do we check?

For each type of pay frequency, we chose minimum and maximum number of days that could be between pay dates selection.


WEEKLY(4, 11), 

BIWEEKLY(11, 17), 


MONTHLY(25, 34)


Min = the minimum number of days. Max = the maximum number of days.



pay_date1 = (today, today + Max)

pay_date2 = (pay_date1 + Min, pay_date1 + Max)


For example:

If the following information was collected from the form:


Date: 2010-01-01

pay_frequency: BIWEEKLY

pay_date1: 2010-01-03

pay_date2: 2010-01-18



Min = 11 days

Max = 17 days


Checking pay_date1

pay_date1 must fall between the following dates:

today and today + Max

Because 2010-01-03 falls between 2010-01-01 and 2010-01-17, pay_date1 passes the validation.


Checking pay_date2

pay_date2 must fall between the following dates:

pay_date1 + Min and pay_date1 + Max

2010-01-03 + 11 days and 2010-01-03 + 17 days

2010-01-18 falls between these dates. The lead successfully goes through.


The information is correct.

Also tagged with one or more of these keywords: Leads channels

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Copyright © 2018 T3 leads