*** no comment ***
This commit is contained in:
parent
42f10c4fb4
commit
691c29a696
1 changed files with 12 additions and 12 deletions
24
ledger.texi
24
ledger.texi
|
|
@ -3022,7 +3022,7 @@ specifiers:
|
||||||
$20.00 ; currency: twenty US dollars
|
$20.00 ; currency: twenty US dollars
|
||||||
40 AAPL ; commodity: 40 shares of Apple stock
|
40 AAPL ; commodity: 40 shares of Apple stock
|
||||||
60 DM ; currency: 60 Deutsch Mark
|
60 DM ; currency: 60 Deutsch Mark
|
||||||
£50 ; currency: 50 British pounds
|
£50 ; currency: 50 British pounds
|
||||||
50 EUR ; currency: 50 Euros (or use appropriate symbol)
|
50 EUR ; currency: 50 Euros (or use appropriate symbol)
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
|
@ -3520,16 +3520,16 @@ To view balances without any virtual balances factored in, using the
|
||||||
@node Automated transactions, Using Emacs to Keep Your Ledger, Virtual transactions, Keeping a ledger
|
@node Automated transactions, Using Emacs to Keep Your Ledger, Virtual transactions, Keeping a ledger
|
||||||
@section Automated transactions
|
@section Automated transactions
|
||||||
|
|
||||||
As a Bahá'í, I need to compute Huqúqu'lláh whenever I acquire assets.
|
As a Bahá'í, I need to compute Huqúqu'lláh whenever I acquire assets.
|
||||||
It is similar to tithing for Jews and Christians, or to Zakát for
|
It is similar to tithing for Jews and Christians, or to Zakát for
|
||||||
Muslims. The exact details of computing Huqúqu'lláh are somewhat
|
Muslims. The exact details of computing Huqúqu'lláh are somewhat
|
||||||
complex, but if you have further interest, please consult the Web.
|
complex, but if you have further interest, please consult the Web.
|
||||||
|
|
||||||
Ledger makes this otherwise difficult law very easy. Just set up an
|
Ledger makes this otherwise difficult law very easy. Just set up an
|
||||||
automated transaction at the top of your ledger file:
|
automated transaction at the top of your ledger file:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
; This automated entry will compute Huqúqu'lláh based on this
|
; This automated entry will compute Huqúqu'lláh based on this
|
||||||
; journal's transactions. Any that match will affect the
|
; journal's transactions. Any that match will affect the
|
||||||
; Liabilities:Huququ'llah account by 19% of the value of that
|
; Liabilities:Huququ'llah account by 19% of the value of that
|
||||||
; transaction.
|
; transaction.
|
||||||
|
|
@ -3542,19 +3542,19 @@ This automated transaction works by looking at each transaction in the
|
||||||
ledger file. If any match the given value expression, 19% of the
|
ledger file. If any match the given value expression, 19% of the
|
||||||
transaction's value is applied to the @samp{Liabilities:Huququ'llah}
|
transaction's value is applied to the @samp{Liabilities:Huququ'llah}
|
||||||
account. So, if $1000 is earned from @samp{Income:Salary}, $190 is
|
account. So, if $1000 is earned from @samp{Income:Salary}, $190 is
|
||||||
added to @samp{Liabilities:Huqúqu'lláh}; if $1000 is spent on Rent,
|
added to @samp{Liabilities:Huqúqu'lláh}; if $1000 is spent on Rent,
|
||||||
$190 is subtracted. The ultimate balance of Huqúqu'lláh reflects how
|
$190 is subtracted. The ultimate balance of Huqúqu'lláh reflects how
|
||||||
much is owed in order to fulfill one's obligation to Huqúqu'lláh.
|
much is owed in order to fulfill one's obligation to Huqúqu'lláh.
|
||||||
When ready to pay, just write a check to cover the amount shown in
|
When ready to pay, just write a check to cover the amount shown in
|
||||||
@samp{Liabilities:Huququ'llah}. That entry would look like:
|
@samp{Liabilities:Huququ'llah}. That entry would look like:
|
||||||
|
|
||||||
@smallexample
|
@smallexample
|
||||||
2003/01/01 (101) Baha'i Huqúqu'lláh Trust
|
2003/01/01 (101) Baha'i Huqúqu'lláh Trust
|
||||||
Liabilities:Huququ'llah $1,000.00
|
Liabilities:Huququ'llah $1,000.00
|
||||||
Assets:Checking
|
Assets:Checking
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
That's it. To see how much Huqúq is currently owed based on your
|
That's it. To see how much Huqúq is currently owed based on your
|
||||||
ledger entries, use:
|
ledger entries, use:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
|
|
@ -3562,7 +3562,7 @@ ledger balance Liabilities:Huquq
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
This works fine, but omits one aspect of the law: that Huquq is only
|
This works fine, but omits one aspect of the law: that Huquq is only
|
||||||
due once the liability exceeds the value of 19 mithqáls of gold (which
|
due once the liability exceeds the value of 19 mithqáls of gold (which
|
||||||
is roughly 2.22 ounces). So what we want is for the liability to
|
is roughly 2.22 ounces). So what we want is for the liability to
|
||||||
appear in the balance report only when it exceeds the present day
|
appear in the balance report only when it exceeds the present day
|
||||||
value of 2.22 ounces of gold. This can be accomplished using the
|
value of 2.22 ounces of gold. This can be accomplished using the
|
||||||
|
|
@ -3573,7 +3573,7 @@ ledger -Q -t "/Liab.*Huquq/?(a/P@{2.22 AU@}<=@{-1.0@}&a):a" -s bal liab
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
With this command, the current price for gold is downloaded, and the
|
With this command, the current price for gold is downloaded, and the
|
||||||
Huqúqu'lláh is reported only if its value exceeds that of 2.22 ounces
|
Huqúqu'lláh is reported only if its value exceeds that of 2.22 ounces
|
||||||
of gold. If you wish the liability to be reflected in the parent
|
of gold. If you wish the liability to be reflected in the parent
|
||||||
subtotal either way, use this instead:
|
subtotal either way, use this instead:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue