> On Apr 28, 2020, at 7:27 AM, Geert Janssens <geert.gnuc...@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 _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Adrien Monteleone
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Phil Longstaff
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Adrien Monteleone
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Christopher Lam
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Adrien Monteleone
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Phil Longstaff
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Christopher Lam
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Geert Janssens
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Adrien Monteleone
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Geert Janssens
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 John Ralls
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Geert Janssens
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Frank H. Ellenberger
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 John Ralls
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Adrien Monteleone
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 David Carlson
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Geert Janssens
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Christopher Lam
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Phil Longstaff
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 John Ralls
- Re: [GNC-dev] About budgets in 3.8, 3.9 and 3.10 Christopher Lam