commit
5bf4471981
6 changed files with 3876 additions and 99 deletions
5
doc/gendocs.sh
Executable file
5
doc/gendocs.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
echo ++++++++++++++++++++++++++
|
||||
makeinfo ledger3.texi
|
||||
echo ==========================
|
||||
texi2pdf ledger3.texi
|
||||
3841
doc/ledger3.texi
3841
doc/ledger3.texi
File diff suppressed because it is too large
Load diff
|
|
@ -1,54 +0,0 @@
|
|||
; -*- ledger -*-
|
||||
|
||||
N $
|
||||
|
||||
= /^Expenses:Books/
|
||||
(Liabilities:Taxes) -0.10
|
||||
|
||||
~ Monthly
|
||||
Assets:Bank:Checking $500.00
|
||||
Income:Salary
|
||||
|
||||
~ Yearly
|
||||
Expenses:Donations $100.00
|
||||
Assets:Bank:Checking
|
||||
|
||||
2004/05/01 * Checking balance
|
||||
Assets:Bank:Checking $1,000.00
|
||||
Equity:Opening Balances
|
||||
|
||||
2004/05/03=2004/05/01 * Investment balance
|
||||
Assets:Brokerage 50 AAPL @ $30.00
|
||||
Equity:Opening Balances
|
||||
|
||||
2004/05/14 * Páy dày
|
||||
Assets:Bank:Checking 500.00€
|
||||
Income:Salary
|
||||
|
||||
2004/05/14 * Another dày in which there is Páying
|
||||
Asséts:Bánk:Chécking:Asséts:Bánk:Chécking $500.00
|
||||
Income:Salary
|
||||
|
||||
2004/05/14 * Another dày in which there is Páying
|
||||
Русский язык:Активы:Русский язык:Русский язык $1000.00
|
||||
Income:Salary
|
||||
|
||||
tag foo
|
||||
|
||||
2004/05/27 Book Store
|
||||
Expenses:Books $20.00
|
||||
Expenses:Cards $40.00
|
||||
Expenses:Docs $30.00
|
||||
Liabilities:MasterCard
|
||||
|
||||
end tag
|
||||
|
||||
2004/05/27 (100) Credit card company
|
||||
; This is an xact note!
|
||||
; Sample: Value
|
||||
Liabilities:MasterCard $20.00
|
||||
; This is a posting note!
|
||||
; Sample: Another Value
|
||||
; :MyTag:
|
||||
Assets:Bank:Checking
|
||||
; :AnotherTag:
|
||||
|
|
@ -88,8 +88,8 @@ value_t report_statistics(call_scope_t& args)
|
|||
|
||||
out << " (";
|
||||
out.precision(2);
|
||||
out << (double((statistics.latest_post - statistics.earliest_post).days()) /
|
||||
double(statistics.posts_count)) << _(" per day)") << std::endl;
|
||||
out << (double(statistics.posts_count)/
|
||||
double((statistics.latest_post - statistics.earliest_post).days())) << _(" per day)") << std::endl;
|
||||
|
||||
out << _(" Uncleared postings: ");
|
||||
out.width(6);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
; -*- ledger -*-
|
||||
|
||||
= account =~ /^Income/
|
||||
= /^Income/
|
||||
(Liabilities:Tithe) 0.12
|
||||
|
||||
~ Monthly
|
||||
~ monthly in 2004
|
||||
Assets:Checking $500.00
|
||||
Income:Salary
|
||||
|
||||
|
|
|
|||
67
test/input/drewr3.dat
Normal file
67
test/input/drewr3.dat
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
; -*- ledger -*-
|
||||
|
||||
= /^Income/
|
||||
(Liabilities:Tithe) 0.12
|
||||
|
||||
;~ Monthly
|
||||
; Assets:Checking $500.00
|
||||
; Income:Salary
|
||||
|
||||
;~ Monthly
|
||||
; Expenses:Food $100
|
||||
; Assets
|
||||
|
||||
2010/12/01 * Checking balance
|
||||
Assets:Checking $1,000.00
|
||||
Equity:Opening Balances
|
||||
|
||||
2010/12/20 * Organic Co-op
|
||||
Expenses:Food:Groceries $ 37.50 ; [=2011/01/01]
|
||||
Expenses:Food:Groceries $ 37.50 ; [=2011/02/01]
|
||||
Expenses:Food:Groceries $ 37.50 ; [=2011/03/01]
|
||||
Expenses:Food:Groceries $ 37.50 ; [=2011/04/01]
|
||||
Expenses:Food:Groceries $ 37.50 ; [=2011/05/01]
|
||||
Expenses:Food:Groceries $ 37.50 ; [=2011/06/01]
|
||||
Assets:Checking $ -225.00
|
||||
|
||||
2010/12/28=2011/01/01 Acme Mortgage
|
||||
Liabilities:Mortgage:Principal $ 200.00
|
||||
Expenses:Interest:Mortgage $ 500.00
|
||||
Expenses:Escrow $ 300.00
|
||||
Assets:Checking $ -1000.00
|
||||
|
||||
2011/01/02 Grocery Store
|
||||
Expenses:Food:Groceries $ 65.00
|
||||
Assets:Checking
|
||||
|
||||
2011/01/05 Employer
|
||||
Assets:Checking $ 2000.00
|
||||
Income:Salary
|
||||
|
||||
2011/01/14 Bank
|
||||
; Regular monthly savings transfer
|
||||
Assets:Savings $ 300.00
|
||||
Assets:Checking
|
||||
|
||||
2011/01/19 Grocery Store
|
||||
Expenses:Food:Groceries $ 44.00
|
||||
Assets:Checking
|
||||
|
||||
2011/01/25 Bank
|
||||
; Transfer to cover car purchase
|
||||
Assets:Checking $ 5,500.00
|
||||
Assets:Savings
|
||||
; :nobudget:
|
||||
|
||||
2011/01/25 Tom's Used Cars
|
||||
Expenses:Auto $ 5,500.00
|
||||
; :nobudget:
|
||||
Assets:Checking
|
||||
|
||||
2011/01/27 Book Store
|
||||
Expenses:Books $20.00
|
||||
Liabilities:MasterCard
|
||||
|
||||
2011/12/01 Sale
|
||||
Assets:Checking:Business $ 30.00
|
||||
Income:Sales
|
||||
Loading…
Add table
Reference in a new issue