[GNC] Gnucash Close Books option

Christopher Lam christopher.lck at gmail.com
Tue Apr 20 21:21:48 EDT 2021


On Wed, 21 Apr 2021 at 01:15, Derek Atkins <derek at ihtfp.com> wrote:

> That is not how GnuCash does it.  GnuCash uses a real calendar and has no
> "special" dates in there.
>
> How it *did* it, initially, was to take the "default timestamp" of Dec 31
> and add one second to it.  This was because all posted times have a
> default timestamp of approximately noon.  So setting the closing
> transaction to one second later would assure it was the "last" transaction
> of the period.  This is how it was originally implemented, but it's
> probably been changed since then.
>

Now the timestamp is 10:59am the same as any other regular transaction[*]
but has an invisible CLOSING flag which ensures the xaccTransOrder will
always sort closing splits after regular splits in the register and
reports. The other rub is some reports (e.g. P & L) will filter out these
closing splits via description search for "Closing Entries" as well and I
wish to remove[**] this feature because all closing entries created in the
past 10 years or so will have the closing flag.

[*] which can be deleted, amended etc as desired
[**] I wonder if anyone objects? https://github.com/Gnucash/gnucash/pull/909


More information about the gnucash-user mailing list