Skip to main content

Plug-and-play Purchases module with bills, vendor credits, payments, supplier refunds, and GST split integrated with django-finacc.

Project description

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}]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_purchase_ve-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_purchase_ve-0.1.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file django_purchase_ve-0.1.0.tar.gz.

File metadata

  • Download URL: django_purchase_ve-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for django_purchase_ve-0.1.0.tar.gz
Algorithm Hash digest
SHA256 12dda6ca27c18e4e002b219d617f858afc01bdce6cc7221f64129f32993b32cd
MD5 2023d088bd67a3f5bfe33f33e183accc
BLAKE2b-256 2b59f246831dbebbdc9399cdaa02a8465a973344e757670ddd66249f4537991b

See more details on using hashes here.

File details

Details for the file django_purchase_ve-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_purchase_ve-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37f8e7d68284cba1a5441c0858269ecc33536bee66c3a6ed9f90217d7b9bd424
MD5 5099c8f5d9306d5a81eaf5fd5ee2eb24
BLAKE2b-256 a17724b7dc001cf653e4093252e312dadc68b62b3196b81c0c05eaa8511fd071

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page