ledger/contrib
Bradley M. Kuhn b214a2db5b Began work on script to reconcile bank accounts.
The goal here is to take as input an account, a monthly balance amount
that appears on a bank statement, and the date of that bank statement and
output the list of transactions that likely weren't cleared properly as of
that date that caused the balance in the accounts to fail to match the
balance that appeared on the statement.

Note that determining this answer requires solving the known NP-Complete
problem called the subset sum problem.  There is a known pseudo-polynomial
dynamic programming solution to this problem, but it's still exponential
in the size of the numbers you have to balance.

So, if you have *big* account balances, this will make take quite a while
to run.  For smaller accounts, the pseudo-polynomial solution might be
helpful.  (BTW, the wikipedia entry on the subset sum problem isn't, at
the time of this commit, particularly good, but it's "good enough" to give
you a sense of what the subset sum problem is:
    http://en.wikipedia.org/wiki/Subset_sum_problem

)

I originally wrote the subset sum problem solution implementation here:
  2dca069d81

The code is just cut and pasted in here with some minor modifications.

This rest of this first commit just has that aforementioned paste, plus the
beginnings of the CLI and query to run to get the proper entries.
2013-02-18 14:08:44 -05:00
..
non-profit-audit-reports Began work on script to reconcile bank accounts. 2013-02-18 14:08:44 -05:00
raw Moved over some shortcut functions 2012-10-15 13:41:20 -05:00
vim vim. small fixes for syntax highlighting 2012-04-22 16:03:51 +02:00
bal Moved scripts from contrib/scripts/ into contrib/ 2009-02-23 14:04:50 -04:00
bal-huquq Moved scripts from contrib/scripts/ into contrib/ 2009-02-23 14:04:50 -04:00
CSVReader.cs Added code for the csv2ledger parser that I use personally. 2008-08-08 19:21:55 -04:00
entry The Great Renaming, Part II 2009-02-23 19:07:30 -04:00
getquote-uk.py Added new contrib/getquote-uk.py script 2009-02-23 14:35:04 -04:00
getquote.pl Restored --download, although not done yet 2009-06-24 02:44:07 +01:00
ledger-du The Great Renaming, Part II 2009-02-23 19:07:30 -04:00
Makefile Added code for the csv2ledger parser that I use personally. 2008-08-08 19:21:55 -04:00
ParseCcStmt.cs The Great Renaming, Part II 2009-02-23 19:07:30 -04:00
README Moved scripts from contrib/scripts/ into contrib/ 2009-02-23 14:04:50 -04:00
repl.sh Added a repl.sh sample script to the contrib/ directory. 2009-02-04 20:52:40 -04:00
report Moved scripts from contrib/scripts/ into contrib/ 2009-02-23 14:04:50 -04:00
tc Moved scripts from contrib/scripts/ into contrib/ 2009-02-23 14:04:50 -04:00
ti Moved scripts from contrib/scripts/ into contrib/ 2009-02-23 14:04:50 -04:00
to Moved scripts from contrib/scripts/ into contrib/ 2009-02-23 14:04:50 -04:00
trend Moved scripts from contrib/scripts/ into contrib/ 2009-02-23 14:04:50 -04:00

This scripts are provided just to give some ideas.  They probably need
to be modified to better suit your environment.  Beware!

John