The version in ports is two patch versions behind and missing out on a handful of bug fixes.
(In reply to shadow53+freebsd from comment #0) Can you provide a patch ?
(In reply to Kurt Jaeger from comment #1) I could try. I haven't modified ports for FreeBSD before, so I'd have to go through the various docs. Also not sure how I'd go about testing my changes. So I'm willing, but it might take some time.
A commit references this bug: Author: danfe Date: Mon Jun 29 15:33:41 UTC 2020 New revision: 540780 URL: https://svnweb.freebsd.org/changeset/ports/540780 Log: - Update `finance/ledger' to version 3.2.1 - Hook provided test suite to our framework PR: 240241 Approved by: maintainer timeout Changes: head/finance/ledger/Makefile head/finance/ledger/distinfo head/finance/ledger/pkg-plist
Port had been updated to version 3.2.1 with ports r540780.