by malloc-0x90 · 2y ago · 0 comments
But I was unable to align the following 2nd table with taxes: cells are all over the place and it does whatever it wants. And there is no information online to be found about it.
(I eventually gave up long time ago and still to this day manually do them in LibreOffice Writer adding taxes with a calculator)
Except this, it's a really neat piece of FOSS software!
https://hledger.org/invoicing.html
https://plaintextaccounting.org/
One previous discussion: https://news.ycombinator.com/item?id=20012499
Might have to use a headless chromium wrapper (maybe pandoc has this anyway) to then get to pdf but that may not be too bad
In fact I quite often go .md -> .html with pandoc, but write the .md in such a way that, when translated, it is the kind of html that weasyprint will be able to turn into the PDF that I want.
It’s an ugly script that’s been working quite well for more than a decade, but I wouldn’t recommend it to anyone other than myself.
For example, in my code, if a table has the class “total” it sums all <td>s which contains a dollar sign, and so on.