Building a Scalable Accounting Ledger
11–20 of 40 posts
Re: Building a Scalable Accounting Ledger
#12This claims 1 and -1 is confusing, then proceeds to use the confusion. Why not use the language of the problem domain? The rules are unambiguous. An increase in assets are a DR, increase in liabilities a CR, in income a CR, in expenses a DR, in owners equity a CR. Decreases the opposite. Using 1 and -1 is nonsensical because their meaning in mathematics is fixed, while as shown by the rules above, in accounting DR/CR…
Also, money is usually kept as integer of cents. It is clear, inambiguous and allows for other rounding rules that sometimes pop up in legislation.
Then use currency specific rounding rules and always defer to CLDR [0] when displaying.
1. https://cldr.unicode.org/translation/number-currency-formats...
Re: Building a Scalable Accounting Ledger
#13I don't really see how what is described is "scalable". With hundred thousandth of transactions, performing the sums will be expensive. And nothing ensure the safeness of the order of entries...
Re: Building a Scalable Accounting Ledger
#14Re: Building a Scalable Accounting Ledger
#15Why would you want to build your own accounting ledger from scratch? Accounting is a completely new domain for most engineers, and TigerBeetle ( https://tigerbeetle.com/ ) already solves this problem.
«The production release of TigerBeetle is imminent.»
Not putting money into this system any time soon in other words.
Re: Building a Scalable Accounting Ledger
#16I think the transactions table is misnamed. This is a table of posting legs. Which all must balance for a single transaction. I don't think you should get hung up on +ve-ve versus cr and Dr. When double entry was formalised negative numbers were not common and then thought errant. It is only in the eighteenth century it became normal. I enjoyed the entry. Note that you might you use different minimum fractions eg we…
Re: Building a Scalable Accounting Ledger
#17Earlier quoted context omitted.
Also, money is usually kept as integer of cents. It is clear, inambiguous and allows for other rounding rules that sometimes pop up in legislation.
Money exists outside us dollar and should be stored ideally a a composite of currency and decimal or just a decimal. Then use currency specific rounding rules and always defer to CLDR [0] when displaying. 1. https://cldr.unicode.org/translation/number-currency-formats...
Re: Building a Scalable Accounting Ledger
#18This claims 1 and -1 is confusing, then proceeds to use the confusion. Why not use the language of the problem domain? The rules are unambiguous. An increase in assets are a DR, increase in liabilities a CR, in income a CR, in expenses a DR, in owners equity a CR. Decreases the opposite. Using 1 and -1 is nonsensical because their meaning in mathematics is fixed, while as shown by the rules above, in accounting DR/CR…
Sales DR 100
Bank CR 100
while an annulled sales invoice is Sales CR -100
Bank DR -100
The point of using debit/credit vs +/- is just that, the ability to have correct account turnovers with corrections, and maybe some conventional understanding of what's an expense account in debit and what's a vendor account in credit.Re: Building a Scalable Accounting Ledger
#19This claims 1 and -1 is confusing, then proceeds to use the confusion. Why not use the language of the problem domain? The rules are unambiguous. An increase in assets are a DR, increase in liabilities a CR, in income a CR, in expenses a DR, in owners equity a CR. Decreases the opposite. Using 1 and -1 is nonsensical because their meaning in mathematics is fixed, while as shown by the rules above, in accounting DR/CR…
I'm sure I could put my mind to following those rules, but what's to be gained?
If 'assets' and 'income' are opposites, and 'income' and 'liabilities' are the same, then I'm just not going to bother. What if my income is paid in assets in the form of $1 bills? CR or DR?
And 'equity', Jesus is that a nebulous concept.
Re: Building a Scalable Accounting Ledger
#20Earlier quoted context omitted.
I think you think it's confusing only because you're not used to it. The two models are mathematically equivalent. The rules are unambiguous. Values which indicate capital are positive. Values which indicate ownership are negative. An increase in capital corresponds to an increase in ownership of said capital, which add up to zero. Perfectly balanced, as bookkeeping should be. I find CR DR to be more confusing than +…
I think where this would get confusing is that a positive number would have to decrease some accounts, but increase others, right?