fix(accounts): codacy fixes

This commit is contained in:
Nabin Hait 2019-03-28 20:06:57 +05:30
parent 0a90ce5cf6
commit 86fb523ea7

View File

@ -139,8 +139,7 @@ def calculate_amount(doc, item, last_gl_entry, total_days, total_booking_days, a
def book_deferred_income_or_expense(doc, posting_date=None):
enable_check = "enable_deferred_revenue" \
if doc.doctype=="Sales Invoice" else "enable_deferred_expense"
last_gl_entry = False
end_date = None
def _book_deferred_revenue_or_expense(item):
start_date, end_date, last_gl_entry = get_booking_dates(doc, item, posting_date=posting_date)
if not (start_date and end_date): return