FINERACT-590

This commit is contained in:
conradsp
2018-02-03 14:29:02 -06:00
parent 1d38bd25d0
commit 8e7bd01ed4
@@ -108,6 +108,11 @@ public class AccountNumberGenerator {
break;
}
// FINERACT-590
// Because account_no is limited to 20 chars, we can only use the first 10 chars of prefix - trim if necessary
prefix = prefix.substring(0, Math.min(prefix.length(), 10));
accountNumber = StringUtils.overlay(accountNumber, prefix, 0, 0);
}
return accountNumber;