Re: double-entry bookkeeping unneeded?
- From: "topmind" <topmind@xxxxxxxxxxxxxxxx>
- Date: 28 Dec 2006 14:07:12 -0800
Thomas Gagne wrote:
topmind wrote:
Thomas Gagne wrote:The same--they're accounts.
topmind wrote:
Thomas Gagne wrote:Think of it as:
I've written multiple financial OLTP systems and can confidently sayThese are 4 *separate* transactions, aren't they? It is still:
there's no such thing as "john bill 5".
A transaction system must be able to record:
Check for $10.
Cash for $20.
Deposit to checking $15.
Payment to line-of-credit: $15.
A, B, 10.00
C, D, 20.00
E, F, 15.00
G, H, 15.00
A: $10
B: $20
C: $15
D: $15
What are the letters here? In my example, they were account codes, such
as "cash", "accounts payable", etc.
It is enough. In fact, its how accounting is done. 0 = debits +
<snip>
Isn't it: A = L + E rather than "= 0"? Summing to zero is not enough.
credits. If everything your accounting transaction does adds to 0,
you're in good shape. Money going into one account must come from
another account. Adding 100 to a credit account and adding 100 to a
debit account = 0.
There is no such thing as a "debit account" and "credit account".
Perhaps we are at a semantics snag.
Adding 100 to a debit account and subtracting 100
from a debit account also = 0. That's good, too.
Anyhow, a brainstormer at c2.com figured it out:
http://c2.com/cgi/wiki?AccountingModeling
Quote:
Assume Balance
I think I finally figured this out. It is a matter of what you do to
both sides. Example table:
From To Amt.
---- ---- -----
A001 E001 50.00
A002 L002 10.00
E003 L002 20.00
The letters of the account codes indicate what "kind" of account it is
(from "A=E+L"). This is not proposing some kind of actual letter coding
(HungarianNotation), but letter prefixing is merely used to simplify
the example. In practice the account table would track the kind, not a
letter prefix. This just makes the example more visual.
In the 50.00 transaction, the amount is assumed to be added to both
A001 and to E001. The equation is still balanced. Same with 10.00. Now
with the 20.00, it is assumed to be reducing E003 by 20 and increasing
L002 by 20. Thus, the "E + L" side stays the same in total, satisfying
the equation.
This technique "assumes balance". You cannot put a wrong combination
in, at least not in a technical sense (assuming valid account codes).
If the accounts are not the ones you intended, that is a data-entry
error on your part. But, it still balances dispite any such errors. You
cannot go wrong. Any "problems" encountered you can rightfully blame on
the data entry person. It dumps the responsibility on the user; that's
why I dig it.
This is the interpretation table I believe:
From To Arith.-Type
-- -- -----
A A -/+ (subtract value from "A-from" account and add it to
"A-to" account)
A E +/+
A L +/+
E A +/+
E E -/+
E L -/+
L A +/+
L E -/+
L L -/+
(end quote)
-T-
--
Visit <http://blogs.instreamfinancial.com/anything.php>
to read my rants on technology and the finance industry.
.
- Follow-Ups:
- Re: double-entry bookkeeping unneeded?
- From: Thomas Gagne
- Re: double-entry bookkeeping unneeded?
- References:
- Re: double-entry bookkeeping unneeded?
- From: Thomas Gagne
- Re: double-entry bookkeeping unneeded?
- From: topmind
- Re: double-entry bookkeeping unneeded?
- From: Thomas Gagne
- Re: double-entry bookkeeping unneeded?
- From: Doc O'Leary
- Re: double-entry bookkeeping unneeded?
- From: Thomas Gagne
- Re: double-entry bookkeeping unneeded?
- From: topmind
- Re: double-entry bookkeeping unneeded?
- From: Thomas Gagne
- Re: double-entry bookkeeping unneeded?
- From: topmind
- Re: double-entry bookkeeping unneeded?
- From: Thomas Gagne
- Re: double-entry bookkeeping unneeded?
- Prev by Date: Re: double-entry bookkeeping unneeded?
- Next by Date: What's the Criteria for Promoting a "Thing" to a Class
- Previous by thread: Re: double-entry bookkeeping unneeded?
- Next by thread: Re: double-entry bookkeeping unneeded?
- Index(es):
Relevant Pages
|