Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prikhi/hledger-management-script
A Shakefile for Processing Imports into Journals Entries & Creating Financial Reports with HLedger
https://github.com/prikhi/hledger-management-script
exporter hledger importer ledger-cli plaintext-accounting shake
Last synced: 19 days ago
JSON representation
A Shakefile for Processing Imports into Journals Entries & Creating Financial Reports with HLedger
- Host: GitHub
- URL: https://github.com/prikhi/hledger-management-script
- Owner: prikhi
- License: bsd-3-clause
- Created: 2020-02-09T16:11:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-09T16:26:53.000Z (almost 5 years ago)
- Last Synced: 2024-11-16T08:36:05.827Z (3 months ago)
- Topics: exporter, hledger, importer, ledger-cli, plaintext-accounting, shake
- Language: Haskell
- Size: 7.81 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hledger-exporter
This repository contains an example management script for use with
[hledger](https://github.com/simonmichael/hledger).It is based of the `export.hs` script from [adept](https://github.com/adept)'s
[full-fledged-hledger](https://github.com/adept/full-fledged-hledger)
repository.This will generate a list of year reports in a `reports` directory, a list of
closing entries in `closing`, & a list of opening entries in `opening`. It will
search for includes pointing to the `import/` directory and generate the
journal files according to the `full-fledged-hledger` repository.To customize the script:
* Change the `ImportAccount` type to accounts that should be processed and
update the `importAccountFolder` function.
* Set the `firstYear` & `currentYear` variables to their proper values.
* Set the `openingAccount`, `closingAccount`, & `openCloseQuery` to the values
you desire.To use this in your project, copy `src/Main.hs` into the root of your hledger
directory and add a stack script interpreter to the top of the file:```
#!/usr/bin/env stack
{- stack script
--resolver lts-14.23--ghc-options -Wall
--ghc-options -Werror
--ghc-options -threaded
--ghc-options -with-rtsopts=-N--package hashable
--package shake
-}
```## License
BSD-3