mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 21:22:42 +01:00
@@ -118,7 +118,9 @@ def get_period(posting_date, filters):
|
|||||||
elif filters.range == "Monthly":
|
elif filters.range == "Monthly":
|
||||||
period = _(str(months[posting_date.month - 1])) + " " + str(posting_date.year)
|
period = _(str(months[posting_date.month - 1])) + " " + str(posting_date.year)
|
||||||
elif filters.range == "Quarterly":
|
elif filters.range == "Quarterly":
|
||||||
period = _("Quarter {0} {1}").format(str(((posting_date.month - 1) // 3) + 1), str(posting_date.year))
|
period = _("Quarter {0} {1}").format(
|
||||||
|
str(((posting_date.month - 1) // 3) + 1), str(posting_date.year)
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
year = get_fiscal_year(posting_date, company=filters.company)
|
year = get_fiscal_year(posting_date, company=filters.company)
|
||||||
period = str(year[2])
|
period = str(year[2])
|
||||||
|
|||||||
Reference in New Issue
Block a user