1
0
Fork 0
mirror of https://github.com/Findus23/invoices.git synced 2024-09-19 15:13:47 +02:00
Quickly creating invoices with the power of LaTeX and Python
Find a file
2020-09-21 14:11:30 +02:00
.gitignore update gitignore 2018-12-19 12:38:58 +01:00
invoice.py more OOP 2018-05-15 17:49:23 +02:00
LICENSE Create LICENSE 2018-03-13 22:08:58 +01:00
main.py localized country name 2019-10-09 20:21:13 +02:00
poetry.lock move to poetry 2019-12-27 11:07:22 +01:00
pyproject.toml move to poetry 2019-12-27 11:07:22 +01:00
README.md Create initial version of Readme 2020-09-21 14:11:30 +02:00
strings.yaml support bank fees 2018-05-05 13:04:30 +02:00
template.tex leading zero in minute count 2019-10-25 11:35:19 +02:00
utils.py minor improvements 2019-10-09 20:16:08 +02:00

Invoices

Config

default_hourly_rate: 50     # what you expect to get for each hour worked
default_recipient: <rname>  # filename of recipient in `recipients`
description: some description   # not sure where it shows up
hours: 31   # worked hours
invoice_dir: invoice    # directory needs to exist
last_id: 3  # will get updated after generating invoice

Recipients

recipient: ?? line required?
  name: <name>
  address: <address>
  zip: <zip>
  city: <city>
  cityShort: O ??
  country: Deutschland
  IBAN: <IBAN>
  BIC: <BIC>

From

name: <name>
address: <address>
zip: <zip>
city: <city>
cityShort: <string>
country: Deutschland
IBAN: <IBAN>
BIC: <BIC>
countryDE: <string>

Structure

mkdir invoice
mkdir recipients

Setup

virtualenv -p python3 .venv
source .venv/bin/activate
# apparently this is one of the few ways to install poetry?
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
poetry install              # install dependencies

Usage

$ python main.py create
...     # you will be asked for details and further information here
$ python main.py compile