refactor: replaced Batch Student child table with LMS Batch Enrollment doctype

This commit is contained in:
Jannat Patel
2025-02-10 16:15:28 +05:30
parent 56007aa4ba
commit ab98884f77
21 changed files with 2253 additions and 549 deletions

View File

@@ -0,0 +1,17 @@
import frappe
def execute():
students = frappe.get_all("Batch Student", fields=["student", "student_name", "username", "payment", "source", "parent", "confirmation_email_sent"])
for student in students:
doc = frappe.new_doc("LMS Batch Enrollment")
doc.member = student.student
doc.member_name = student.student_name
doc.member_username = student.username
doc.payment = student.payment
doc.source = student.source
doc.batch = student.parent
doc.confirmation_email_sent = student.confirmation_email_sent
doc.save()
frappe.delete_doc("DocType", "Batch Student")