This is a simple command-line invoice generator that creates PDF invoices. The invoice includes client information, invoice details, and company information.
- Python 3.x
reportlab
library
- Clone the repository or download the script.
- Install the required library:
pip install reportlab
-
Copy the
config.json.template
file toconfig.json
:cp config.json.template config.json
-
Update the
config.json
file with your company details:{ "company_name": "My Company", "company_address": "My Company Address", "bank_details": "Bank Details", "client_name": "Client Name", "client_address": [ "Line 1 of Client Address", "Line 2 of Client Address", "Line 3 of Client Address" ] }
Run the script with the following command:
python3 invoice_generator.py -c <config_file> -n <invoice_number> -d <date> -hr <hours> -r <rate>
-c
or--config
: The configuration file to use. (JSON)-n
or--number
: The invoice number.-d
or--date
: The invoice date.-u
or--units
: The number of units (hours/days/weeks) worked.-r
or--rate
: The rate per unit.
This will generate a PDF invoice with the specified details.
All commits to this repository were generated by OpenDevin.
This project is licensed under the MIT License. See the LICENSE file for details.