-
Notifications
You must be signed in to change notification settings - Fork 59
Moving Account.amount
to Account.credit
& Account.debit
#133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 23 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
f446ee6
Adding migrations and early work on code changes
adamcharnock 2970b15
Code changes to support PR: Experiment in moving Account.amount to Ac…
adamcharnock 2698f43
Test changes to support PR: Experiment in moving Account.amount to Ac…
adamcharnock ca60528
Now supporting legacy `amount` argument to Leg, with deprecation warning
adamcharnock ee63c76
Tests now pass for mysql
adamcharnock 341bcfb
Setting mysql error code correctly
adamcharnock 3cb4419
Adding tests and errors for invalid Leg credit/debit values
adamcharnock a365d6a
Merge branch 'master' into experiment/amount-to-debit-credit
adamcharnock 800b6e1
Now storing creation migrations for debugging
adamcharnock 61d812d
Now storing creation migrations for debugging
adamcharnock 41415ac
Now storing creation migrations for debugging
adamcharnock 5e9a71b
Now storing creation migrations for debugging
adamcharnock b2c6575
Now storing creation migrations for debugging
adamcharnock 62cfa2a
Requiring djmoney>3 due to migration creation problem with djmoney 3.…
adamcharnock bec5fdb
Formatting fix
adamcharnock 4ffc107
Fixing typo in deprecation warning
adamcharnock cc407b7
Expanding out the changelog
adamcharnock a4e74f4
Making model choices available using the old syntax
adamcharnock c0f03d5
Fixing SQL error message
adamcharnock ef658e6
Fixing postgres reverse migration issue
adamcharnock ab11c27
Migrations now correctly set number of decimal places for decimal fields
adamcharnock be40944
Fixing error in changelog, thanks to @nitsujri for catching it
adamcharnock 26f28e8
Including migration sql files in build
adamcharnock c7e68e6
GET_BALANCE() now sets sign correctly (postgres)
adamcharnock 133c401
GET_BALANCE() now sets sign correctly mysql & postgres)
adamcharnock e8c0088
Updating orm-based balance calculations to calculate correct sign
adamcharnock 6024b46
Fixes to balance calculations given updates to sum_to_balance(). Remo…
adamcharnock 41c07ac
Renaming balance() to get_balance() (as per deprecation in 1.17.0)
adamcharnock eeee60e
Renaming all uses of balance() to get_balance() (as per deprecation i…
adamcharnock 00d3cd2
Updating admin to use the balance property now it is available
adamcharnock 05b5ab7
Moving account_balance_after() and account_balance_before() to use da…
adamcharnock c0ef2cc
Moving account_balance_after() and account_balance_before() to use an…
adamcharnock ef8cf08
get_balance() db function now uses leg_id rather than transcation ID …
adamcharnock e75321d
Simplifying tests as it was a bit flaky between postgres and mysql
adamcharnock 9e025e3
Docs improvements
adamcharnock f419477
Docs improvements
adamcharnock 4bf9c55
Adding warning in docs re views
adamcharnock 06e1337
Work on changelog
adamcharnock ea90bd0
Fixing error in credit/debit data migration, #133
adamcharnock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.