-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Large refactor as part of Hordak 2.0. The amount field is now split into two fields: `credit` and `debit` --- * Adding migrations and early work on code changes * Code changes to support PR: Experiment in moving Account.amount to Account.credit & Account.debit * Test changes to support PR: Experiment in moving Account.amount to Account.credit & Account.debit * Now supporting legacy `amount` argument to Leg, with deprecation warning * Tests now pass for mysql * Setting mysql error code correctly * Adding tests and errors for invalid Leg credit/debit values * Now storing creation migrations for debugging * Now storing creation migrations for debugging * Now storing creation migrations for debugging * Now storing creation migrations for debugging * Now storing creation migrations for debugging * Requiring djmoney>3 due to migration creation problem with djmoney 3.0 adding two new currencies. This then causes migrations to be generated for currency fields with new default values. * Formatting fix * Fixing typo in deprecation warning * Expanding out the changelog * Making model choices available using the old syntax * Fixing SQL error message * Fixing postgres reverse migration issue * Migrations now correctly set number of decimal places for decimal fields * Fixing error in changelog, thanks to @nitsujri for catching it * Including migration sql files in build * GET_BALANCE() now sets sign correctly (postgres) * GET_BALANCE() now sets sign correctly mysql & postgres) * Updating orm-based balance calculations to calculate correct sign * Fixes to balance calculations given updates to sum_to_balance(). Removed balance(raw=...). * Renaming balance() to get_balance() (as per deprecation in 1.17.0) * Renaming all uses of balance() to get_balance() (as per deprecation in 1.17.0) * Updating admin to use the balance property now it is available * Moving account_balance_after() and account_balance_before() to use database function get_balance() * Moving account_balance_after() and account_balance_before() to use annotations * get_balance() db function now uses leg_id rather than transcation ID (in case multiple legs in the same transaction point to the same account) * Simplifying tests as it was a bit flaky between postgres and mysql * Docs improvements * Docs improvements * Adding warning in docs re views * Work on changelog * Fixing error in credit/debit data migration, #133
- Loading branch information
1 parent
73860c4
commit da9a3c7
Showing
40 changed files
with
2,358 additions
and
503 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/_build_html | ||
/_build | ||
/html |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ API Documentation | |
:maxdepth: 2 | ||
|
||
models | ||
models_statements | ||
views | ||
forms | ||
utilities_money | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. _api_models_statements: | ||
|
||
Models (Statements) | ||
=================== | ||
|
||
StatementImport | ||
--------------- | ||
|
||
.. autoclass:: hordak.models.StatementImport | ||
:members: | ||
|
||
StatementLine | ||
------------- | ||
|
||
.. autoclass:: hordak.models.StatementLine | ||
:members: |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.