fix: incorrect number of entries while making deferred revenue entry (#19473)

This commit is contained in:
rohitwaghchaure 2019-11-06 15:25:00 +05:30 committed by Nabin Hait
parent 01c19d3b93
commit e123ec6b45

View File

@ -174,6 +174,8 @@ def make_gl_entries(doc, credit_account, debit_account, against,
# GL Entry for crediting the amount in the deferred expense
from erpnext.accounts.general_ledger import make_gl_entries
if amount == 0: return
gl_entries = []
gl_entries.append(
doc.get_gl_dict({