From 6afa79bd375e8502882299c1d0f3e2268ab2fe30 Mon Sep 17 00:00:00 2001 From: Nitesh Yadav Date: Mon, 28 Sep 2026 17:53:50 +0530 Subject: [PATCH] fix: correct withdrawal-review account lookup, switch tenant to utkarshbank - Manager withdrawal-review screen always searched the Savings account type regardless of the request's actual account_type, so reviewing a Current-account withdrawal failed with "Account not found". Reuse the existing SEARCH_ACCOUNT_TYPE_TO_AC_TYP mapping (already used by the cashier lookup path) instead of a hardcoded 'SD'. - Point the UI tenant id at utkarshbank (was lincpay) to match the new backend tenant. Co-Authored-By: Claude Sonnet 5 --- .../transaction-entry/transaction-entry.component.ts | 7 ++++++- src/assets/env.js | 4 ++-- src/environments/environment.prod.ts | 4 ++-- src/environments/environment.ts | 4 ++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/app/cashier/transaction-entry/transaction-entry.component.ts b/src/app/cashier/transaction-entry/transaction-entry.component.ts index aa4c8ca6f..940287102 100644 --- a/src/app/cashier/transaction-entry/transaction-entry.component.ts +++ b/src/app/cashier/transaction-entry/transaction-entry.component.ts @@ -6041,7 +6041,12 @@ export class TransactionEntryComponent implements OnInit, OnDestroy { this.editRequest = req; } - const acTyp = 'SD'; + // Same bug, same fix as the token-driven withdrawal-slip lookup above (see its comment): the + // request carries its own real account_type (SAVINGS, CURRENT, FIXED_DEPOSIT or + // RECURRING_DEPOSIT), and hardcoding 'SD' here searched every non-savings account on the + // wrong endpoint, so reviewing a Current-account withdrawal always failed with "Account not + // found". + const acTyp = TransactionEntryComponent.SEARCH_ACCOUNT_TYPE_TO_AC_TYP[req.account_type || ''] || 'SD'; const row = this.rows[0]; row.acNo = req.account_no ?? ''; row.acTyp = acTyp; diff --git a/src/assets/env.js b/src/assets/env.js index e7ec0e8c1..410cacdc0 100644 --- a/src/assets/env.js +++ b/src/assets/env.js @@ -20,8 +20,8 @@ // Tenants the login screen offers, and which one it starts on. Every identifier here has to exist // in the tenants table of the tenant-store database, or the platform rejects the request as an // unknown tenant. - window["env"]["fineractPlatformTenantId"] = 'lincpay'; - window["env"]["fineractPlatformTenantIds"] = 'lincpay'; + window["env"]["fineractPlatformTenantId"] = 'utkarshbank'; + window["env"]["fineractPlatformTenantIds"] = 'utkarshbank'; window['env']['tenantLogoUrl'] = ''; window['env']['tenantLogoUrlDark'] = ''; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index d7885aac8..3b02a7373 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -19,8 +19,8 @@ export const environment = { version: env.mifos_x.version, hash: env.mifos_x.hash, // For connecting to server running elsewhere update the tenant identifier - fineractPlatformTenantId: loadedEnv['fineractPlatformTenantId'] || 'lincpay', - fineractPlatformTenantIds: loadedEnv['fineractPlatformTenantIds'] || 'lincpay', + fineractPlatformTenantId: loadedEnv['fineractPlatformTenantId'] || 'utkarshbank', + fineractPlatformTenantIds: loadedEnv['fineractPlatformTenantIds'] || 'utkarshbank', // For connecting to others servers running elsewhere update the base API URL baseApiUrls: loadedEnv['fineractApiUrls'] || 'https://demo.mifos.community,https://localhost:8443,' + window.location.origin, diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 700ff10f9..2679b3c20 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -22,8 +22,8 @@ export const environment = { version: env.mifos_x.version, hash: env.mifos_x.hash, // For connecting to server running elsewhere update the tenant identifier - fineractPlatformTenantId: loadedEnv.fineractPlatformTenantId || 'lincpay', - fineractPlatformTenantIds: loadedEnv.fineractPlatformTenantIds || 'lincpay', + fineractPlatformTenantId: loadedEnv.fineractPlatformTenantId || 'utkarshbank', + fineractPlatformTenantIds: loadedEnv.fineractPlatformTenantIds || 'utkarshbank', // For connecting to others servers running elsewhere update the base API URL baseApiUrls: loadedEnv.fineractApiUrls || 'https://demo.mifos.community,https://localhost:8443,' + window.location.origin,