Following up.. here's how a PTA user might model your example:
2026-01-01 issue bonds, face value 1000, sold at a 5% discount
liabilities:bonds payable -1000
liabilities:bonds payable:discount 50
assets:cash 950
2026-12-31 amortise part of the discount as interest expense
liabilities:bonds payable:discount -10
expenses:interest 10
$ hledger bs
Balance Sheet 2026-12-31
|| 2026-12-31
====================================++============
Assets ||
------------------------------------++------------
assets:cash || 950
------------------------------------++------------
|| 950
====================================++============
Liabilities ||
------------------------------------++------------
liabilities:bonds payable || 1000
liabilities:bonds payable:discount || -40
------------------------------------++------------
|| 960
...
(This particular report shows all the liability signs flipped, for presentation purposes.
The discount balance is 40 internally, but displayed as -40.)
Like your example, mine uses a separate contra account for the discount.
The only difference is notation: where you'd write a negative credit, we write a positive amount (in effect a debit).
But essentially no information has been lost; the report still comes out right.
This PTA app does not track "contra" as a first class property of either the amount or the account.
Though, it's evident that the discount balance is contra because it has the opposite sign to the norm for a liability account.
This app doesn't enforce that automatically, but we could, by declaring a rule:
(the rule tests the internal balance, +40 here, not the sign-flipped display balance, so <0 would catch a wrong balance.)
Accounting knowledge still matters; recording a bond discount correctly requires knowing that the discount exists,
how it's amortized etc. Signed numbers alone don't supply that knowledge, but nor do Dr/Cr columns I think.
Like your example, mine uses a separate contra account for the discount. The only difference is notation: where you'd write a negative credit, we write a positive amount (in effect a debit). But essentially no information has been lost; the report still comes out right.
This PTA app does not track "contra" as a first class property of either the amount or the account. Though, it's evident that the discount balance is contra because it has the opposite sign to the norm for a liability account. This app doesn't enforce that automatically, but we could, by declaring a rule:
(the rule tests the internal balance, +40 here, not the sign-flipped display balance, so <0 would catch a wrong balance.)Accounting knowledge still matters; recording a bond discount correctly requires knowing that the discount exists, how it's amortized etc. Signed numbers alone don't supply that knowledge, but nor do Dr/Cr columns I think.