Giter VIP home page Giter VIP logo

django-simple-billing's Introduction

django-simple-billing

Installation

Add to your project's INSTALLED_APPS setting:

INSTALLED_APPS = (
    # …
    'simple_billing',
)
from simple_billing.views import BillingView, CountriesView

    url(r'^api/billing/$', BillingView.as_view(), name="billing"),
    url(r'^api/countries/$', CountriesView.as_view(), name="countries"),

Settings

Required settings:

SIMPLE_BILLING_INVOICE_FROM

Either specify this setting or override the template simple_billing/invoice_from.html.

Example setting:

SIMPLE_BILLING_INVOICE_FROM = (
    "Google Inc.\n"
    "1600 Amphitheatre Parkway\n"
    "Mountain View\n"
    "CA 94043\n"
    "USA\n"
    )

SIMPLE_BILLING_INVOICE_FILES_DIR

Optional settings:

SIMPLE_BILLING_DATA_MODEL

Default: simple_billing.BillingData

SIMPLE_BILLING_INVOICE_MODEL

Default: simple_billing.Invoice

SIMPLE_BILLING_INVOICE_IMG_PATH

Path to the logo the appear in the invoice. Default: empty string which means no logo will appear on the invoice

SIMPLE_BILLING_DECIMAL_PLACES

Number of decimal places assigned to the MoneyField.

SIMPLE_BILLING_MAX_DIGITS

Max number of digits assigned to the Moneyfield.

SIMPLE_BILLING_DEFAULT_INVOICE_PREFIX

django-simple-billing's People

Contributors

flc avatar

Watchers

James Cloos avatar

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.