Error while saving records in Custom page

System showing the below error, while saving custom page. its not showing always.

TypeError: ‘>’ not supported between instances of ‘NoneType’ and ‘NoneType’

@jayakumar

Please provide a screenshot when adding records to your doctype. I believe this error occurs because you are comparing a none type variable with another none type variable.