mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: Period list fixes in financial statements (#22679)
This commit is contained in:
@@ -8,6 +8,7 @@ from __future__ import unicode_literals
|
|||||||
import re
|
import re
|
||||||
from past.builtins import cmp
|
from past.builtins import cmp
|
||||||
import functools
|
import functools
|
||||||
|
import math
|
||||||
|
|
||||||
import frappe, erpnext
|
import frappe, erpnext
|
||||||
from erpnext.accounts.report.utils import get_currency, convert_to_presentation_currency
|
from erpnext.accounts.report.utils import get_currency, convert_to_presentation_currency
|
||||||
@@ -42,7 +43,7 @@ def get_period_list(from_fiscal_year, to_fiscal_year, periodicity, accumulated_v
|
|||||||
start_date = year_start_date
|
start_date = year_start_date
|
||||||
months = get_months(year_start_date, year_end_date)
|
months = get_months(year_start_date, year_end_date)
|
||||||
|
|
||||||
for i in range(months // months_to_add):
|
for i in range(math.ceil(months / months_to_add)):
|
||||||
period = frappe._dict({
|
period = frappe._dict({
|
||||||
"from_date": start_date
|
"from_date": start_date
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user