- if formatdate(from_date, "YYYY") == formatdate(to_date, "YYYY"):
- label = formatdate(from_date, "YYYY")
- else:
- label = formatdate(from_date, "YYYY") + "-" + formatdate(to_date, "YYYY")
- else:
- label = formatdate(from_date, "MMM YY") + "-" + formatdate(to_date, "MMM YY")
- return label
- def get_data(
- company,
- root_type,
- balance_must_be,
- period_list,
- filters=None,
- accumulated_values=1,
- only_current_fiscal_year=True,
- ignore_closing_entries=False,
- ignore_accumulated_values_for_fy=False,
- total=True,