Esempio n. 1
0
#!/usr/local/bin/python2.5
import ledger
import sys

book = ledger.bankView(ledger.parseLedger(sys.stdin.read()))

if "-D" in sys.argv:
    report = ledger.dailyHistory
else:
    report = ledger.monthlyHistory

if "-r" in sys.argv:
    book = [t for t in book if t.isReconciled]


for month, balance in report(book, "asset:checking"):
    print "%10s %-15s" % (month, balance)

Esempio n. 2
0
#!/usr/local/bin/python2.5
import sys
from ledger import bankView, parseLedger

stream = sys.stdin

for entry in bankView(parseLedger(stream.read())):
    print entry
Esempio n. 3
0
#!/usr/local/bin/python2.4

import ledger
import sys

books = ledger.parseLedger(sys.stdin.read())

for item in ledger.transactionsOnly(books):
    if not item.effectOnAccount("asset:checking"): continue
    if not item.isReconciled:
        print item