Giter Club home page Giter Club logo

invoice.py's Introduction

invoice.py

A spartan invoice generator based on LaTeX and Pystache conforming to the Polish VAT invoice policy.

Usage

/src/invoice.py --template "templates/basic.tex" \
                --number "1001" \
                --issuer $ISSUER \
                --recipient $RECIPIENT \
                $ITEM1 $ITEM2 $ITEM3

Where $ISSUER and $RECIPIENT take the following form:

{
  "name" : "string, a name of a company",
  "address" : "string, an address of a company",
  "id" : "string, tax ID numbers of a company",
  "bank" : "optional string, the bank account number of a company",
  "extra" : "optional string, any extra info like phone numbers or URLs"
}

Each $ITEM* takes the following form:

{
  "name" : "string, the name of an item or service",
  "net_price" : "number, the net price of an item or service",
  "quantity" : "number, quantity of the items/services",
  "quantity_unit" : "number, quantity unit",
  "vat" : "number, the VAT fee of an item or service[0-100]"
}

Additional values such as item.amount, item.vat_amount and taxes will be computed automatically and added to the mustache engine parameters before templating. You can supply any custom keys and values to any JSON object and use them in your templates.

invoice.py's People

Contributors

idorobots avatar

Watchers

 avatar  avatar

invoice.py's Issues

SQLite DB for data backup.

A copy of the PDF invoice data could be stored in a SQLite DB. Added benefit: data analysis & pretty graphs.

LaTeX templates

This could use some LaTeX with mustache style templating.

QR code generation

A QR code could be generated & used in the invoice template for easier handling.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.