def METHOD_NAME(filters=None):
    if filters is None:
        filters = {}
    filters = frappe._dict(filters)
    settings = frappe.get_cached_doc("GST Settings")
    if not settings.enable_e_invoice:
        frappe.throw(
            _("e-Invoice is not enabled for {}").format(filters.company),
            title=_("Invalid Filter"),
        )
    if not filters.from_date or not filters.to_date:
        frappe.throw(
            _(
                "From Date & To Date is mandatory for generating e-Invoice Summary"
                " Report"
            ),
            title=_("Invalid Filter"),
        )
    if filters.from_date > filters.to_date:
        frappe.throw(_("From Date must be before To Date"), title=_("Invalid Filter"))
    if not filters.get("company"):
        return
    e_invoice_applicability_date = get_e_invoice_applicability_date(filters, settings)
    if not e_invoice_applicability_date:
        frappe.throw(
            _("As per your GST Settings, e-Invoice is not applicable for {}.").format(
                filters.company
            ),
            title=_("Invalid Filter"),
        )
    if get_datetime(filters.from_date) < get_datetime(e_invoice_applicability_date):
        frappe.msgprint(
            _("As per your GST Settings, e-Invoice is applicable from {}.").format(
                e_invoice_applicability_date
            ),
            alert=True,
        )