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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user