django-purchase
Install
pip install django-purchase
Settings
INSTALLED_APPS += ["rest_framework", "finacc", "purchase"]
URLs
path("api/purchase/", include("purchase.api.urls"))
Create & Post a Bill
POST /api/purchase/bills/
{ "company": 1, "vendor": 1, "number": "B-0001", "date": "2025-11-09", "currency": "INR",
"is_tax_inclusive": false, "lines": [ {"item": 1, "qty": 1, "rate": "1000.00", "tax": 1} ] }
settings.py
INSTALLED_APPS += ["rest_framework", "finacc", "purchase"]
PURCHASE = {
"AUTO_POST_BILL": True,
"AUTO_POST_VENDORCREDIT": True,
"AUTO_POST_PAYMENT": True,
"AUTO_POST_SUPPLIER_REFUND": True,
}
urls.py
path("api/purchase/", include("purchase.api.urls")),
migration
python manage.py migrate
python manage.py purchase_bootstrap_demo --company=1
Create & post a Bill (API)
POST /api/purchase/bills/
{
"company": 1, "vendor": 1, "number": "B-0001",
"date": "2025-11-09", "currency": "INR",
"is_tax_inclusive": false,
"lines": [{"item": 1, "qty": 1, "rate": "1000.00", "tax": 1}]
}
Metadata
Release files for django-purchase-ve 0.1.0
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_purchase_ve-0.1.0.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_purchase_ve-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.3 kB
Release files / django_purchase_ve-0.1.0.tar.gz
| Download URL | django_purchase_ve-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12dda6ca27c18e4e002b219d617f858afc01bdce6cc7221f64129f32993b32cd
|
|
BLAKE2b-256 checksum How to use checksums |
2b59f246831dbebbdc9399cdaa02a8465a973344e757670ddd66249f4537991b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.12
|
Release files / django_purchase_ve-0.1.0-py3-none-any.whl
| Download URL | django_purchase_ve-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37f8e7d68284cba1a5441c0858269ecc33536bee66c3a6ed9f90217d7b9bd424
|
|
BLAKE2b-256 checksum How to use checksums |
a17724b7dc001cf653e4093252e312dadc68b62b3196b81c0c05eaa8511fd071
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.12
|