From b00df641e0239981b7b0a1a18b491ec9e308c463 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 9 Dec 2016 15:08:44 +0530 Subject: [PATCH] Fixed period end date if year starts in the middle of the month --- erpnext/accounts/report/financial_statements.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/erpnext/accounts/report/financial_statements.py b/erpnext/accounts/report/financial_statements.py index e66d20eb4d..bc4a220faa 100644 --- a/erpnext/accounts/report/financial_statements.py +++ b/erpnext/accounts/report/financial_statements.py @@ -42,9 +42,6 @@ def get_period_list(from_fiscal_year, to_fiscal_year, periodicity): if to_date == get_first_day(to_date): # if to_date is the first day, get the last day of previous month to_date = add_days(to_date, -1) - else: - # to_date should be the last day of the new to_date's month - to_date = get_last_day(to_date) if to_date <= year_end_date: # the normal case