[GNC-dev] About budgets in 3.8, 3.9 and 3.10
John Ralls
jralls at ceridwen.us
Tue Apr 28 12:35:16 EDT 2020
> On Apr 28, 2020, at 7:27 AM, Geert Janssens <geert.gnucash at kobaltwit.be> wrote:
>
> However numbers are not just meant for displaying, one needs to do calculations on them as
> well. And at that point signs will matter. Whether a certain number increase or decrease your
> balance is a matter of sign.
Maybe we should change that: Instead of using operator+() and operator-() we could have a balance class with functions credit() and debit(). It would have subclasses AssetBalance, LiabilityBalance, and EquityBalance (or maybe follow the European model and just do ActiveBalance and PassiveBalance) whose overrides of credit() and debit() would do The Right Thing.
Regards,
John Ralls
More information about the gnucash-devel
mailing list