// Fusion Accounting - Journal Report Filters Patch
// Copyright (C) 2026 Nexa Systems Inc.

import { patch } from "@web/core/utils/patch";
import { AccountReportFilters } from "@fusion_accounting/components/account_report/filters/filters";

/**
 * Patches AccountReportFilters to add journal-specific extra options
 * filter visibility when the journal report is active.
 */
patch(AccountReportFilters.prototype, {
    get hasExtraOptionsFilter() {
        return super.hasExtraOptionsFilter || "show_payment_lines" in this.controller.options;
    },
});
