Skip to content

anjor/invoice-generator

Repository files navigation

Invoice Generator

This is a simple command-line invoice generator that creates PDF invoices. The invoice includes client information, invoice details, and company information.

Requirements

  • Python 3.x
  • reportlab library

Installation

  1. Clone the repository or download the script.
  2. Install the required library:
    pip install reportlab

Configuration

  1. Copy the config.json.template file to config.json:

    cp config.json.template config.json
  2. 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"
        ]
    }

Usage

Run the script with the following command:

python3 invoice_generator.py -c <config_file> -n <invoice_number> -d <date> -hr <hours> -r <rate>

Arguments

  • -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.

Note

All commits to this repository were generated by OpenDevin.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages