Fixed period end date if year starts in the middle of the month

This commit is contained in:
Nabin Hait 2016-12-09 15:08:44 +05:30
parent 76a8508d2b
commit b00df641e0

View File

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