mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
Merge pull request #7593 from neilLasrado/student-batch
Fix- Student batch strength in Batch Wise attendance report
This commit is contained in:
@@ -53,7 +53,7 @@ def get_active_student_batch():
|
|||||||
|
|
||||||
def get_student_batch_strength(student_batch):
|
def get_student_batch_strength(student_batch):
|
||||||
student_batch_strength = frappe.db.sql("""select count(*) from `tabStudent Batch Student`
|
student_batch_strength = frappe.db.sql("""select count(*) from `tabStudent Batch Student`
|
||||||
where parent = %s""", student_batch)[0][0]
|
where parent = %s and active=1""", student_batch)[0][0]
|
||||||
return student_batch_strength
|
return student_batch_strength
|
||||||
|
|
||||||
def get_student_attendance(student_batch, date):
|
def get_student_attendance(student_batch, date):
|
||||||
|
|||||||
Reference in New Issue
Block a user