[codex] Complete enterprise accounting workflows#330
Open
nirzaf wants to merge 4 commits into
Open
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes a broad first production slice of the medium-company accounting expansion on top of the existing enterprise foundation.
What changed
OFXFileManager.get_accounts().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 1passed: 79 tests