diff --git a/src/pages/accounting/AccountingReportsPage.tsx b/src/pages/accounting/AccountingReportsPage.tsx index a9aa559..17c719a 100644 --- a/src/pages/accounting/AccountingReportsPage.tsx +++ b/src/pages/accounting/AccountingReportsPage.tsx @@ -53,7 +53,6 @@ const FINANCIAL: ReportId[] = ["pnl", "balance-sheet", "cash-flow", "movement-of const GROUPS = [ { name: "Business Overview", reports: [ { id: "pnl" as ReportId, name: "Profit & Loss" }, - { id: "income-statement" as ReportId, name: "Income Statement" }, { id: "balance-sheet" as ReportId, name: "Balance Sheet" }, { id: "cash-flow" as ReportId, name: "Cash Flow Statement" }, { id: "movement-of-equity" as ReportId, name: "Movement of Equity" }, @@ -329,6 +328,7 @@ export default function AccountingReportsPage({ association }: { association?: { // Toggles const [showCodes, setShowCodes] = useState(false); const [showZero, setShowZero] = useState(false); + const [pnlMonthView, setPnlMonthView] = useState(false); const { data: companyMeta } = useQuery({ queryKey: ["company-fy", cid], @@ -469,7 +469,8 @@ export default function AccountingReportsPage({ association }: { association?: { }, [active, arOpen, data, flat, structured, cur, activeMeta.name]); // Reports whose export is handled internally (own PDF/CSV buttons inside the component) - const hasOwnExport = active === "trial-balance" || active === "general-ledger" || active === "budget-vs-actuals" || active === "income-statement" + const hasOwnExport = active === "trial-balance" || active === "general-ledger" || active === "budget-vs-actuals" + || (active === "pnl" && pnlMonthView) || active === "ar-aging-property" || active === "prepaid-homeowners" || active === "cash-disbursement"; const anyExportable = !!(structured || flat || exportFlat); @@ -646,6 +647,9 @@ export default function AccountingReportsPage({ association }: { association?: {