[fix] Issue fixed in C-Form related to field renaming

This commit is contained in:
Nabin Hait 2015-06-11 16:56:36 +05:30
parent 5c7557914b
commit 804b4acb9b

View File

@ -54,7 +54,7 @@ class CForm(Document):
frappe.throw(_("Please enter atleast 1 invoice in the table"))
def set_total_invoiced_amount(self):
total = sum([flt(d.base_grand_total) for d in self.get('invoices')])
total = sum([flt(d.grand_total) for d in self.get('invoices')])
frappe.db.set(self, 'total_invoiced_amount', total)
def get_invoice_details(self, invoice_no):