Commit graph

192 commits

Author SHA1 Message Date
Martin Michlmayr
882937ece2
Remove references to Bugzilla 2018-06-01 13:27:49 +02:00
Alexis Hildebrandt
c6c328c011 [misc] Update year in copyright notice to 2017
[ci skip]
2018-01-27 15:30:53 +08:00
Alexis Hildebrandt
9432937f5c [misc] Update year in copyright notice to 2017
[ci skip]
2017-01-05 12:56:35 +01:00
Jonas Bernoulli
acfc97d6d3 Require correct feature
In `ledger-matching.el' require `ledger-report' instead of `ldg-report'.
That library was renamed like all the others.
2016-02-06 02:35:36 +01:00
Alexis Hildebrandt
9892878ca1 [misc] Update year in copyright notice to 2016
[ci skip]
2016-01-02 12:09:54 +01:00
Mario Lang
5a40af58c6 Update URL of iso4127 fetcher. 2015-11-29 10:15:33 +01:00
thdox
8162cc783d [emacs] C-x h M-x untabify RET
C-x h M-x indent-region RET

[ci skip]
2015-02-10 21:42:50 +01:00
Alexis Hildebrandt
1dd9dcaab4 Bump copyright notice to 2015
The following script makes it a no-brainer:
% NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \
  | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
2014-12-27 11:24:55 +01:00
thdox
ecbf5a0ba3 Restore --raw that I erroneously deleted 2014-06-22 16:17:59 +02:00
thdox
98243ab086 Add latest contributed options to bash completion 2014-06-22 15:35:21 +02:00
Alexis Hildebrandt
1e5cf0c924 Add script to generate commodities from ISO 4217
[ci skip]
2014-05-08 12:15:47 +02:00
Johann Klähn
4e997836c3 remove contrib/vim and point to new location 2013-12-16 18:27:24 +01:00
Bradley M. Kuhn
9dc352ad6f Some of the totals rounded via -V cause rounding more than one penny.
Use two cents as to test if the amounts are close enough.
2013-07-14 15:09:52 -04:00
Bradley M. Kuhn
ce1c3e8747 Add Fraud Receivable to Accrued accounts.
Funds lots and expected recoverable from Fraud are in an account called
"Accrued:Fraud Receivable".  In this report, show this along with the total
of Loan Receivables.
2013-07-14 15:07:29 -04:00
Bradley M. Kuhn
8908b03234 Use "ledger accounts" command rather than the '-F "%150A\n" reg' report solution.
Ledger has had (probably for some time) an "accounts" command that will list
all the accounts from all transactions meeting the other criteria set on the
command line.  That's really what we're looking for here when we build this
chart of accounts, and thus that should be used.

Note that this corrects a subtle bug that wasn't apparent with the old
solution.  With the '-F "%150A\n" reg' solution, accounts that balanced out
to zero for period (e.g., accrual accounts that were emptied during in the
month) did not show up on the reports.  This bug that I didn't know I had
here is thus now fixed by switching to the "accounts" report.
2013-07-12 14:26:29 -04:00
Bradley M. Kuhn
524fdf7aba The $formattedBeginDate should derive from $beginDate, not $endDate (duh!) 2013-07-10 17:14:26 -04:00
thdox
ff64f97d16 Change format to "%Y-%m-%d", as described in documentation, and as coded
in report.h
2013-06-02 17:34:35 +02:00
John Wiegley
e690374b45 Add contrib/compilation-ledger.el 2013-05-19 02:14:27 -05:00
Bradley M. Kuhn
dc333b9f24 Type lists need to change along with the groupings. 2013-05-10 12:16:07 -04:00
Bradley M. Kuhn
a2ab6a8a60 Chart of accounts change s/Enforcement/Compliance/, but make backwards compatible. 2013-05-10 12:16:07 -04:00
thdox
88e3a7cc4e Add bash completion for ledger 2013-04-22 22:47:38 +02:00
Bradley M. Kuhn
88667ca0c5 Comment to expound more on what it means for <Adjustment> entries to be ignored by these reports.
Loïc Dachary <loic@dachary.org>, during patch review, pondered whether the
ignoring of <Adjustment> by these scripts could ever be used to hide funds,
ala the movies Superman III and Office Space.

After discussion, we both concluded that it would not be possible to hide
funds merely with this report.  Such hiding would have to also dig into the
main Ledger codebase and muck with how it handles auto-generated <Adjustment>
entries.
2013-02-20 08:10:27 -05:00
Bradley M. Kuhn
a8403eac53 Include better explanation of what this report is for in the comments. 2013-02-20 07:59:11 -05:00
Bradley M. Kuhn
e606dfd72f Fix typo in error output.
HT Loïc Dachary <loic@dachary.org>, who noticed this.
2013-02-20 07:49:50 -05:00
Bradley M. Kuhn
b378359f5f Use a Math::BigFloat() rather than a regular float for Adjustment comparison.
Based on patch review by Loïc Dachary <loic@dachary.org>, we discovered that
this script inconsistently used 0.02 as a float when comparing against
numbers from the Math::BigFloat() package.  While there were no known bugs
related to this (presumably the 0.02 got coerced into a BigFloat (or
vice-versa) and compared properly), this change nevertheless normalizes to
use of a BigFloat for comparison.
2013-02-20 07:49:50 -05:00
Bradley M. Kuhn
c2bc7b6b9e Equity and Adjustment accounts should not appear in these reports at all.
There were a few spots where they were still sneaking in.
2013-02-19 09:13:05 -05:00
Bradley M. Kuhn
cbdffb9a41 Catch a few additional accounts under Conference RBI category. 2013-02-18 14:36:39 -05:00
Bradley M. Kuhn
8fa91dcb31 Remove spurious print statement. 2013-02-18 14:20:15 -05:00
Bradley M. Kuhn
77827f9c80 Subtotaling of BRANCH DEPOSITs.
The auditors seem to like to see the check deposits made to be subtotaled, so
that's done here.  I attempted to aid this by using a --sort and/or
--sort-xacts option (or combo thereof) on the ledger command line, but this
didn't work as expected.  I opened a bug in ledger about this:
   http://bugs.ledger-cli.org/show_bug.cgi?id=901
2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
a08dd787de Remove extra newline 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
aea1445b04 Rework report to be just two files (disbursements and receipts).
Ensure that tagged linked files appear for all lines.
2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
e87b6abb7f Sort solution by date in output. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
afe912f163 Searching is better when you can set the begin date, end date and then go back from begin date. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
11639785bb Improve spreadsheet and debugging output. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
7d04b92ad1 This could be for any period, not just the FY. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
ccd0685b6d Correct account names due to renaming of Conference accounts in chart of accounts. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
86b2043042 Remove output of TXT files. CSV output is adequate. 2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
c0206418f7 Correct regular expression for account queries to avoid inclusion of sub-accounts.
The previous queries had a bug whereby an account in the form "A:B" would
include all transactions for sub accounts such as "A:B:C".

That's not the intended effect.  Entries should appear in the lowest level
account, and not in their parent.

The regular expression now is anchored at start and finish in both queries to
ensure this works correctly.
2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
9fcdfc893c Support for title: field, to name sheets in the ODS file.
If "title:SOMETHING" occurs in the CSV file, use SOMETHING as the title of
the sheet.
2013-02-18 14:08:46 -05:00
Bradley M. Kuhn
8ebb54638c Start search from date: easy way to resume searches.
Instead of always starting a search from the end date, allow a CLI option
that is the data to use for the start of searching (back from the end date).
This is useful when resuming a search (since they take a long time).
2013-02-18 14:08:45 -05:00
Bradley M. Kuhn
94094ce365 Finish reporting details for STDOUT; change command line arg to bank balance.
Report in CSV now goes to STDOUT.

The command line argument that was the difference to seek is now the bank
balance.
2013-02-18 14:08:45 -05:00
Bradley M. Kuhn
0530b729e2 Default to brute-force subset sum solution.
The dynamic programming version of the subset sum problem required far too
much RAM for larger bank balances.  Meanwhile, the brute-force is not to bad
now that the loop tries the closer dates *first*.
2013-02-18 14:08:45 -05:00
Bradley M. Kuhn
d13ab6a402 Support for a list of known checksums of files already copied over.
For the times when we want to make shorter names of files by doing copies of
the documentation files for hyperlink usage, allow input of a new command
line option which is a list in the form of:

  PATH_TO_FILE : sha25sum

so that those files can be used rather than new copies made.
2013-02-18 14:08:45 -05:00
Bradley M. Kuhn
18d2867a63 Rename the function to note it's the dynamic programming one. 2013-02-18 14:08:45 -05:00
Bradley M. Kuhn
b1b807fcfa Loop through to build smaller sets when testing.
Usually, transactions that didn't appear are nearby in date to the statement
date.  This loop cycles through.  Overall, this would take longer to find a
solution, but since most solutions are in the early dates "back" from the
statement date, this will probably be faster in typical cases.
2013-02-18 14:08:45 -05:00
Bradley M. Kuhn
6962fc4c57 Basic implementation probably correct, but needs much RAM.
This is the basic implementation but for large numbers, it needs a *LOT*
of RAM.
2013-02-18 14:08:45 -05:00
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
Bradley M. Kuhn
34a6279baa Add --single-file-directory option: create single directory with all linked files.
This new option copies all files to the directory specified as an argument
to the --single-file-directory option, and also creates dummy shorter
filenames for the files.

This feature was implemented to get around a problem found when zip'ing
the spreadsheet up with the supporting files for users on Windows.  The
Windows users encounter the error 0x80010135 related to some of the ZIP
files going beyond the maximum path name length on windows.  Apparently,
opening ZIP files with long path names just doesn't work on Microsoft
systems.  I've suggested our accountants switch to a Free Software
operating system, but they declined.
2013-02-18 14:08:44 -05:00
John Wiegley
e1da55d1af Merge pull request #90 from rladams/next
Next
2013-01-29 12:04:40 -08:00
Bradley M. Kuhn
9d78dc6395 The restricted fund report has been almost entirely rewritten.
The previous version was somewhat confusing anyway. Now it builds a
relatively clear spreadsheet of all categories.  It also now outputs CSV.
2013-01-06 19:48:22 -05:00