-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
12033 - FAS - RS not moving to Completed status when balance is drain…
…ed to 0 (#943) * Dependency update + migration. * Use quantized for refund amount. Update test for it. * Validate linking. * Unit test changes. * Lint fix. * Remove comment. * Check for routing slip status == active. * Reverse unit test case. * Remove unnecessary code. * Code trim.
- Loading branch information
Showing
8 changed files
with
144 additions
and
15 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
pay-api/migrations/versions/7aff4af4be85_rs_complete_changes.py
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,25 @@ | ||
"""Migration for Routing slip status COMPLETE. | ||
Revision ID: 7aff4af4be85 | ||
Revises: 6a6b042b831a | ||
Create Date: 2022-05-30 08:23:00.535893 | ||
""" | ||
from alembic import op | ||
from sqlalchemy import String | ||
from sqlalchemy.sql import column, table | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '7aff4af4be85' | ||
down_revision = '6a6b042b831a' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
def upgrade(): | ||
op.execute("UPDATE routing_slips set status = 'COMPLETE' where remaining_amount < 0.01 and status = 'ACTIVE'") | ||
|
||
|
||
def downgrade(): | ||
op.execute("UPDATE routing_slips set status = 'ACTIVE' where remaining_amount < 0.01 and status = 'COMPLETE'") | ||
|
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 |
---|---|---|
|
@@ -26,4 +26,5 @@ cryptography | |
sqlalchemy_utils | ||
sqlalchemy<1.4 | ||
itsdangerous==2.0.1 | ||
Jinja2==3.0.3 | ||
Jinja2==3.0.3 | ||
protobuf~=3.19.0 |
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