Skip to content

[codex] Complete enterprise accounting workflows#330

Open
nirzaf wants to merge 4 commits into
arrobalytics:masterfrom
nirzaf:feature/ledger-transaction-ui-updates
Open

[codex] Complete enterprise accounting workflows#330
nirzaf wants to merge 4 commits into
arrobalytics:masterfrom
nirzaf:feature/ledger-transaction-ui-updates

Conversation

@nirzaf
Copy link
Copy Markdown

@nirzaf nirzaf commented May 18, 2026

Summary

Completes a broad first production slice of the medium-company accounting expansion on top of the existing enterprise foundation.

What changed

  • Added approval policy party criteria migration and expanded approval routing by vendor/customer/unit/account role.
  • Added enterprise service workflows for payment lifecycle, payment reversal, credit/debit notes, reconciliation CSV import, auto/manual match, reconciliation lock/void, currency base amount handling, realized FX gain/loss calculation, revaluation summaries, dimension assignment, budget approval, allocation calculations, asset disposal/depreciation posting, attachment audit, export audit, webhook delivery records, and integration credential checks.
  • Tightened closed-period behavior for committed bill and invoice payments.
  • Reworked enterprise AR/AP aging to use invoice/bill open balances and added customer/vendor statement helpers plus budget actual/variance calculations.
  • Added package-level enterprise JSON/CSV endpoints without requiring DRF.
  • Restored OFX account metadata compatibility via OFXFileManager.get_accounts().
  • Expanded enterprise tests for approvals, permissions, payments, reconciliation import/match, FX/base amounts, dimensions, and budgets.

Validation

  • ./.venv/Scripts/python.exe manage.py check
  • ./.venv/Scripts/python.exe manage.py makemigrations --check --dry-run
  • ./.venv/Scripts/python.exe -m compileall django_ledger
  • ./.venv/Scripts/python.exe manage.py test django_ledger.tests --verbosity 1 passed: 79 tests

Copilot AI review requested due to automatic review settings May 18, 2026 09:40
nirzaf added 3 commits May 18, 2026 10:38
- Updated `EntityModelManager.for_user` to include a `required_permission_level` parameter for finer access control.
- Added `base_currency` field to `EntityModelAbstract` for currency management.
- Introduced `currency`, `exchange_rate`, and `base_amount_due` fields in `InvoiceModelAbstract`, `JournalEntryModelAbstract`, `PurchaseOrderModelAbstract`, and `TransactionModelAbstract` for better financial tracking.
- Created new report functions in `enterprise.py` for trial balance, general ledger, AR/AP aging, and tax summaries.
- Implemented service layer functions in `enterprise.py` for handling audit events, payment allocations, and tax calculations.
- Added tests for enterprise accounting workflows, including audit events, period management, tax calculations, and payment allocations.
- Enhanced entity permission tests to validate access based on permission levels.
- Updated URL patterns and views to support new detail views and permission checks.
@nirzaf nirzaf changed the title Fix ledger action security and validation issues [codex] Complete enterprise accounting workflows May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant