Commit 4af5d45d by AsadAzam Committed by GitHub

Merge pull request #14603 from edx/asadazam/ecom-7252-refund-cutoff-log

added log for refund cutoff date
parents 090f4e41 3102b2dd
...@@ -1571,6 +1571,11 @@ class CourseEnrollment(models.Model): ...@@ -1571,6 +1571,11 @@ class CourseEnrollment(models.Model):
# If it is after the refundable cutoff date they should not be refunded. # If it is after the refundable cutoff date they should not be refunded.
refund_cutoff_date = self.refund_cutoff_date() refund_cutoff_date = self.refund_cutoff_date()
if refund_cutoff_date and datetime.now(UTC) > refund_cutoff_date: if refund_cutoff_date and datetime.now(UTC) > refund_cutoff_date:
log.info(
u"user [%s] cannot be refunded because his/her cutoff date [%s] has passed",
self.username,
refund_cutoff_date
)
return False return False
course_mode = CourseMode.mode_for_course(self.course_id, 'verified') course_mode = CourseMode.mode_for_course(self.course_id, 'verified')
......
Markdown is supported
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