commit | 4bc0f7d105c8073cb3cb0d6ff01db804fbd949f1 | [log] [tgz] |
---|---|---|
author | Saurabh <saurabh6790@gmail.com> | Wed Jul 27 12:10:21 2016 +0530 |
committer | Saurabh <saurabh6790@gmail.com> | Wed Jul 27 12:10:21 2016 +0530 |
tree | 2c5056d47a517fc5a9197d10d87dc7b2c05b85f7 | |
parent | 593d2e31463a2c748d1fc0bb4864ede6f86fec05 [diff] |
[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