| Line 547... |
Line 547... |
| 547 |
"You are not authorized to approve FSP wallet requests");
|
547 |
"You are not authorized to approve FSP wallet requests");
|
| 548 |
}
|
548 |
}
|
| 549 |
}
|
549 |
}
|
| 550 |
|
550 |
|
| 551 |
if (addWalletRequest.getStatus().equals(AddWalletRequestStatus.pending)) {
|
551 |
if (addWalletRequest.getStatus().equals(AddWalletRequestStatus.pending)) {
|
| 552 |
walletService.addAmountToWallet(addWalletRequest.getRetailerId(), walletRequestid, WalletReferenceType.ADVANCE_AMOUNT, "ntfs/rgfs", addWalletRequest.getAmount(), addWalletRequest.getCreateTimestamp());
|
552 |
walletService.addAmountToWallet(addWalletRequest.getRetailerId(), walletRequestid, WalletReferenceType.ADVANCE_AMOUNT, "ntfs/rgfs", addWalletRequest.getAmount(), addWalletRequest.getReference_date().atStartOfDay());
|
| 553 |
addWalletRequest.setStatus(AddWalletRequestStatus.approved);
|
553 |
addWalletRequest.setStatus(AddWalletRequestStatus.approved);
|
| 554 |
addWalletRequest.setUpdateTimestamp(LocalDateTime.now());
|
554 |
addWalletRequest.setUpdateTimestamp(LocalDateTime.now());
|
| 555 |
// If this manual top-up recovers a captured HDFC payment (same UTR), mark that row
|
555 |
// If this manual top-up recovers a captured HDFC payment (same UTR), mark that row
|
| 556 |
// credited so the flag means "credited by any path" — prevents a later duplicate
|
556 |
// credited so the flag means "credited by any path" — prevents a later duplicate
|
| 557 |
// approval or re-pushed HDFC credit from topping up the same UTR again. Managed
|
557 |
// approval or re-pushed HDFC credit from topping up the same UTR again. Managed
|