def METHOD_NAME(company, gst_accounts):
    docs_with_gst_account = frappe.get_all(
        "Journal Entry",
        filters={
            "company": company,
            "docstatus": 1,
            "account": ("in", gst_accounts),
            "company_gstin": ("is", "not set"),
        },
        pluck="name",
    )
    if not docs_with_gst_account:
        return
    company_gstins = get_gstin_list(company)
    if len(company_gstins) > 1:
        click.secho(
            "Multiple GSTINs found for company {0}. Please update Company GSTIN in Journal Entry manually to use GST Balance Report.".format(
                company
            ),
            fg="yellow",
        )
    journal_entries = [docname for docname in docs_with_gst_account]
    return _update_gstins_for_je(journal_entries, company_gstins[0])