| Line 708... |
Line 708... |
| 708 |
DistrictMaster districtMaster = districtMasterRepository.selectByNameAndStateShortName(districtName,
|
708 |
DistrictMaster districtMaster = districtMasterRepository.selectByNameAndStateShortName(districtName,
|
| 709 |
stateInfo.getShortName());
|
709 |
stateInfo.getShortName());
|
| 710 |
|
710 |
|
| 711 |
fofoStore = new FofoStore();
|
711 |
fofoStore = new FofoStore();
|
| 712 |
fofoStore.setId(retailerId);
|
712 |
fofoStore.setId(retailerId);
|
| - |
|
713 |
fofoStore.setCounterSize(updateRetailerRequest.getCountersize());
|
| - |
|
714 |
fofoStore.setMinimumInvestment(updateRetailerRequest.getMinInvestment());
|
| 713 |
String latestStoreCode = fofoStoreRepository.selectLatestStore().getCode();
|
715 |
String latestStoreCode = fofoStoreRepository.selectLatestStore().getCode();
|
| 714 |
int latestCodeCounter = Integer.parseInt(latestStoreCode.replaceAll("[A-Z]", ""));
|
716 |
int latestCodeCounter = Integer.parseInt(latestStoreCode.replaceAll("[A-Z]", ""));
|
| 715 |
String fofoStoreCode = StringUtils.generateFofoStoreSequence(
|
717 |
String fofoStoreCode = StringUtils.generateFofoStoreSequence(
|
| 716 |
districtMaster.getStateShortName() + districtMaster.getShortName(), latestCodeCounter + 1);
|
718 |
districtMaster.getStateShortName() + districtMaster.getShortName(), latestCodeCounter + 1);
|
| 717 |
fofoStore.setCode(fofoStoreCode);
|
719 |
fofoStore.setCode(fofoStoreCode);
|