style: formattin
This commit is contained in:
@@ -1,17 +1,29 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
students = frappe.get_all("Batch Student", fields=["student", "student_name", "username", "payment", "source", "parent", "confirmation_email_sent"])
|
||||
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()
|
||||
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")
|
||||
frappe.delete_doc("DocType", "Batch Student")
|
||||
|
||||
Reference in New Issue
Block a user