This small CLI application is used for automatical invoice generation. It fetches timesheet from your time tracker application (currently it works with Harvest only), and then gives you ability to generate that invoice (currently only inFakt API is supported). You can create VAT invoice, as well as draft, which you can modify later. If you wish, there’s also way to automatically send such invoice to your contractor.
- Clone this app (
git clone https://github.com/krzyzak/autofaktura.git
) - Bundle it (
bundle
) - Configure it (
mv .env.example .env
, then edit.env
file with your favourite editor) – see Configuration section - Run it (
ruby autofaktura.rb
)
Autofaktura has very simple CLI interface. It uses smart defaults, so it tries to guess all dates needed to generate invoice. On the other hand, it doesn’t try to be too smart, so your confirmation is always required to generate and send invoice.
Configuration is pretty straightforward – just edit your .env
file.
Here are some options which might not be clear:
INFAKT_CLIENT_EMAIL
– Clients’ default email will be used, unless you specify other here.NET_BONUS=0
– If you have any constant bonus (perhaps base salary?), which you want to apply to invoice before taxation, put it here.GROSS_BONUS=0
– If you have any constant bonus, which is already calculated after taxation, put it here.
- Fork it ( https://github.com/[my-github-username]/road_runner/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request