fix: Error while booking deferred revenue

This commit is contained in:
Deepesh Garg 2021-06-24 14:14:46 +05:30
parent b4863bfa50
commit ca2e914715

View File

@ -263,6 +263,9 @@ def book_deferred_income_or_expense(doc, deferred_process, posting_date=None):
amount, base_amount = calculate_amount(doc, item, last_gl_entry, amount, base_amount = calculate_amount(doc, item, last_gl_entry,
total_days, total_booking_days, account_currency) total_days, total_booking_days, account_currency)
if not amount:
return
if via_journal_entry: if via_journal_entry:
book_revenue_via_journal_entry(doc, credit_account, debit_account, against, amount, book_revenue_via_journal_entry(doc, credit_account, debit_account, against, amount,
base_amount, end_date, project, account_currency, item.cost_center, item, deferred_process, submit_journal_entry) base_amount, end_date, project, account_currency, item.cost_center, item, deferred_process, submit_journal_entry)