From dc3f336aa56bece8801a55d11d2e60f063c60896 Mon Sep 17 00:00:00 2001 From: Daniel Haselhan Date: Thu, 16 Jan 2025 10:14:01 -0800 Subject: [PATCH] fix: Include approved and assessed transactions for Orgs * Compliance Report Transactions are assessed status when finalized, not approved * Add them to the where clause used for Orgs --- backend/lcfs/web/api/transaction/repo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/lcfs/web/api/transaction/repo.py b/backend/lcfs/web/api/transaction/repo.py index 861b1e32b..7af5ed2f3 100644 --- a/backend/lcfs/web/api/transaction/repo.py +++ b/backend/lcfs/web/api/transaction/repo.py @@ -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