Fixed incorrect date comparison on the paymrnt check process