Skip to content

aaditmshah/hledger-check-postings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hledger-check-postings

A custom hledger script to check postings.

Installation

Clone this repository.

git clone git@github.com:aaditmshah/hledger-check-postings.git

Switch to the project directory.

cd hledger-check-postings

Build the executable.

cabal build

Install the executable.

cabal install

Usage

If you have set a $LEDGER_FILE environment variable then you can simply run the program as follows.

hledger check-postings

This add-on command will check whether you have any postings which credit expense accounts or debit revenue accounts. Expense accounts should only be debited and revenue accounts should only be credited. Hence, if you credit an expense account or debit a revenue account then check-postings flags the transaction and fails.

About

A custom hledger script to check postings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published