Generate invoices from the command line
github.com
github.com
1. I used sqlite to handle everything including configuration
2. There was rudimentary templating. You could add a PDF letter head and then create a template using emacs org and it would render it onto the letterhead.
3. I was able to customise it quickly to move from one tax regime to another in India.
4. It would also generate an maintain timesheets (which employees send in as org files).
I think this bureaucracy discourages a lot of people from even starting a business.
EDIT: I looked it up. It's literally just something you get to check off on the tax registration form for the company. Alternatively there's an online form (imagine that!) for existing companies. Impressively, there's no fax machine involved at any point.
Well, now that's a fa(u)x pas(s).
Even trickier is that some line items could also be tax-exempt.
A config option such as the following would help for that:
--tax 0.05 "GST" --label="GST #12345679" \
--tax 0.09975 "QST" --label="QST #55592929"
And to handle items that are tax exempt, an item can have the: --item ... --tax_exempt (or --tax_exempt="GST" in case it's only exempt from one of the sales taxes)Tax exemption at a federal or provincial level is then at the line-item level, not the invoice level (although perhaps invoice level is enough, for example agricultural products & prescription drugs shouldn't be taxed).
You may be required to charge the buyer's tax rate (rather than your operating tax rate).
And finally some goods/services have extra taxes (hospitality tax, for example).
https://www.canada.ca/en/revenue-agency/services/tax/busines... https://www.canada.ca/en/revenue-agency/services/tax/busines...
you can basically scribble an invoice on a napkin and it's gonna be ok, it's just so practical.
in other countries dealing with all the invoicing crap will burn you money and time while in the US you are already doing business, the upkeep is terrible.
Would be great if we could integrate this with some go template language, would make customization easier.
Especially PhantomJS whose updates tended to break the invoice formatting severely (like radically changing the rendered font size in PDF across a PhantomJS update).
Firefox required a virtual X server, but that was doable. I'd prefer to use Firefox, but unfortunately its PDF rendering screwed up the thickness of border lines, making them far too thick or not present at all, though it did a better job of pagination than Chrome.
And even having settled into using Chrome for this, there are two ways to generate a print-to-PDF that produce different results in Chrome, at least when it's Chrome on MacOS. Only one of them lays out my invoice PDFs correctly.
I'm having same considarations, but strugling with finding the best feature-set
Right now I've: Accounting, CRM, Email, Products, Invoices, Quotes, Password manager, Tickets/Todos, Projects and basic IoT device monitoring and a static webpage generator. Most modules let the user add their own fields to a module so you can make if fit your needs.
Apart from this there's also lua support for reacting to events. Upcoming is webshop capabilities and cronjobs.
Feature sets are hard. But I'm prioritizing things my customers wants and what I need.
I'm going to go out on a limb and say this is not something that the author would have posted to HN. It's just https://news.ycombinator.com/submitted?id=ingve submitting another post.
The purpose of this tool is for generating invoices, not other documents. And it doesn't use a template, it writes a PDF using a Go library.