fix(gle): Post gl entry for booking COGS from Sales Invoice even if grand_total is zero (#15825)

This commit is contained in:
Nabin Hait 2018-11-08 12:30:44 +05:30 committed by Rushabh Mehta
parent ccff3e2aec
commit 6ff2f395f5

View File

@ -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()