Plug-and-play double-entry accounting for Django (GST, multi-currency, APIViews).
Project description
django-finacc
Install
pip install django-finacc
Settings
INSTALLED_APPS += ["rest_framework", "finacc"]
URLs
path("api/finacc/", include("finacc.api.urls"))
Migrate
python manage.py migrate
Bootstrap CoA
python manage.py finacc_bootstrap_coa --company=1 --template=india_basic
Post a Journal Entry (API)
POST /api/finacc/journal/entries/ { "company": 1, "date": "2025-11-08", "currency": "INR", "memo": "Opening capital", "lines": [ {"account": 1, "debit": "100000.00", "credit": "0.00"}, {"account": 2, "debit": "0.00", "credit": "100000.00"} ] }
installation
INSTALLED_APPS += ["rest_framework", "finacc"] FINACC = { "BASE_CURRENCY": "INR", "AUTO_POST_ON_CREATE": True, }
urls.py
from django.urls import include, path urlpatterns = [ path("api/finacc/", include("finacc.api.urls")), ]
Post programmatically
from finacc.posting.rules import create_simple_entry from finacc.posting.engine import post_entry
je = create_simple_entry(company, date, "INR", "Sale", [ {"account": ar_acc, "debit": Decimal("1180.00")}, {"account": rev_acc, "credit": Decimal("1000.00")}, {"account": gst_payable_acc, "credit": Decimal("180.00")}, ]) post_entry(je)
Posting from sale and purchase
def post_invoice(company, invoice):
map lines -> AR, Revenue, Tax
... return post_entry(je)
Implementation Notes & Roadmap
Immutable posted entries: disable updates/deletes; allow reversal entries only (planned: reverse_entry(entry_id)).
Reports: Add Ledger, Balance Sheet, P&L helpers with tree aggregation.
Tax: Load taxes_india_gst.json via setup script; provide posting helpers that split CGST/SGST/IGST to mapped accounts.
FX: Add revaluation utilities for period end.
Permissions: Add IsCompanyMember mixin to filter by company_id.
Docs site: mkdocs with Quickstart, API reference, diagrams.
CI: GitHub Actions matrix for Py3.11/3.12 and Django 5.0/5.1.
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_finacc-0.1.0.tar.gz.
File metadata
- Download URL: django_finacc-0.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10ac694339da43e1441c82a51f5fe334b2ed03abb48b28e269ade7491573526e
|
|
| MD5 |
3dc559c56aacd8aa3c6f9e3378a5c943
|
|
| BLAKE2b-256 |
1a8e3ee59f7a5e69302d48ce609ac32cd10336a7fe3195041498c5ae1e55610a
|
File details
Details for the file django_finacc-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_finacc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.7 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 |
6f791a0dc481eb2637cad39a2e3f554043175e1f741fbf815a81661a71d655f9
|
|
| MD5 |
1cff2376aaae766894cf2bb7fd3e7422
|
|
| BLAKE2b-256 |
5125e2433cd9a6d34bb5fac2d2d278d1d028e2ed215aaaa6841ed69ec9f19630
|