pondersource / prejournal

An experimental bookkeeping tool that sits between source documents and journals
https://prejournal.org
MIT License
2 stars 2 forks source link

See cashflow from implied purchases #2

Open michielbdejong opened 2 years ago

michielbdejong commented 2 years ago

I added entries to suppliers.json until generateImpliedPurchases.php generated no more errors, and now:

php generateImpliedPurchases.php asn-checking.journal suppliers.json  |  hledger -f - cf -M

gives a pretty nice overview of monthly spending per category.

michielbdejong commented 2 years ago

But what I really want is to cut out the middle stops.

php generateImpliedPurchases.php ../../michielbdejong/budget-borrel/asn-checking.journal ../../michielbdejong/budget-borrel/suppliers.json  |  hledger -f - reg assets:Groceries

now shows a list of Groceries expenses, but the information is only "Implied purchase (MCC:5411)", not the full information of the original bank transaction.

michielbdejong commented 2 years ago

The code for this was deleted from the main source tree but you can still see its latest state here: https://github.com/pondersource/prejournal/tree/cef95ba7ad652962dfd1ffc12140db0a5f600ee0/example