Sales (products & services) with invoices, credit notes, receipts, refunds, GST split, and django-finacc integration.
Project description
django-sales
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/*
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_sales_ve-0.2.1.tar.gz.
File metadata
- Download URL: django_sales_ve-0.2.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c149fd8dd3e57950bdc435b5d419b932acdda4b61d43d82c23b84558e435dd09
|
|
| MD5 |
3281279128ab31c93569bf8e4215c49c
|
|
| BLAKE2b-256 |
f9eb6d7382478354be36f4d96c4d71c5188303880fa4f175b30990d0df5ff2b4
|
File details
Details for the file django_sales_ve-0.2.1-py3-none-any.whl.
File metadata
- Download URL: django_sales_ve-0.2.1-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87c0827966585f9a1d968b61ae70c9939f962057fb9d02b83ffa83dfa6b4229b
|
|
| MD5 |
2caf3b78bf25727eed75dc56aa42ac55
|
|
| BLAKE2b-256 |
be86863e4425f4ee002b9fd0e48979ad424b829786ff6f65409f7e5473c02509
|