From 804b4acb9be21ab7e6ea574c22f1f2b868afc4d2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 11 Jun 2015 16:56:36 +0530 Subject: [PATCH] [fix] Issue fixed in C-Form related to field renaming --- erpnext/accounts/doctype/c_form/c_form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/c_form/c_form.py b/erpnext/accounts/doctype/c_form/c_form.py index 90647547fd..c14990ae73 100644 --- a/erpnext/accounts/doctype/c_form/c_form.py +++ b/erpnext/accounts/doctype/c_form/c_form.py @@ -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):