Invoices generation for Django Oscar
Project description
In order to generate invoice it’s required to create two model records:
Merchant account, oscar_invoices.abstract_models.AbstractLegalEntity. In contains shop name, seller’s business name, website, email, VAT number etc.
Merchant address, oscar_invoices.abstract_models.AbstractLegalEntityAddress. It’s quite similar to the order shipping or billing address.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-oscar-invoices-0.1.tar.gz
.
File metadata
- Download URL: django-oscar-invoices-0.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e723b4f21bd503e477375233c08be4922e2b2b0f28c8bb04202e5812bd6638e6 |
|
MD5 | 3d00ceccf2593cf89bbbfd34dc75be2d |
|
BLAKE2b-256 | ad789d4d092c30a63cfc92d50fdd36c3ab58bdb15b056ff18412f1b59d6d9024 |
File details
Details for the file django_oscar_invoices-0.1-py3.6.egg
.
File metadata
- Download URL: django_oscar_invoices-0.1-py3.6.egg
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc09c9158d11259ca55e0fcdaafa6cc57c52cb17975fc26a8fa072853ed327e |
|
MD5 | 8ba973d6375dadaa11d6cf561bff9b3a |
|
BLAKE2b-256 | 7f9c3d7c2b2bd379b92b7174cb2bcb8177408d685d705ec157ca5935daac35cf |