Merge pull request #5884 from saurabh6790/schools_fix

[minor][fix] rename attribute from amount to components
This commit is contained in:
Rushabh Mehta 2016-07-27 12:23:22 +05:30 committed by GitHub
commit 2af5dfa9cc

View File

@ -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