Skip to content

fix(fiscal): calendar_year_offset: after does not shift FQ1's labeled calendar year #162

Description

@dvhthomas

Bug

With calendar_year_offset: after in frontmatter, fiscal-period literals like FQ1 still resolve as if the directive were before (the default). Either the after branch is unimplemented or it has no effect on the year label.

Repro

---
fiscal_year_starts: Feb 15
calendar_year_offset: after
---
a = Q1
b = FQ1

Expected

b = FQ1 resolves to FY 2027calendar_year_offset: after labels the fiscal year by the later of the two calendar years it spans (the FY that opens 2026-02-15 ends in calendar 2027 and is therefore FY 2027 under `after`).

Actual

FQ1 labels by the default `before` policy (FY 2026 in this repro), i.e. calendar_year_offset: after is a no-op.

Notes

Filed by the CalcMark Web editor maintainer; fix being investigated in parallel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions