CjS77 / ale

Double-entry accounting system based on node.js + Sequelize
Apache License 2.0
53 stars 35 forks source link

Enhancements #1

Open muenzel opened 6 years ago

muenzel commented 6 years ago

Thank you for this library. I would prefer this one over medici because I think the use of a relational database is more sane for accounting purposes than using a NoSQL DB.

But there is one drawback with this library which makes it not useable for my purposes: I can't store and query metadata with the journal entries like with medici.

Looking at your example makes no sense to me: myBook.balance({ account:'Assets:Accounts Receivable' }).then((balance) => { console.log("Joe Blow owes me", balance.total); });

When I look this up in medici, it makes sense again:

  1. In the journal entry, I can store metadata like the client .credit('Income', 1000, {client: 'Joe Blow'})
  2. And then I can use the metadata for the queries myBook.balance({ account:'Assets:Accounts Receivable', client:'Joe Blow' }).then((balance) => { console.log("Joe Blow owes me", balance); });

Another thing is the REST service. I really like the idea of having a kind of microservice for this purpose. But the drawback here: In the REST service I can't do everything which I can do with the API, e.g. Voiding Transactions.

Thanks again for this project.

muenzel commented 6 years ago

Any thoughts on this?

CjS77 commented 6 years ago

Hi.. So unfortunately I don't have time to do any work on this project at the moment and probably won't have time for several months.

It looks like you have a good idea of how to add the feature you want. Why not implement it yourself and submit it as a PR?