/harvest-invoice-calculator

A little tool that helps generating invoices from Harvest data

Primary LanguagePython

Harvest invoice calculator

Create your invoice based on Harvest timesheets and calculate the exchange rate to your currency using Transferwise.

Optional: generate invoice using Sevdesk

Requirements

Generate your personal access token in Harvest using this page.

cp .envrc.local-template .envrc.local

Save your Account ID and your token in .envrc.local

Usage / Examples

  • Generate for the current month
harvest-exporter
  • Generate for march:
harvest-exporter --month 3
  • Filter by user
harvest-exporter --user "Jörg Thalheim"
  • Filter by country (UK/CH)
harvest-exporter --country UK
harvest-exporter --country CH
  • Generate using json output
harvest-exporter --format json
  • Generate using other currency
harvest-exporter --currency CHF

Generate a bill from the harvest exprt for the customer with the ID 1000

$ sevdesk-invoicer --customer "1000" harvest.json
  • Calculate working days from harvest time report.

    For income tax in Germany one can claim money back for each day. The time report can be obtained from here for each user. Than run this script:

$ working-days-calculator report.csv
Working days: 171 from 2022-01-12 00:00:00 to 2022-12-29 00:00:00

API References