Skip to content

Instantly share code, notes, and snippets.

@afh
Created November 10, 2009 20:11
Show Gist options
  • Save afh/231230 to your computer and use it in GitHub Desktop.
Save afh/231230 to your computer and use it in GitHub Desktop.
% ledger --version | head -1
Ledger next-0-ga345f9e, the command-line accounting tool
% cat <<EOF | ledger --european -f - bal
= Income:Clients:
(Liabilities:Taxes:VAT) ((1,00 / 1,19) * 0,19)
2009/07/27 * Invoice
Assets:Bank:Checking € 1.190,00
Income:Clients:ACME_Inc
EOF
€ 1.190,00 Assets:Bank:Checking
€ -1.190,00 Income:Clients:ACME_Inc
--------------------
0
% cat <<EOF | ledger --european -f - reg
= Income:Clients:
(Liabilities:Taxes:VAT) ((1,00 / 1,19) * 0,19)
2009/07/27 * Invoice
Assets:Bank:Checking € 1.190,00
Income:Clients:ACME_Inc
EOF
2009/07/27 Invoice Assets:Bank:Checking € 1.190,00 € 1.190,00
In:Clients:ACME_Inc € -1.190,00 0
(L:Taxes:VAT) € -190,00 € -190,00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment