fix: payment validation during course enrollment

This commit is contained in:
Jannat Patel
2026-01-02 14:42:42 +05:30
parent 27a36540d4
commit b1789cdcba

View File

@@ -39,8 +39,8 @@ class LMSEnrollment(Document):
payment = frappe.db.exists(
"LMS Payment",
{
"reference_doctype": "LMS Course",
"reference_docname": self.course,
"payment_for_document_type": "LMS Course",
"payment_for_document": self.course,
"member": self.member,
"payment_received": True,
},