GNOME Bugzilla – Bug 106383
feature request: close year end
Last modified: 2018-06-29 20:28:48 UTC
Most accounting programs let you "close" the previous year after a couple months into the new year. This can generally accomplished mechanically by replacing the transactions of that year with an "Opening Balance" that is dated the last day of the closed year (so it stays out of activity reports).
*** Bug 114607 has been marked as a duplicate of this bug. ***
*** Bug 116433 has been marked as a duplicate of this bug. ***
Created attachment 22956 [details] Example code from 2002 for (old) euro conversion druid which can be used as an example for a simple year's end closure
As already noted above: This attachment contains the old euro conversion druid which was used all over Europe in 2001/2002 year's end. It transfers all asset accounts to a (in this case) currency account, creates them anew and creates the correct transfers into the new accounts. If someone feels like starting a simple year's end closure druid in gnucash, this might be of some help. But of course the code is old.
*** Bug 152731 has been marked as a duplicate of this bug. ***
In 1.8.x there won't be such a feature. But the SVN code, the upcoming 1.9.x/2.0.0 version, already includes an experimental "Book closing" feature. However, this is very experimental and might therefore not yet be included in 2.0.0 but only in a later version of the 2.x series.
*** Bug 327661 has been marked as a duplicate of this bug. ***
The feature in SVN is still disabled because it hasn't been tested enough. OTOH the code is already there, see bug#342599.
*** Bug 376089 has been marked as a duplicate of this bug. ***
I tested book closing in svn 15656. It works fine for me.
Okay, the first pass of a simple book closing dialog is now in trunk and accessible under Tools -> Close Book. This is completely unrelated to the old book closing code that copies the book and creates a new file. This feature just zeroizes the Income and Expense accounts. It's committed as r16713.
Fencepost error fixed in r16714 to handle transactions on the closing date.
Okay, with r16715 as well, I think this is fully implemented, so I'm closing this. The feature will be in 2.3.x/2.4, but probably not get backported to 2.2. If it DOES get backported it will need r16713, 16714, and 16715.
Tested in r16761 and it works fine for me!
Actually the code was backported to branches/2.2 as of r16984 for GnuCash 2.2.4.
You might archive previous years by using a cli ledger, cf. <http://joyful.com/repos/ledger/doc/ledger/Archiving-previous-years.html#Archiving-previous-years>. ledger -f ledger.dat -b 2000 -e 2001 print > ledger-old.dat ledger -f ledger.dat -b 2002 print > x2 ledger -f ledger-old.dat equity > x1 cat x1 x2 > ledger-new.dat rm x1 x2 ledger -f ledger-new.dat xml > ledger.xml It can also write xml ledgers.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=106383. Please update any external references or bookmarks.