[GNC] Inconsistent meanings of "AsOfDate"?

Hong Xu hong at topbug.net
Mon Jun 14 20:09:03 EDT 2021


I'm checking out the APIs of GnuCash. In xaccAccountGetReconciledBalanceAsOfDate, AsOfDate seems to mean ON OR BEFORE the date:

    https://github.com/Gnucash/gnucash/blob/7fe78e7017b3cb397e6a2f5a63c56e1933521a68/libgnucash/engine/Account.cpp#L3572

In xaccAccountGetBalanceAsOfDate, AsOfDate seems to mean BEFORE the date:

    https://github.com/Gnucash/gnucash/blob/7fe78e7017b3cb397e6a2f5a63c56e1933521a68/libgnucash/engine/Account.cpp#L3535

I'm wondering whether I misunderstood something, or this is an oversight, or this is completely intended and has always been so?

Thanks,
Hong


More information about the gnucash-user mailing list