3 ms·
There is no reason to post things manually with (h)ledger, it's a command line tool so it's perfectly scriptable. Our company uses a plethora of (mostly) ruby
by speleding 7y ago
There is no reason to post things manually with (h)ledger, it's a command line tool so it's perfectly scriptable.
Our company uses a plethora of (mostly) ruby scripts to get data from banks and the billing system API and a few other sources like exchange rates websites and converts the output into ledger files. And then another bunch of scripts takes the output from ledger and sends it to the API for, for example, the government VAT payments. (Our company is by no means big, but multinational with business in 7 currencies).
There are a number of test and assert statements along the line to do sanity checks with a manual review since sending out incorrect values could potentially be expensive / illegal. It works great. The whole thing is stored in git so any changes are auditable. We need some of the power features of ledger though, so I doubt ledger will work for us, but I'll give it a spin.