From 6ff2f395f51696ebd6e2e40d2570d3af5092ddfd Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 8 Nov 2018 12:30:44 +0530 Subject: [PATCH] fix(gle): Post gl entry for booking COGS from Sales Invoice even if grand_total is zero (#15825) --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 76de9c8efdf..065e32a76f2 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -589,9 +589,6 @@ class SalesInvoice(SellingController): def make_gl_entries(self, gl_entries=None, repost_future_gle=True, from_repost=False): auto_accounting_for_stock = erpnext.is_perpetual_inventory_enabled(self.company) - if not self.grand_total: - return - if not gl_entries: gl_entries = self.get_gl_entries()