From 4bc0f7d105c8073cb3cb0d6ff01db804fbd949f1 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Wed, 27 Jul 2016 12:10:21 +0530 Subject: [PATCH] [minor][fix] rename attribute from amount to components --- erpnext/schools/doctype/fee_structure/fee_structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/schools/doctype/fee_structure/fee_structure.py b/erpnext/schools/doctype/fee_structure/fee_structure.py index b4fc279857..b71c507dd4 100644 --- a/erpnext/schools/doctype/fee_structure/fee_structure.py +++ b/erpnext/schools/doctype/fee_structure/fee_structure.py @@ -13,6 +13,6 @@ class FeeStructure(Document): 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