[minor][fix] rename attribute from amount to components

This commit is contained in:
Saurabh 2016-07-27 12:10:21 +05:30
parent 593d2e3146
commit 4bc0f7d105

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