Skip to content

Commit

Permalink
Merge pull request #1718 from bcgov/fix/daniel-show-cr-transactions-f…
Browse files Browse the repository at this point in the history
…or-orgs

fix: Include approved and assessed transactions for Orgs
  • Loading branch information
dhaselhan authored Jan 16, 2025
2 parents ce7d444 + cb2b558 commit 57b66e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/lcfs/web/api/transaction/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ async def get_transactions_paginated(
non_transfer_condition = and_(
TransactionView.transaction_type != "Transfer",
TransactionView.to_organization_id == organization_id,
TransactionView.status
== "Approved", # This status includes InitiativeAgreement and AdminAdjustment
TransactionView.status.in_(
["Approved", "Assessed"]
),
)

# Combine conditions since an organization can be both transferor and transferee, or neither for non-"Transfer" transactions
Expand Down

0 comments on commit 57b66e5

Please sign in to comment.