GithubHelp home page GithubHelp logo

prikhi / hledger-management-script Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 8 KB

A Shakefile for Processing Imports into Journals Entries & Creating Financial Reports with HLedger

License: BSD 3-Clause "New" or "Revised" License

Haskell 100.00%
shake hledger plaintext-accounting ledger-cli exporter importer

hledger-management-script's Introduction

hledger-exporter

This repository contains an example management script for use with hledger.

It is based of the export.hs script from adept's 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

hledger-management-script's People

Contributors

prikhi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.