ledger / ledger Goto Github PK
View Code? Open in Web Editor NEWDouble-entry accounting system with a command-line reporting interface
Home Page: https://www.ledger-cli.org
License: Other
Double-entry accounting system with a command-line reporting interface
Home Page: https://www.ledger-cli.org
License: Other
Since Ilm behind a corp firewall, my attempt to clone ledger produced the following:
It seemed to be working at first.
bash>git clone http://github.com/jwiegley/ledger.git
Initialized empty Git repository in /home/dias/Mystuff/Emacs/downloads/ledger/.git/
got f35bc93
walk f35bc93
got 9592bac
got a0f4df2
Getting alternates list for http://github.com/jwiegley/ledger.git
Getting pack list for http://github.com/jwiegley/ledger.git
Getting index for pack c04ce24d7b726a755985361d0b4dc55c415d63d6
Getting index for pack 70a37bee30c2b87679c854c369b50424c4d44ebc
got 1695a64385e8c0bb51b12674d7fcd6c7c931faf2
got 3121992e69cc64868abdedcee56521f23421c430
got 6b2964d
Getting pack c04ce24d7b726a755985361d0b4dc55c415d63d6
which contains ba21d2e
error: Unable to get pack file http://github.com/jwiegley/ledger.git/objects/pack/pack-c04ce24d7b726a755985361d0b4dc55c415d63d6.pack
The requested URL returned error: 502
error: Unable to find ba21d2e under http://github.com/jwiegley/ledger.git
Cannot obtain needed object ba21d2e
while processing commit f35bc93.
fatal: Fetch failed.
bash>
It works fine without --flat, but not with.
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#189
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#173
From: John Wiegley (@jwiegley)
CC: unknown user
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#171
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#164
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#192
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#187
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#178
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#177
From: John Wiegley (@jwiegley)
I have a budget transaction like this:
~ Monthly
Expenses:Auto:Fuel $ 120.00
Expenses:Food:Out $ 100.00
Expenses:Food:Groceries $ 350.00
Assets
It doesn't, however, seem to take effect with --budget
:
% ledger bal --p this --flat auto:fuel food:out
$ 67.15 Expenses:Auto:Fuel
$ 18.30 Expenses:Food:Out
--------------------
$ 85.45
% ledger bal --p this --budget --flat auto:fuel food:out
$ 67.15 Expenses:Auto:Fuel
$ 18.30 Expenses:Food:Out
--------------------
$ 85.45
% ledger --version | head -1
Ledger next-0-g752677e, the command-line accounting tool
Incidentally, it would be great to see something like:
% ledger bal --p this --budget auto:fuel food:out
$ 67.15 $ 120.00 $ -52.85 56% Expenses:Auto:Fuel
$ 18.30 $ 100.00 $ -81.70 18% Expenses:Food:Out
$ 85.45 $ 220.00 $ -134.55 39% Total
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#161
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#170
From: John Wiegley (@jwiegley)
The quantity is printed slightly wrong:
% cat <<EOF | ledger -f - print
2009/10/09 Foo
Expenses:Bar $ 10.00
Expenses:Baz $ 12.00
Assets:Checking $ -22.00
EOF
2009/10/09 Foo
Expenses:Bar $ 10.00
Expenses:Baz $ 12.00
Assets:Checking $ -22.00
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#188
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#160
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#181
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#190
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#158
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#174
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#180
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#163
From: John Wiegley (@jwiegley)
./acprep update acprep: INFO: Invoking primary phase: update acprep: INFO: Executing phase: update acprep: INFO: Executing phase: pull Already up-to-date. acprep: INFO: Executing phase: submodule acprep: INFO: Executing phase: make acprep: INFO: Executing phase: config acprep: INFO: Executing phase: submodule acprep: INFO: Executing phase: autoconf acprep: INFO: Executing phase: configure acprep: INFO: ./configure must be run because Makefile does not exist acprep: INFO: Looking for Boost in /usr/local/lib... acprep: INFO: Looking for Boost in /opt/local/lib... acprep: INFO: Looking for Boost in /sw/lib... acprep: INFO: Looking for Boost in /usr/lib... acprep: INFO: Found a Boost library: libboost_regex-gcc41-1_34_1.so.1.34.1 acprep: INFO: Found Boost suffix => -gcc41-1_34_1 acprep: INFO: Boost was found here: acprep: INFO: BOOST_HOME => /usr acprep: INFO: BOOST_SUFFIX => -gcc41-1_34_1 acprep: INFO: Noticing include directory => /usr/local/include acprep: INFO: Noticing include directory => /usr/include/boost acprep: INFO: Noticing library directory => /usr/local/lib acprep: INFO: Noticing library directory => /usr/lib acprep: INFO: System type is => Linux acprep: INFO: Setting up build flavor => debug
...
configure: error: in `/var/www/dev/ledger': configure: error: "Could not find boost_regex library (set CPPFLAGS and LDFLAGS?)" See `config.log' for more details. acprep: ERROR: Execution failed: sh configure CPPFLAGS=-isystem /usr/local/include -isystem /usr/include/boost CXXFLAGS=-fpch-deps -Wconversion -pthread -g -pipe LDFLAGS=-g -L/usr/local/lib -L/usr/lib --with-boost-suffix=-gcc41-1_34_1 --with-included-gettext --enable-python --enable-pch --enable-debug
I'm now trying just "./configure" and it seems to be going OK
Hi. If input file for ledger contains something like(follow the link):
http://gist.github.com/223694
I got a segfault.
When computing the value for a virtual transaction using european decimal notation (e.g. 0,10)
the result differs when using the dot notation (e.g. 0.10).
See http://gist.github.com/229540 for details
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#156
From: John Wiegley (@jwiegley)
Hi,
when adding an account name to reg or bal commands, e.g. ledger reg income
ledger version jwiegley/ledger@3f00f8362c2fdfae1dbb6517bc29c75e308bc4f0 quits with:
Error: std::bad_cast
See http://gist.github.com/228620 for sample session using doc/sample.dat
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#175
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#185
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#176
From: John Wiegley (@jwiegley)
CC: unknown user
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#182
From: John Wiegley (@jwiegley)
CC: unknown user
% git log -1
commit f35bc939c96c3a3bf09c5881d638b5ba60449c03
Author: John Wiegley <[email protected]>
Date: Sun Oct 11 14:07:55 2009 -0400
Added a note about "acprep update" to README
% more ~/.ledgerrc
--date-format %Y/%m/%d
% ./ledger reg -p this grocer | head -1
09-Oct-02 Kroger Expenses:Food:Groceries $ 38.63 $ 38.63
% ./ledger reg --date-format %Y/%m/%d -p this grocer | head -1
2009/10/02 Kroger Expenses:Food:Groceries $ 38.63 $ 38.63
Latest build takes 8s for a simple bal:
% ledger --version | head -1
Ledger next-0-g752677e, the command-line accounting tool
% time ledger bal -p this --no-total grocer
$ 147.36 Expenses:Food:Groceries
ledger bal -p this --no-total grocer 0.90s user 0.04s system 98% cpu 0.947 total
% ~/tmp/src/ledger/ledger --version | head -1
Ledger next-0-gf35bc93, the command-line accounting tool
% time ~/tmp/src/ledger/ledger bal -p this --no-total grocer
$ 147.36 Expenses:Food:Groceries
~/tmp/src/ledger/ledger bal -p this --no-total grocer 7.83s user 0.08s system 98% cpu 8.001 total
Here is output I get:
ledger: /usr/include/boost/intrusive_ptr.hpp:126: T* boost::intrusive_ptr::operator->() const [with T = ledger::expr_t::op_t]: Assertion `p_ != 0' failed.
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#165
From: John Wiegley (@jwiegley)
CC: unknown user
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#183
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#172
From: John Wiegley (@jwiegley)
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#162
From: John Wiegley (@jwiegley)
CC: @simonmichael
Note: the issue was created automatically with bugzilla2github
Bugzilla bug ID: BZ#157
From: John Wiegley (@jwiegley)
The budget command behaves slightly different than I would expect
for parent accounts. Here is example output:
% ledger budget -p this --effective --flat food
$ 490.46 $ 925.00 $ -434.54 53% Expenses:Food
$ 361.11 $ 325.00 $ 36.11 111% Expenses:Food:Groceries
$ 129.35 $ 100.00 $ 29.35 129% Expenses:Food:Out
------------ ------------ ------------ -----
$ 490.46 $ 925.00 $ -434.54 53%
The relevant journal context:
~ Monthly
Expenses:Food $ 500.00
Expenses:Food:Out $ 100.00
Expenses:Food:Groceries $ 325.00
Assets
It looks like :Food gets added to its children instead of picking
up the slack. If I remove the children and let the parent
provide a budget for it and its descendants, I get nothing.
~ Monthly
Expenses:Food $ 500.00
Assets
% ledger budget -p this --effective --flat food
0 $ 500.00 $ -500.00 0 Expenses:Food
That's on the same journal data. I expected:
% ledger budget -p this --effective --flat food
$ 490.46 $ 500.00 $ -9.54 98% Expenses:Food
Transcript follows:
meingbg@meingbg:~$ git clone git://github.com/jwiegley/ledger.git Initialized empty Git repository in /home/meingbg/ledger/.git/ remote: Counting objects: 20062, done. remote: Compressing objects: 100% (5624/5624), done. remote: Total 20062 (delta 15245), reused 18658 (delta 14165) Receiving objects: 100% (20062/20062), 25.64 MiB | 1873 KiB/s, done. Resolving deltas: 100% (15245/15245), done. meingbg@meingbg:~$ cd ledger/ meingbg@meingbg:~/ledger$ git checkout master Already on branch "master" meingbg@meingbg:~/ledger$ ./acprep dependencies acprep: INFO: Invoking primary phase: dependencies acprep: INFO: Executing phase: dependencies acprep: INFO: Installing Ledger's build dependencies ... acprep: INFO: Looks like you are using APT on Ubuntu Hardy acprep: INFO: Executing: sudo apt-get install build-essential libtool autoconf automake zlib1g-dev libbz2-dev python-dev bjam cvs gettext libgmp3-dev libmpfr-dev libboost1.35-dev libboost-python1.35-dev libboost-regex1.35-dev libboost-date-time1.35-dev libboost-filesystem1.35-dev libedit-dev libcppunit-dev texinfo lcov sloccount Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package libboost1.35-dev acprep: ERROR: Execution failed: sudo apt-get install build-essential libtool autoconf automake zlib1g-dev libbz2-dev python-dev bjam cvs gettext libgmp3-dev libmpfr-dev libboost1.35-dev libboost-python1.35-dev libboost-regex1.35-dev libboost-date-time1.35-dev libboost-filesystem1.35-dev libedit-dev libcppunit-dev texinfo lcov sloccount meingbg@meingbg:~/ledger$ sudo apt-get update Hit http://deb.torproject.org hardy Release.gpg Hit http://security.ubuntu.com hardy-security Release.gpg Ign http://security.ubuntu.com hardy-security/main Translation-en_US Hit http://se.archive.ubuntu.com hardy Release.gpg Ign http://se.archive.ubuntu.com hardy/main Translation-en_US Ign http://se.archive.ubuntu.com hardy/restricted Translation-en_US Ign http://security.ubuntu.com hardy-security/restricted Translation-en_US Ign http://security.ubuntu.com hardy-security/universe Translation-en_US Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_US Hit http://security.ubuntu.com hardy-security Release Ign http://se.archive.ubuntu.com hardy/universe Translation-en_US Ign http://se.archive.ubuntu.com hardy/multiverse Translation-en_US Hit http://se.archive.ubuntu.com hardy-updates Release.gpg Ign http://se.archive.ubuntu.com hardy-updates/main Translation-en_US Ign http://se.archive.ubuntu.com hardy-updates/restricted Translation-en_US Ign http://deb.torproject.org hardy/main Translation-en_US Ign http://se.archive.ubuntu.com hardy-updates/universe Translation-en_US Ign http://se.archive.ubuntu.com hardy-updates/multiverse Translation-en_US Hit http://se.archive.ubuntu.com hardy Release Hit http://se.archive.ubuntu.com hardy-updates Release Hit http://security.ubuntu.com hardy-security/main Packages Hit http://se.archive.ubuntu.com hardy/main Packages Hit http://deb.torproject.org hardy Release Hit http://se.archive.ubuntu.com hardy/restricted Packages Hit http://se.archive.ubuntu.com hardy/main Sources Hit http://security.ubuntu.com hardy-security/restricted Packages Hit http://security.ubuntu.com hardy-security/main Sources Hit http://security.ubuntu.com hardy-security/restricted Sources Hit http://security.ubuntu.com hardy-security/universe Packages Hit http://se.archive.ubuntu.com hardy/restricted Sources Hit http://se.archive.ubuntu.com hardy/universe Packages Hit http://se.archive.ubuntu.com hardy/universe Sources Hit http://se.archive.ubuntu.com hardy/multiverse Packages Hit http://se.archive.ubuntu.com hardy/multiverse Sources Hit http://se.archive.ubuntu.com hardy-updates/main Packages Hit http://se.archive.ubuntu.com hardy-updates/restricted Packages Hit http://security.ubuntu.com hardy-security/universe Sources Hit http://security.ubuntu.com hardy-security/multiverse Packages Hit http://security.ubuntu.com hardy-security/multiverse Sources Hit http://se.archive.ubuntu.com hardy-updates/main Sources Hit http://se.archive.ubuntu.com hardy-updates/restricted Sources Hit http://se.archive.ubuntu.com hardy-updates/universe Packages Hit http://se.archive.ubuntu.com hardy-updates/universe Sources Hit http://se.archive.ubuntu.com hardy-updates/multiverse Packages Hit http://se.archive.ubuntu.com hardy-updates/multiverse Sources Ign http://deb.torproject.org hardy/main Packages Hit http://deb.torproject.org hardy/main Packages Reading package lists... Done meingbg@meingbg:~/ledger$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: bind9-host dnsutils libbind9-30 libdns35 libisc35 libisccfg30 liblwres30 linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-generic 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded. meingbg@meingbg:~/ledger$ ./acprep dependencies acprep: INFO: Invoking primary phase: dependencies acprep: INFO: Executing phase: dependencies acprep: INFO: Installing Ledger's build dependencies ... acprep: INFO: Looks like you are using APT on Ubuntu Hardy acprep: INFO: Executing: sudo apt-get install build-essential libtool autoconf automake zlib1g-dev libbz2-dev python-dev bjam cvs gettext libgmp3-dev libmpfr-dev libboost1.35-dev libboost-python1.35-dev libboost-regex1.35-dev libboost-date-time1.35-dev libboost-filesystem1.35-dev libedit-dev libcppunit-dev texinfo lcov sloccount Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package libboost1.35-dev acprep: ERROR: Execution failed: sudo apt-get install build-essential libtool autoconf automake zlib1g-dev libbz2-dev python-dev bjam cvs gettext libgmp3-dev libmpfr-dev libboost1.35-dev libboost-python1.35-dev libboost-regex1.35-dev libboost-date-time1.35-dev libboost-filesystem1.35-dev libedit-dev libcppunit-dev texinfo lcov sloccount meingbg@meingbg:~/ledger$ ./acprep update acprep: INFO: Invoking primary phase: update acprep: INFO: Executing phase: update acprep: INFO: Executing phase: pull Already up-to-date. acprep: INFO: Executing phase: submodule Submodule 'lib/utfcpp' (git://github.com/jwiegley/utfcpp.git) registered for path 'lib/utfcpp' Initialized empty Git repository in /home/meingbg/ledger/lib/utfcpp/.git/ remote: Counting objects: 21, done. remote: Compressing objects: 100% (21/21), done. remote: Total 21 (delta 5), reused 0 (delta 0) Receiving objects: 100% (21/21), 18.00 KiB, done. Resolving deltas: 100% (5/5), done. Submodule path 'lib/utfcpp': checked out '200cf64535a8a2545414e993349f6c87c8dd64ba' acprep: INFO: Executing phase: make acprep: INFO: Executing phase: config acprep: INFO: Executing phase: submodule acprep: INFO: Executing phase: autoconf acprep: INFO: autogen.sh must be run because acprep is newer than configure acprep: INFO: Executing phase: version error: unknown option `long' usage: git-describe [options] * --contains find the tag that comes after the commit --debug debug search strategy on stderr --all use any ref in .git/refs --tags use any tag in .git/refs/tags --abbrev [] use digits to display SHA-1s --candidates consider most recent tags (default: 10) acprep: ERROR: Execution failed: git describe --all --long meingbg@meingbg:~/ledger$ git checkout -b maint origin/maint Branch maint set up to track remote branch refs/remotes/origin/maint. Switched to a new branch "maint" meingbg@meingbg:~/ledger$ ./acprep dependencies Preparing the ledger build system...please wait ERROR: Unable to locate GNU Autoconf. ERROR: To prepare the ledger build system from scratch, at least version 2.61 of GNU Autoconf must be installed. autogen.sh does not need to be run on the same machine that will run configure or make. Either the GNU Autotools will need to be installed or upgraded on this system, or autogen.sh must be run on the source code on another system and then transferred to here. -- Cheers! ./acprep: 60: /home/meingbg/ledger/configure: not found meingbg@meingbg:~/ledger$ ./acprep update Preparing the ledger build system...please wait ERROR: Unable to locate GNU Autoconf. ERROR: To prepare the ledger build system from scratch, at least version 2.61 of GNU Autoconf must be installed. autogen.sh does not need to be run on the same machine that will run configure or make. Either the GNU Autotools will need to be installed or upgraded on this system, or autogen.sh must be run on the source code on another system and then transferred to here. -- Cheers! ./acprep: 60: /home/meingbg/ledger/configure: not found meingbg@meingbg:~/ledger$ git checkout v2.6.1 Note: moving to "v2.6.1" which isn't a local branch If you want to create a new branch from this checkout, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b HEAD is now at 7fafe18... Added autogen.sh. meingbg@meingbg:~/ledger$ ./acprep dependencies Preparing the ledger build system...please wait ERROR: Unable to locate GNU Autoconf. ERROR: To prepare the ledger build system from scratch, at least version 2.61 of GNU Autoconf must be installed. autogen.sh does not need to be run on the same machine that will run configure or make. Either the GNU Autotools will need to be installed or upgraded on this system, or autogen.sh must be run on the source code on another system and then transferred to here. -- Cheers! ./acprep: 60: /home/meingbg/ledger/configure: not found meingbg@meingbg:~/ledger$ ./acprep update Preparing the ledger build system...please wait ERROR: Unable to locate GNU Autoconf. ERROR: To prepare the ledger build system from scratch, at least version 2.61 of GNU Autoconf must be installed. autogen.sh does not need to be run on the same machine that will run configure or make. Either the GNU Autotools will need to be installed or upgraded on this system, or autogen.sh must be run on the source code on another system and then transferred to here. -- Cheers! ./acprep: 60: /home/meingbg/ledger/configure: not found meingbg@meingbg:~/ledger$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.