You can use this code to generate your monthly rental receipt for your tenants. It will :
- Generate a new file on Google Drive on a specific folder
- Fill all fields dependending on which value you give to it
- Compute the price without charges knowing full fee and rental charges (not yet configurable)
- Send email to your tenant and a copy to you
- Create a folder on your Google Drive with a template receipt. It should contain the following fields :
{{period}}
{{monthly-fee}}
{{rental-charge}}
{{monthly-total}}
{{today-date}}
- Copy somewhere the
id
of this file (have a look in navigation bar) - Clone the repository on your computer
- Open your terminal, go in the project and
pip install .
- Go to
quittances/edit.py
and change here the values for rental fees and rental charges - In the Makefile, create another step remplacing values. The
TEMPLATE ID
should be the id of the template from step one - Follow the instructions here for the Google part https://developers.google.com/docs/api/quickstart/python
- Then, in your terminal in the project call
make example