Installation
$ pip install django-oscar-invoices
Setup
Add oscar_invoices to the INSTALLED_APPS variable of your project’s settings.py.
Sync the database using python manage.py migrate.
Create instances of LegalEntity and LegalEntityAddress.
Integrate InvoiceCreator in your checkout process.
By default, we generate only HTML invoice document and allow user to decide how to generate PDF documents. You can integrate python-pdfkit, WeasyPrint, xhtml2pdf, reportlab or another library of your choice.
Since documents contains sensitive data, we store them out of the media folder and do not provide public access via URL. For this purpose, we use custom storage class oscar_invoices.storages.DocumentsStorage, invoice documents placed into the nested folder settings.OSCAR_INVOICES_UPLOAD_FOLDER and available for the admin users via dashboard order list.
You can find more information in documentation.
Sandbox
Sandbox environment set up to automatically create invoices on checkout. But for this, instances of LegalEntity and LegalEntityAddress must be created (from admin site) before order placement.
Release files for django-oscar-invoices 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-oscar-invoices-0.2.tar.gz | 11.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_oscar_invoices-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:27.8 kB
Release files / django-oscar-invoices-0.2.tar.gz
| Download URL | django-oscar-invoices-0.2.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f3538907f699bc8875433245754e260d72a857f991cedd208c5b0de71f14067
|
|
BLAKE2b-256 checksum How to use checksums |
2a543d74b265c330475d990a17352c330240df11761dac3017cc53a397911072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0
|
Release files / django_oscar_invoices-0.2-py3-none-any.whl
| Download URL | django_oscar_invoices-0.2-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1de4b729435630113883947c7e288429e6f816e0b1596373d3426d9506c709f
|
|
BLAKE2b-256 checksum How to use checksums |
037c108c32fbebe6d76d586d02250fc17bd19c1988e15b9716ef94f9fec998cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0
|