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 <noreply@anthropic.com>
This commit is contained in:
@@ -6041,7 +6041,12 @@ export class TransactionEntryComponent implements OnInit, OnDestroy {
|
|||||||
this.editRequest = req;
|
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];
|
const row = this.rows[0];
|
||||||
row.acNo = req.account_no ?? '';
|
row.acNo = req.account_no ?? '';
|
||||||
row.acTyp = acTyp;
|
row.acTyp = acTyp;
|
||||||
|
|||||||
+2
-2
@@ -20,8 +20,8 @@
|
|||||||
// Tenants the login screen offers, and which one it starts on. Every identifier here has to exist
|
// 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
|
// in the tenants table of the tenant-store database, or the platform rejects the request as an
|
||||||
// unknown tenant.
|
// unknown tenant.
|
||||||
window["env"]["fineractPlatformTenantId"] = 'lincpay';
|
window["env"]["fineractPlatformTenantId"] = 'utkarshbank';
|
||||||
window["env"]["fineractPlatformTenantIds"] = 'lincpay';
|
window["env"]["fineractPlatformTenantIds"] = 'utkarshbank';
|
||||||
|
|
||||||
window['env']['tenantLogoUrl'] = '';
|
window['env']['tenantLogoUrl'] = '';
|
||||||
window['env']['tenantLogoUrlDark'] = '';
|
window['env']['tenantLogoUrlDark'] = '';
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ export const environment = {
|
|||||||
version: env.mifos_x.version,
|
version: env.mifos_x.version,
|
||||||
hash: env.mifos_x.hash,
|
hash: env.mifos_x.hash,
|
||||||
// For connecting to server running elsewhere update the tenant identifier
|
// For connecting to server running elsewhere update the tenant identifier
|
||||||
fineractPlatformTenantId: loadedEnv['fineractPlatformTenantId'] || 'lincpay',
|
fineractPlatformTenantId: loadedEnv['fineractPlatformTenantId'] || 'utkarshbank',
|
||||||
fineractPlatformTenantIds: loadedEnv['fineractPlatformTenantIds'] || 'lincpay',
|
fineractPlatformTenantIds: loadedEnv['fineractPlatformTenantIds'] || 'utkarshbank',
|
||||||
// For connecting to others servers running elsewhere update the base API URL
|
// For connecting to others servers running elsewhere update the base API URL
|
||||||
baseApiUrls:
|
baseApiUrls:
|
||||||
loadedEnv['fineractApiUrls'] || 'https://demo.mifos.community,https://localhost:8443,' + window.location.origin,
|
loadedEnv['fineractApiUrls'] || 'https://demo.mifos.community,https://localhost:8443,' + window.location.origin,
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ export const environment = {
|
|||||||
version: env.mifos_x.version,
|
version: env.mifos_x.version,
|
||||||
hash: env.mifos_x.hash,
|
hash: env.mifos_x.hash,
|
||||||
// For connecting to server running elsewhere update the tenant identifier
|
// For connecting to server running elsewhere update the tenant identifier
|
||||||
fineractPlatformTenantId: loadedEnv.fineractPlatformTenantId || 'lincpay',
|
fineractPlatformTenantId: loadedEnv.fineractPlatformTenantId || 'utkarshbank',
|
||||||
fineractPlatformTenantIds: loadedEnv.fineractPlatformTenantIds || 'lincpay',
|
fineractPlatformTenantIds: loadedEnv.fineractPlatformTenantIds || 'utkarshbank',
|
||||||
// For connecting to others servers running elsewhere update the base API URL
|
// For connecting to others servers running elsewhere update the base API URL
|
||||||
baseApiUrls:
|
baseApiUrls:
|
||||||
loadedEnv.fineractApiUrls || 'https://demo.mifos.community,https://localhost:8443,' + window.location.origin,
|
loadedEnv.fineractApiUrls || 'https://demo.mifos.community,https://localhost:8443,' + window.location.origin,
|
||||||
|
|||||||
Reference in New Issue
Block a user