Post tags: | accounting_software | hledger |

hledger hledger home

Install Haskell stack

Get the FP Complete key:

wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/debian/fpco.key | sudo apt-key add -

Add the appropriate source repository:

echo 'deb http://download.fpcomplete.com/debian/jessie stable main'|sudo tee /etc/apt/sources.list.d/fpco.list

Update apt and install

sudo apt-get update && sudo apt-get install stack -y
With stack
        stack setup (if you need GHC installed. If you're not sure, run the next command and it will tell you.)
        stack --resolver nightly install hledger (installs just the command-line interface), or
        Ensure ~/.local/bin is in your $PATH
hledger --version
        hledger 0.27
Environment for hledger
        export PATH=~/.local/bin:$PATH
        export LEDGER_FILE = ~/ledger/.hledger.journal

How do I reset / remove Stack (such as to to do a completely fresh build)?

The first thing to remove is project-specific .stack-work directory within the project’s directory. Next, remove ~/.stack directory overall. You may have errors if you remove the latter but leave the former. Removing Stack itself will relate to how it was installed, and if you used GHC installed outside of Stack, that would need to be removed separately.

Usage Notes

csv-rules here

Journal entries here

Comment tags here


Standard field names:

  • date
  • date2
  • status
  • code
  • description
  • comment
  • account1
  • account2
  • amount
  • amount-in
  • amount-out
  • currency

Accounting Notes

Debit and Credit

Second, let us define “debit” and “credit”. Debit means left and credit means right. Do not associate any of them with plus or minus yet. Debit simply means left and credit means right – that’s just it! “Debit” is abbreviated as “Dr.” and “credit”, “Cr.”.

Vehicle mileage

IRS 2015 Business $0.575 / mile

  • DR Automotive Expense
  • CR Owner’s Equity or Owner’s Drawing

From my Chart-of-account:

2015/11/28 Mileage 168,468 odo 76 mi @ $0.575/mi = $43.70
           ; mileage: 2015/11/28 168,468 odo 76 mi @ $0.575/mi = $43.70 home to Fowler to view property
           Income Statement:Operating Expenses:Vehicle:Mileage    $43.70
           Balance Sheet:Owners Equity:Craig Anderson:Drawing