Skip to main content

django-sales

PyPI version Python Versions License: MIT

Sales for Django — products & services, invoices, credit notes, receipts, refunds, price lists, GST split, and automatic posting into django-finacc.

Install

pip install django-sales

Settings

INSTALLED_APPS += ["rest_framework", "finacc", "sales"]
SALES = {"AUTO_POST_INVOICE": True, "AUTO_POST_CREDITNOTE": True, "AUTO_POST_RECEIPT": True, "AUTO_POST_REFUND": True}

URLs

path("api/sales/", include("sales.api.urls"))

Create & Post an Invoice

POST /api/sales/invoices/
{ "company": 1, "customer": 1, "number": "S-0001", "date": "2025-11-09", "currency": "INR",
"is_tax_inclusive": false,
"lines": [{"item": 1, "qty": 1, "rate": "1000.00", "tax": 1}]
}

Credit Note & Refund

POST /api/sales/credit-notes/ {...}
POST /api/sales/refunds/ {...}

Mapping to Accounts

Create one sales.AccountMapping per company to point AR, Revenue, GST, Cash/Bank.

GST Split

If finacc.TaxSplit exists for the selected tax, GST will be credited to CGST/SGST/IGST component accounts (if configured) or consolidated to gst_payable.

License

MIT © 2025 Verified Enquiries


🚀 Publish to PyPI (build, twine, badges)

python -m venv .venv && source .venv/bin/activate
pip install --upgrade build twine
python -m build
twine check dist/*
# TestPyPI
# twine upload --repository testpypi dist/*
# PyPI
# twine upload dist/*

Metadata

Release files for django-sales-ve 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sales-ve 0.2.1
File Size Uploaded
django_sales_ve-0.2.1.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sales-ve 0.2.1
File Interpreter ABI Platform
django_sales_ve-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.1 kB

Release files / django_sales_ve-0.2.1.tar.gz

Download URL django_sales_ve-0.2.1.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c149fd8dd3e57950bdc435b5d419b932acdda4b61d43d82c23b84558e435dd09
BLAKE2b-256 checksum
How to use checksums
f9eb6d7382478354be36f4d96c4d71c5188303880fa4f175b30990d0df5ff2b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.12

Release files / django_sales_ve-0.2.1-py3-none-any.whl

Download URL django_sales_ve-0.2.1-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87c0827966585f9a1d968b61ae70c9939f962057fb9d02b83ffa83dfa6b4229b
BLAKE2b-256 checksum
How to use checksums
be86863e4425f4ee002b9fd0e48979ad424b829786ff6f65409f7e5473c02509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.12

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page