Merge pull request #5884 from saurabh6790/schools_fix
[minor][fix] rename attribute from amount to components
diff --git a/erpnext/schools/doctype/fee_structure/fee_structure.py b/erpnext/schools/doctype/fee_structure/fee_structure.py
index b4fc279..b71c507 100644
--- a/erpnext/schools/doctype/fee_structure/fee_structure.py
+++ b/erpnext/schools/doctype/fee_structure/fee_structure.py
@@ -13,6 +13,6 @@
def calculate_total(self):
"""Calculates total amount."""
self.total_amount = 0
- for d in self.amount:
+ for d in self.components:
self.total_amount += d.amount