Skip to content

Latest commit

 

History

History
106 lines (69 loc) · 2.49 KB

README.md

File metadata and controls

106 lines (69 loc) · 2.49 KB

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 "Hans Maier"
  • Generate using json output
harvest-exporter --format json
  • Generate using other currency
harvest-exporter --currency CHF
  • Override hourly rate:
harvest-exporter  --hourly-rate 100

This will override the hourly rate reported by harvest prior to applying the nutmide rate.

  • Filter by client:
harvest-exporter --client "Some client"

This can be also used to export hours for clients that are external to numtide (client name starting with "External -")

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

Kimai Usage/Examples

Exports the last month timesheets of user Jon for client Bob

./bin/kimai-exporter --client Bob --user Jon
  • German income tax estimator

Calculates how much money still needs to be paid for the current year, given the current revenu, expenses and already payed pre-tax.

$ nix shell $HOME/git/harvest-invoice-calculator#sevdesk-invoicer -c sevdesk-tax-estimator --tax-office-name 'Finanzamt Berlin Finanzkasse' --harvest-folder 2024 --wise-folder statements/2024
...
Taxes left to pay: XXXXX.XX

API References