From 7fa111de450c8ab342f10639cf5751fd04bb09db Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 17 Nov 2017 12:55:08 +0530 Subject: [PATCH] Update sales_invoice.py --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index ee01011c87..5c067fea3d 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -632,7 +632,7 @@ class SalesInvoice(SellingController): return gl_entries def make_customer_gl_entry(self, gl_entries): - grand_total = self.rounded_total or self.grand_total + grand_total = self.rounded_total or self.grand_total if self.get("payment_schedule"): for d in self.get("payment_schedule"): payment_amount_in_company_currency = flt(d.payment_amount * self.conversion_rate,